Skip to content

Commit 74ca3e8

Browse files
usedExports
1 parent 27f4ec3 commit 74ca3e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webpack.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const addModule = (entry, library, isClass = false) => {
1818
libraryExport: isClass ? library : undefined,
1919
},
2020
optimization: {
21+
usedExports: true,
2122
runtimeChunk: false,
2223
splitChunks: false,
2324
},
@@ -30,7 +31,7 @@ const addModule = (entry, library, isClass = false) => {
3031
};
3132
modules.push(
3233
// Non-minified version
33-
{
34+
/** {
3435
...baseConfig,
3536
mode: 'development',
3637
output: {
@@ -41,7 +42,7 @@ const addModule = (entry, library, isClass = false) => {
4142
...baseConfig.optimization,
4243
minimize: false,
4344
},
44-
},
45+
}, */
4546
// Minified version
4647
{
4748
...baseConfig,

0 commit comments

Comments
 (0)