diff --git a/packages/core/webpack.build.js b/packages/core/webpack.build.js index 61e26c2ae1..d2724c2aae 100644 --- a/packages/core/webpack.build.js +++ b/packages/core/webpack.build.js @@ -15,7 +15,8 @@ module.exports = env => { filename: "bundle.js", chunkFilename: "[name].chunk.js", libraryTarget: "umd", - library: "Charts" + library: "Charts", + globalObject: "(typeof self !== 'undefined' ? self : this)" }, optimization: { minimize: true