Skip to content

Commit

Permalink
Update globalObject reference from window to this in Webpack bund…
Browse files Browse the repository at this point in the history
…le to support importing in non-browser environments
  • Loading branch information
zakjan committed Mar 12, 2020
1 parent c8fae69 commit 46611d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/graphology.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/graphology.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
filename: production ? 'graphology.min.js' : 'graphology.js',
path: path.join(__dirname, 'build'),
library: 'graphology',
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
},
module: {
rules: [
Expand Down

0 comments on commit 46611d5

Please sign in to comment.