diff --git a/webpack.config.js b/webpack.config.js index 18d6a1b..6da1261 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: {