Commit Graph

11 Commits

Author SHA1 Message Date
Johannes Rieken
cccd228808
disable extension mangling, (#204700)
workaround for https://github.com/microsoft/vscode/issues/204692
2024-02-08 10:47:54 +01:00
Matt Bierner
5b2221330a
Add extra argument to Mangler (#184986)
Missed updating this
2023-06-13 09:03:51 +02:00
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
978bb08619
add extensions-ci-pr task which does a full build without mangling 2023-06-07 16:36:02 +02:00
Matt Bierner
d0176b8a87
Only mangle extension private properties in production builds (#171684)
This speeds up watch-web
2023-01-19 00:16:25 +01:00
João Moreno
d97f2c1aeb
more mangler output polishing (#169400)
related to #169388
2022-12-16 17:18:17 +01:00
Johannes
f73bb21f27
wip 2022-12-02 13:03:16 +01:00
Matt Bierner
bf8e26d144
Fix extension private prop mangling when compiling all extensions (#167626)
Fix extension private prop mangling when compiling all projects

#167269

Re-applies previous commit with a fix for html's custom webpack logic
2022-11-29 14:20:23 -08:00
Matt Bierner
8b9891739b
Revert "Fix extension private prop mangling when compiling all projec… (#167490)
Revert "Fix extension private prop mangling when compiling all projects (#167464)"

This reverts commit 725330a7cd.
2022-11-29 07:42:07 +01:00
Matt Bierner
725330a7cd
Fix extension private prop mangling when compiling all projects (#167464)
#167269
2022-11-28 16:32:18 -08:00
Matt Bierner
0b9121953f
Added mangling loader for ts files in extensions 2022-11-14 16:34:04 -08:00