Update webpack.config.js global object fix
This commit is contained in:
@@ -32,7 +32,9 @@ module.exports = {
|
|||||||
filename: mainFile,
|
filename: mainFile,
|
||||||
path: path.resolve('./lib'),
|
path: path.resolve('./lib'),
|
||||||
library: addonName,
|
library: addonName,
|
||||||
libraryTarget: 'umd'
|
libraryTarget: 'umd',
|
||||||
|
// Force usage of globalThis instead of global / self. (This is cross-env compatible)
|
||||||
|
globalObject: 'globalThis',
|
||||||
},
|
},
|
||||||
mode: 'production'
|
mode: 'production'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user