diff --git a/build/build-plugins.js b/build/build-plugins.js index 15a53784584b..2e16e4f03b81 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -163,6 +163,7 @@ const build = async plugin => { name: plugin, sourcemap: true, globals, + generatedCode: 'es2015', file: path.resolve(__dirname, `${pluginPath}/${pluginFilename}`) }) diff --git a/build/rollup.config.js b/build/rollup.config.js index 8cecec9aa24a..c00438de25ec 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -43,7 +43,8 @@ const rollupConfig = { banner, file: path.resolve(__dirname, `../dist/js/${fileDest}.js`), format: ESM ? 'esm' : 'umd', - globals + globals, + generatedCode: 'es2015' }, external, plugins diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index 1d4b0d3e4d67..d85f2441c398 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -98,7 +98,8 @@ const conf = { output: { format: 'iife', name: 'bootstrapTest', - sourcemap: 'inline' + sourcemap: 'inline', + generatedCode: 'es2015' } } }