You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create swc config file and set keepClassnames and keepFnames of mangle options as described in documentation.
Results
Expected
Flags should be applied, no errors in terminal
Actual
Flags are not applied error in the console
Module build failed (from ./node_modules/swc-loader/src/index.js):
Error: unknown field keepClassnames, expected one of props, topLevel, keepClassNames, keepFnNames, keepPrivateProps, ie8, safari10, reserved at line 1 column 750
Steps to reproduce
Create swc config file and set keepClassnames and keepFnames of mangle options as described in documentation.
Results
Expected
Flags should be applied, no errors in terminal
Actual
Flags are not applied error in the console
Update 1
Repository with min code needed to reproduce
https://github.com/kaczor6418/swc-flags-typo
Results:
After running
npm run build
at master branch:After running
npm run build
at fixed-flags-names branchThe text was updated successfully, but these errors were encountered: