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

Further mangle properties. #1100

Merged
merged 2 commits into from Sep 21, 2021
Merged

Further mangle properties. #1100

merged 2 commits into from Sep 21, 2021

Conversation

rpiaggio
Copy link
Contributor

This PR brings the size of index.js from ~10.5MB down to ~8.6MB.

Copy link
Contributor

@toddburnside toddburnside left a comment

Choose a reason for hiding this comment

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

Man, you just have no mercy on those poor properties. 😆 LGTM

reserved: ['$classData', 'main', 'toString', 'constructor', 'length', 'call', 'apply', 'NaN', 'Infinity', 'undefined'],
regex: /^(\$m_|loadHelp|.*__f\d?_|.*__O|.*L\S+_)/,
// Basically, every root package except Lcrystal and Lexplore. For some reason it breaks dynamic import of the help system.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you need to remove react to get the help system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried removing them one by one. It's working locally like this.

@rpiaggio rpiaggio merged commit 4153e7b into master Sep 21, 2021
@rpiaggio rpiaggio deleted the terser branch September 21, 2021 01:46
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.

None yet

4 participants