Skip to content

Commit

Permalink
fix: custom global object in UMD bundle generated by webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
theiliad committed Oct 10, 2019
1 parent 4aaaf76 commit a4d1e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/webpack.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4d1e54

Please sign in to comment.