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

fix: accept both keep_fnames and keep_classnames in jsc minify options #7090

Merged
merged 2 commits into from Mar 16, 2023

Conversation

cyjake
Copy link
Contributor

@cyjake cyjake commented Mar 16, 2023

Description:

att, closes #6996

BREAKING CHANGE:

this change is backward compatible

Related issue (if exists):

#6996

return code;
}
await expect(minify()).resolves.toEqual('function Foo() {}\n');
});
Copy link
Contributor Author

@cyjake cyjake Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems binding tests is done with published swc_core. I've changed local bindings/binding_core_node/Cargo.toml to point to crates/swc_core to have this test case covered, but the CI might fail because of said reason. Should the Cargo.toml be updated as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's patched from CI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, guess this pr is ready for review now

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swc-bump:

  • swc

@kdy1 kdy1 enabled auto-merge (squash) March 16, 2023 09:37
@kdy1 kdy1 added this to the Planned milestone Mar 16, 2023
@kdy1 kdy1 merged commit 0086914 into swc-project:main Mar 16, 2023
@cyjake cyjake deleted the fix-issue-6996 branch March 16, 2023 10:31
@kdy1 kdy1 modified the milestones: Planned, v1.3.41 Mar 17, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

JsMinifyOptions.keep_fnames throws unknown field
2 participants