Skip to content

Commit 8f5cf3e

Browse files
committed
fix: windows is undefined error if workfront-api is required in NodeJS
1 parent f3f7ce7 commit 8f5cf3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = {
1212
path: __dirname,
1313
filename: '[name].js',
1414
library: 'Workfront',
15-
libraryTarget: 'umd'
15+
libraryTarget: 'umd',
16+
globalObject: "typeof self !== 'undefined' ? self : this"
1617
},
1718

1819
// Enable sourcemaps for debugging webpack's output.

0 commit comments

Comments
 (0)