Files
meteor/packages/babel-compiler/versions.js
Ben Newman f878ba19c7 Address initial review feedback from @abernix.
I've decided to stick with Meteor.isModern for now, since it's false for
both web.browser.legacy and web.cordova bundles, which would make logic
involving a hypothetical Meteor.platform property more complicated than
simply using Meteor.isModern. I'm open to revisiting this later.
2018-01-22 18:07:56 -05:00

12 lines
610 B
JavaScript

// Make sure code compiled with features.modernBrowsers is delivered only
// to browsers that satisfy the assumptions of meteor-babel's modern Babel
// configuration.
Package["modern-browsers"].setMinimumBrowserVersions(
Babel.getMinimumModernBrowserVersions(),
// Although module.id is the recommended source string to pass as the
// second argument to setMinimumBrowserVersions, we can't use module.id
// here because babel-compiler cannot depend on the modules package. We
// can still make this string look like any other module.id, though.
"/node_modules/meteor/babel-compiler/versions.js"
);