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

Added ts-transformer-minify-privates to minify private members of classes #98

Merged
merged 4 commits into from Aug 16, 2019

Conversation

timocov
Copy link
Contributor

@timocov timocov commented Jul 4, 2019

Type of PR: enhancement

Overview of change:

Now the project is compiled by ttypescript instead of just tsc with 1 transformer ts-transformer-minify-privates to rename private members of classes. Then they can be and are mangled by terser.

It allows us reduce the bundle size to 40.5-41KB for min.gz and 159KB for min.

@timocov timocov added the enhancement Feature requests, and general improvements. label Jul 4, 2019
@timocov timocov added this to the 1.1.0 milestone Jul 4, 2019
@timocov timocov changed the title Added ts-transformer-minify-privates to minify private members of classes WIP: Added ts-transformer-minify-privates to minify private members of classes Jul 4, 2019
@timocov timocov changed the title WIP: Added ts-transformer-minify-privates to minify private members of classes Added ts-transformer-minify-privates to minify private members of classes Jul 8, 2019
@timocov timocov mentioned this pull request Jul 12, 2019
@timocov timocov self-assigned this Aug 14, 2019
@timocov timocov merged commit 65498f6 into master Aug 16, 2019
@timocov timocov deleted the minify-privates branch August 16, 2019 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, and general improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants