Commit Graph

16 Commits

Author SHA1 Message Date
Benjamin Pasero
1330a32f25 debt - use esbuild for CSS minification (#250820) 2025-06-06 03:04:01 -07:00
Ladislau Szomoru
761beba6f2 Engineering - increase worker count for mangling (#241076)
* Engineering - increase worker count for mangling

* Compile .js file
2025-02-18 12:54:01 +01:00
Aman Karmani
e76c50f20e build: switch build/tsconfig.json to module: nodenext (#238426)
* build/tsconfig: switch to module: nodenext for bun compat

* build: rewrite imports for nodenext compat

* build: re-generate
2025-01-22 20:12:39 +01:00
Benjamin Pasero
e7abf7becb esm - inline main entry points (#230135) 2024-09-30 20:22:47 +02:00
Benjamin Pasero
c1952297c5 esm - cleanup editor worker build descriptors 2024-09-27 08:04:36 +02:00
Benjamin Pasero
332b89f198 esm - remove AMD build scripts, tests and variables 2024-09-27 08:04:01 +02:00
Benjamin Pasero
6b924c5152 ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +02:00
Benjamin Pasero
a002d1512e build - move buildfile.js out of src (#226403)
* build - move `buildfile.js` out of `src`

* .

* fix build
2024-08-23 12:18:26 +02:00
Benjamin Pasero
3dc8c38c92 esm - some build polish (#225948) 2024-08-19 16:54:29 +02:00
Benjamin Pasero
2014f1ddb2 nls - removal of loader plugin (#219098) 2024-06-28 15:45:52 +02:00
Johannes Rieken
8ba046adbe print heap stats instead of memory usage (#203959)
* print heap stats instead of memory usage

* ensure no hanging on to service

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2024-02-01 11:37:19 +01:00
Johannes
a6f9e08a42 make language service a local var, dispose when new file contents are computed, terminate worker pool 2024-01-26 16:33:54 +01:00
Johannes
5abe782c37 log memory usage after each mangling step
https://github.com/microsoft/vscode/issues/202720#issuecomment-1912208685
2024-01-26 16:09:47 +01:00
Matt Bierner
8f4385d10c Use unique ident pool per mangling (#189959)
Fixes #189124
2023-08-08 23:26:50 +02:00
Matt Bierner
aa82bd59b2 Limit worker pool size (#185164)
Fixes #185079

Should fix OOM issues on build machines
2023-06-14 23:57:22 +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