fix: Use the default merge for webpack config.
The smart merge feature has been dropped from the webpack-merge library that we were using. Use the basic merge feature instead since we're not actually doing anything too complicated. Also don't return null from the WorkerConfig as it can't be correctly merged.
This commit is contained in:
@@ -88,11 +88,11 @@ var workerConfig = function() {
|
||||
}
|
||||
};
|
||||
} catch (err) {
|
||||
return null;
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Merge.smart({
|
||||
module.exports = Merge.merge({
|
||||
web: {
|
||||
context: __dirname,
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ var _ = require('underscore');
|
||||
|
||||
var commonConfig = require('./webpack.common.config.js');
|
||||
|
||||
module.exports = _.values(Merge.smart(commonConfig, {
|
||||
module.exports = _.values(Merge.merge(commonConfig, {
|
||||
web: {
|
||||
output: {
|
||||
filename: '[name].js'
|
||||
|
||||
@@ -10,7 +10,7 @@ const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
var commonConfig = require('./webpack.common.config.js');
|
||||
|
||||
var optimizedConfig = Merge.smart(commonConfig, {
|
||||
var optimizedConfig = Merge.merge(commonConfig, {
|
||||
web: {
|
||||
output: {
|
||||
filename: '[name].[chunkhash].js'
|
||||
@@ -49,7 +49,7 @@ var optimizedConfig = Merge.smart(commonConfig, {
|
||||
// gone.
|
||||
|
||||
// Step 1: Alter the bundle output names to omit the chunkhash.
|
||||
var requireCompatConfig = Merge.smart(optimizedConfig, {
|
||||
var requireCompatConfig = Merge.merge(optimizedConfig, {
|
||||
web: {
|
||||
output: {
|
||||
filename: '[name].js'
|
||||
|
||||
Reference in New Issue
Block a user