Skip to content

Commit

Permalink
Set global to window instead of sel to support web workers. Fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
oozcitak committed Jul 29, 2021
1 parent 667fa2d commit 9510984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = {
filename: 'xmlbuilder2.min.js',
path: path.resolve(__dirname, 'lib'),
library: 'xmlbuilder2',
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: 'this'
}
};

0 comments on commit 9510984

Please sign in to comment.