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

Preserve symbols across builds, don't mangle _handle #2687

Merged
merged 2 commits into from Dec 3, 2020

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton

Fixes #1674, #2686

This uses the terser nameCache option, backed by a module-scoped variable to store the cache in-memory. Because it's not persisted to disk, this will only work as expecting if we build all the packages within the same process, but that's what's we do during our releases, so I think that's fine.

This also exempts _handle from the list of properties that are eligible for renaming, since it's part of the public API.

There are no new tests for this change—Phil, if you know of any similar tests that seem suitable for adapting, let me know.

@jeffposnick jeffposnick merged commit e05b105 into v6 Dec 3, 2020
@jeffposnick jeffposnick deleted the terser-symbol-fixes branch December 3, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure we're mangling properties consistently across files
2 participants