Skip to content

Commit fcbca82

Browse files
fix: improve output client modules
1 parent ed7f80c commit fcbca82

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

client-src/webpack.config.js

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { merge } = require("webpack-merge");
66

77
const baseForModules = {
88
devtool: false,
9-
mode: "development",
9+
mode: "production",
1010
experiments: {
1111
outputModule: true,
1212
},
@@ -16,6 +16,9 @@ const baseForModules = {
1616
type: "module",
1717
},
1818
},
19+
optimization: {
20+
minimize: false,
21+
},
1922
target: webpack.webpack ? ["web", "es5"] : "web",
2023
module: {
2124
rules: [
@@ -37,21 +40,21 @@ module.exports = [
3740
output: {
3841
filename: "logger/index.js",
3942
},
40-
module: {
41-
rules: [
42-
{
43-
test: /\.js$/,
44-
use: [
45-
{
46-
loader: "babel-loader",
47-
options: {
48-
plugins: ["@babel/plugin-transform-object-assign"],
49-
},
50-
},
51-
],
52-
},
53-
],
54-
},
43+
// module: {
44+
// rules: [
45+
// {
46+
// test: /\.js$/,
47+
// use: [
48+
// {
49+
// loader: "babel-loader",
50+
// options: {
51+
// plugins: ["@babel/plugin-transform-object-assign"],
52+
// },
53+
// },
54+
// ],
55+
// },
56+
// ],
57+
// },
5558
plugins: [
5659
new webpack.DefinePlugin({
5760
Symbol:

0 commit comments

Comments
 (0)