Skip to content

Commit 5c71512

Browse files
committed
fix(DEV-8775): Makes UMD importable in Node
Set the webpack output globalObject to something more generic, so that React no longer depends on "window" Fixes #129 #107
1 parent 5062270 commit 5c71512

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎webpack.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const config = {
1616
library: 'HelloSign',
1717
libraryExport: 'default',
1818
libraryTarget: 'umd',
19+
globalObject: 'typeof self !== \'undefined\' ? self : this',
1920
},
2021
module: {
2122
rules: [

0 commit comments

Comments
 (0)