fix: Fix UMD build for node

Prevents webpack from referencing `window` in the UMD build which was causing an error in node.
This commit is contained in:
Cole Bemis 2018-05-18 16:00:26 -07:00 committed by Cole Bemis
parent c978b1cb4e
commit d5ba74d93b

View File

@ -6,6 +6,9 @@ module.exports = {
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd',
library: 'feather',
// Prevents webpack from referencing `window` in the UMD build
// Source: https://git.io/vppgU
globalObject: 'typeof self !== \'undefined\' ? self : this',
},
devtool: 'source-map',
module: {