ember-cli-babel-polyfills
ember-cli-babel-polyfills copied to clipboard
Default build (not prod) returns __chunk1_js.default$7 is not a function error
evergreen.js:25 Uncaught TypeError: __chunk1_js.default$7 is not a function
at evergreen.js:25
at __babelPolyfillDefine (shared.js:10)
at evergreen.js:1
This seems to happen when my evergreen and targets don't match. Notice 'last 1 Edge versions'
missing in targets.
Using the following config:
'ember-cli-babel-polyfills': {
evergreenTargets: [
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions',
'last 1 Edge versions'
],
},
And targets:
'use strict';
const browsers = [
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions'
];
const isCI = !!process.env.CI;
const isProduction = process.env.EMBER_ENV === 'production';
if (isCI || isProduction) {
browsers.push('ie 11');
}
module.exports = {
browsers
};
I never signed up for notifications from this repo, sorry about missing this 😩 will try to dig in when I get a chance