We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@rsbuild/* 0.5.2
terser options "manage.keep_fnames" can be RegExp
link https://terser.org/docs/options/#mangle-options
N/A
1、create a rsbuild project 2、modify rsbuild.config.ts
minify: { jsOptions: { mangle: { keep_fnames: /stringify/, }, }, },
3、got errror
The text was updated successfully, but these errors were encountered:
Rsbuild use SWC to minify the JS code, and SWC does not supports keep_fnames RegExp yet, see:
keep_fnames
You can submit an issue to the SWC repo to request this feature 😄
Sorry, something went wrong.
Also, we plan to support using Terser as the JS minimizer in Rsbuild / Rspack projects, ref: web-infra-dev/rspack#3639
No branches or pull requests
Version
@rsbuild/* 0.5.2
Details
terser options "manage.keep_fnames" can be RegExp
link https://terser.org/docs/options/#mangle-options
Reproduce link
N/A
Reproduce Steps
1、create a rsbuild project
2、modify rsbuild.config.ts
3、got errror
The text was updated successfully, but these errors were encountered: