Fixes web build (sha1 issues)

This commit is contained in:
Eric Amodio
2020-06-25 13:21:46 -04:00
parent 787f4cdbe1
commit 1af716cdca
2 changed files with 14 additions and 6 deletions

View File

@@ -8,6 +8,7 @@
'use strict';
const path = require('path');
const withDefaults = require('../shared.webpack.config');
const webpack = require('webpack');
module.exports = withDefaults({
context: __dirname,
@@ -20,5 +21,10 @@ module.exports = withDefaults({
alias: {
'node-fetch': path.resolve(__dirname, 'node_modules/node-fetch/browser.js'),
},
}
},
plugins: [
new webpack.DefinePlugin({
WEBWORKER: JSON.stringify(true)
})
]
});