mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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.
12 lines
610 B
JavaScript
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"
|
|
);
|