Skip to content
New issue

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

Error unknown field keepClassnames/keepFnames in swc config #166

Open
kaczor6418 opened this issue May 21, 2022 · 3 comments
Open

Error unknown field keepClassnames/keepFnames in swc config #166

kaczor6418 opened this issue May 21, 2022 · 3 comments

Comments

@kaczor6418
Copy link

kaczor6418 commented May 21, 2022

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

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

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:
    image

  • After running npm run build at fixed-flags-names branch
    image

@kaczor6418
Copy link
Author

Hi @kdy1 any update here? Can you reproduce this issue?

@kdy1
Copy link
Member

kdy1 commented Jun 28, 2022

I'm finally back to this.
The email was buried deep, but I successfully resolve all new tasks.

Yes I can reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants