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

feat(es/minifier): Respect inline level and preserve native names #8205

Merged
merged 17 commits into from
Nov 1, 2023

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Nov 1, 2023

Description:

Note: Preserving native names is a hack, but it's used by terser and it's the only way to preserve the name of class AbortSignal while mangling without keep_classnames: true. We can special case AbortSignal, but let's just follow terser.

Related issue:

@kdy1 kdy1 self-assigned this Nov 1, 2023
@kdy1 kdy1 added this to the Planned milestone Nov 1, 2023
Copy link
Member Author

@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_ecma_transforms_base

@kdy1 kdy1 marked this pull request as ready for review November 1, 2023 21:46
@kdy1 kdy1 enabled auto-merge (squash) November 1, 2023 21:46
kodiakhq[bot]
kodiakhq bot previously approved these changes Nov 1, 2023
kodiakhq[bot]
kodiakhq bot previously approved these changes Nov 1, 2023
@kdy1 kdy1 changed the title feat(es/minifier): Respect inline level feat(es/minifier): Respect inline level & Preserve DOMPROPS Nov 1, 2023
kodiakhq[bot]
kodiakhq bot previously approved these changes Nov 1, 2023
@kdy1 kdy1 enabled auto-merge (squash) November 1, 2023 22:56
kodiakhq[bot]
kodiakhq bot previously approved these changes Nov 1, 2023
@kdy1 kdy1 changed the title feat(es/minifier): Respect inline level & Preserve DOMPROPS feat(es/minifier): Respect inline level and preserve native names Nov 1, 2023
@kdy1 kdy1 disabled auto-merge November 1, 2023 23:19
@kdy1 kdy1 enabled auto-merge (squash) November 1, 2023 23:19
@kdy1 kdy1 disabled auto-merge November 1, 2023 23:59
@kdy1 kdy1 merged commit dd805e9 into swc-project:main Nov 1, 2023
142 checks passed
@kdy1 kdy1 deleted the minifier-respect-inline-level branch November 2, 2023 00:00
@kdy1 kdy1 modified the milestones: Planned, v1.3.96 Nov 3, 2023
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Nov 7, 2023
### What?

* vercel/turbo#6286 
* vercel/turbo#6367 
* vercel/turbo#6354 
* vercel/turbo#6343 

---

 - Update `swc_core` to `v0.86.40`

 - Revert #56281 and fix `node-fetch` by disabling inlining
   - Use `inline: 2` instead of `keep_fnames: true`

### Why?

`keep_fnames` increases the bundle size too much.

### How?

 - Fixes #56612

 - Fixes #57886 

 - Fixes #55682 (by swc-project/swc#8205)

 - Reverts #56281


 - Closes PACK-1902
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 4, 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.

None yet

1 participant