mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-17 05:26:36 +00:00
Fix keystore worker in dev (#1465)
This commit is contained in:
parent
ad838f6eb2
commit
fde886799b
@ -280,7 +280,9 @@ module.exports = function(opts = {}) {
|
|||||||
path: path.resolve(config.path.output, options.outputDir),
|
path: path.resolve(config.path.output, options.outputDir),
|
||||||
filename: options.isProduction ? `[name].${commitHash}.js` : '[name].js',
|
filename: options.isProduction ? `[name].${commitHash}.js` : '[name].js',
|
||||||
publicPath: isDownloadable && options.isProduction ? './' : '/',
|
publicPath: isDownloadable && options.isProduction ? './' : '/',
|
||||||
crossOriginLoading: 'anonymous'
|
crossOriginLoading: 'anonymous',
|
||||||
|
// Fix workers & HMR https://github.com/webpack/webpack/issues/6642
|
||||||
|
globalObject: options.isProduction ? undefined : 'self'
|
||||||
};
|
};
|
||||||
|
|
||||||
// The final bundle
|
// The final bundle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user