Closed arsendev closed 4 years ago
@arsendev I'm pretty sure this is a duplicate of #243. @contra already has pushed a fix to master
we can all help verify the fix by testing based on the instructions in #243 which is what I'm about to do.
This would be a bug in Webpack 4 https://github.com/webpack/webpack/issues/6677. Webpack 3 produces a proper bundle.
This issue should be fixed with this feature, until it's done the suggested workaround is using globalObject https://github.com/webpack/webpack/issues/6525:
output: {
path: resolve(__dirname, 'umd'),
filename: 'lib.js',
libraryTarget: 'umd',
library: 'lib',
umdNamedDefine: true,
globalObject: `(typeof self !== 'undefined' ? self : this)`
}
Duplicate of #243 - issue has been resolved.
Update to v8.0.2. An error appears. What's the problem?