-
For now I just use terser to minify to keep class name , but terser minify is quite slow new minifyPlugin({
minifier: "terser",
keep_classnames: true, // any classes are probably React Components anyway
//keep_fnames: /[A-Z].+/,
}), |
Beta Was this translation helpful? Give feedback.
Answered by
hyf0
Aug 30, 2023
Replies: 1 comment 2 replies
-
swc minfier also has the Rspack use swc as the builtin minfier but it seems rspack doesn't expose this option. rspack/crates/node_binding/binding.d.ts Line 708 in c5f1697 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
clijiac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
swc minfier also has the
keepFnNames
option. https://swc.rs/docs/configuration/minificationRspack use swc as the builtin minfier but it seems rspack doesn't expose this option.
rspack/crates/node_binding/binding.d.ts
Line 708 in c5f1697