Skip to content

Commit 60b411e

Browse files
authored
build(webpack): enable lodash options (#6248)
1 parent d12662e commit 60b411e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

webpack/_config-builder.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const baseRules = [
2828
options: {
2929
retainLines: true,
3030
cacheDirectory: true,
31+
plugins: ["lodash"]
3132
},
3233
},
3334
{ test: /\.(txt|yaml)$/, loader: "raw-loader" },

webpack/bundle.babel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const result = configBuilder(
3131
// display full duplicates information? (Default: `false`)
3232
verbose: false,
3333
}),
34-
new LodashModuleReplacementPlugin(),
34+
new LodashModuleReplacementPlugin({
35+
"memoizing": true
36+
}),
3537
new WebpackBundleSizeAnalyzerPlugin("log.bundle-sizes.swagger-ui.txt"),
3638
]
3739
}

0 commit comments

Comments
 (0)