mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
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:
parent
c978b1cb4e
commit
d5ba74d93b
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user