Commit Graph

15 Commits

Author SHA1 Message Date
Matt Bierner
debcf16fcd Mangle exported symbols (#182935)
* Mangle exported functions

For #180461

This prototype tries to mangle exported functions, saving a further 440kb from the bundle size

* Fix missing call

* Also try mangling top level exported consts too

* Fixing errors

* Don't run on build files

* Skip a few more manglings and revert change to namespace

* Skip a few more monaco files

* Also mangle consts that shadow types

This increases savings up to 3325

* Also mangle exported classes

* Skip mangling more localization functions for now

* Opt out pfs

* Update build script

* Run find locations task in parallel

This should speed up compile

* Cleanup before close

* Limit workers to avoid hitting memory limit

* Limit pool size

* Skip one more mangling

* Exclude entrypoints from mangling

* Try to fix web build and clean up code

* Exempt a few more projects

* Exempt another file

* Also exempt html

* Skip mangling ext entrypoints

* Use prefix that can't be confused with rpc calls

* Fix max call stack error

* Switch prefixes

* Don't mangle ambient declarations

* Use correct way of checking modifier flags

* Workaround getCombinedModifierFlags not doing what I'd expect

Maybe needs the checker to be enabled too? Just check parent chain instead for now

* Clean up code and add logic showing how enum mangling could work

* Remove a few more skipMangles

Use entrypoints instead

* Fix entrypoint name
2023-06-13 08:18:05 +02:00
Johannes Rieken
155cd6db22 More implicit public of protected fields fixing (#175869)
* debt - don't make `_insertSuggestion` force-public

https://github.com/microsoft/vscode/issues/166603

* fix most implict public making

https://github.com/microsoft/vscode/issues/166603

* implict public making causes a build failure

* fix one more violation
2023-03-02 12:56:22 +01:00
Jean Pierre
22cfea1eb7 Fixes compilation in windows
Related #170767
2023-01-29 17:37:06 -05:00
João Moreno
983b06e9bf polish mangler output to align with build (#169388) 2022-12-16 13:20:07 +01:00
Johannes
0d5f87e9dd change source map merge logic to be like applying line edits to the typescript source maps (based on the input source maps) 2022-12-14 15:57:55 +01:00
Johannes
59f0d9c20e fix ts2ts source map generation 2022-12-14 12:22:56 +01:00
Johannes
f73bb21f27 wip 2022-12-02 13:03:16 +01:00
Johannes Rieken
1e3d0b5c05 mangle polish (#166604)
* mangle polish

* missing js files (again...)
2022-11-24 14:52:10 +01:00
Johannes
424a88c0ef missing JS files 2022-11-15 09:05:07 +01:00
Johannes
85c28e5927 improve printing of implicit public cases 2022-11-14 16:15:11 +01:00
Johannes
d481999d09 make TS-mangler part of compile-build 2022-11-14 15:55:02 +01:00
Johannes
201e6a3e11 make mangler a class with mangle call, return vinyl instances 2022-11-14 13:51:21 +01:00
Johannes
fb8187c953 source maps for build/lib 2022-11-14 11:57:01 +01:00
Johannes
15cb324f3f do it all with the language service 2022-11-11 17:16:29 +01:00
Johannes
17737278ae rename to typescript manger, (mostly) use language service rename feature 2022-11-11 13:48:21 +01:00