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:
Feanil Patel
2025-09-18 13:44:54 -04:00
parent 1c35881d0a
commit 9a02c73936
3 changed files with 5 additions and 5 deletions

View File

@@ -88,11 +88,11 @@ var workerConfig = function() {
}
};
} catch (err) {
return null;
return {};
}
};
module.exports = Merge.smart({
module.exports = Merge.merge({
web: {
context: __dirname,

View File

@@ -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'

View File

@@ -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'