Update webpack.config.js global object fix
This commit is contained in:
@@ -33,7 +33,8 @@ module.exports = {
|
|||||||
path: path.resolve('./lib'),
|
path: path.resolve('./lib'),
|
||||||
library: addonName,
|
library: addonName,
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
globalObject: 'this'
|
// 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