Commit d5ba74d9 authored by Cole Bemis's avatar Cole Bemis Committed by Cole Bemis

fix: Fix UMD build for node

Prevents webpack from referencing `window` in the UMD build which was causing an error in node.
parent c978b1cb
...@@ -6,6 +6,9 @@ module.exports = { ...@@ -6,6 +6,9 @@ module.exports = {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd', libraryTarget: 'umd',
library: 'feather', 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', devtool: 'source-map',
module: { module: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment