diff --git a/rollup.config.js b/rollup.config.js index 3aed3bcb927..9f7f74cf83f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,6 +20,13 @@ function bundleConfig(name, entryFile) { chunkFileNames: '[name].bundle.js', entryFileNames: '[name].bundle.js', }, + + // Suppress a warning (https://rollupjs.org/guide/en/#error-this-is-undefined) + // due to https://github.com/babel/babel/issues/9149. + // + // Any code string other than "undefined" which evaluates to `undefined` will work here. + context: 'void(0)', + plugins: [ babel({ babelHelpers: 'bundled',