mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
https://github.com/meteor/babel-preset-meteor/blob/master/modern.js https://github.com/meteor/babel/blob/dfcce32868/options.js#L81 With the minimum versions from babel-preset-meteor/modern-versions.js, the difference between "modern" and "legacy" browsers boils down to supporting native async functions. I'm eager to stop compiling generator functions with Regenerator, and none of the transforms that compile async functions to native generator functions seem much better than the Regenerator experience (source maps are still wonky within the async function, so it's obvious you're not working with native code). Native async functions are supported by 73% of desktop and mobile browsers worldwide (81% in the US), and that percentage is only going to keep increasing. I see no reason not to embrace this future now.
modules
Using JavaScript modules in Meteor ES2015 module support for Meteor
Read more at https://docs.meteor.com/packages/modules.html