Skip to content

Commit 44672c5

Browse files
author
Sebastian Kippe
authored
Merge pull request #1127 from remotestorage/bugfix/1126-fix_build
Set output.globalObject option in Webpack config
2 parents aec698e + c338ea7 commit 44672c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module.exports = {
2222
// global export name if needed
2323
library: 'RemoteStorage',
2424
libraryTarget: 'umd',
25-
umdNamedDefine: true
25+
umdNamedDefine: true,
26+
globalObject: 'this'
2627
},
2728
// the only external dependecy is xmlhttprequest because it is
2829
// different in browser and in node env so user has to manage with that

0 commit comments

Comments
 (0)