Commit Graph

62 Commits

Author SHA1 Message Date
Benjamin Pasero
21135c81b5 esm - provide a bridge to AMD world (#227361) 2024-09-02 12:09:12 -07: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
34a756ae2e esm - worker cleanup (#226064) 2024-08-20 17:51:26 +02:00
Benjamin Pasero
3dc8c38c92 esm - some build polish (#225948) 2024-08-19 16:54:29 +02:00
Benjamin Pasero
0dea4804f4 esm - introduce VSCODE_BUILD_ESM variable (#225586) 2024-08-14 14:49:26 +02:00
Benjamin Pasero
2014f1ddb2 nls - removal of loader plugin (#219098) 2024-06-28 15:45:52 +02:00
Benjamin Pasero
f6f90e0163 Implement NLS without AMD loader (#214588) 2024-06-28 11:55:48 +02:00
Connor Peet
87780c04c8 eng: fix CSS tooling crashes watch task (#209278)
Get rid of the gulp-postcss plugin and just implement our own, I couldn't get it to work.

Fixes #207827
2024-04-01 20:15:25 +02:00
Benjamin Pasero
95917c1376 eng - throw if minified output contains non-ascii characters (#178590) 2023-03-30 09:26:11 +02:00
yiliang114
ef3dbb5e11 fix: typos 2023-03-10 20:02:01 +08:00
Alexandru Dima
0255bb0b03 If defined, use the runtime configured baseUrl (#176573) 2023-03-09 07:20:15 -07:00
Benjamin Pasero
9db57e76e9 Build: bundle / concat entry points (#161161)
* perf - concatenate windows main files

* Revert "Revert "Use `esbuild` to bundle some CommonJS main files (#160957)" (#161118)"

This reverts commit 84c46b71a5.

* build - exclude server main files

* build - make concat a task that runs like the others

* some renames

* Avoid overwriting the nodejs closure require

* Revert "build - exclude server main files"

This reverts commit 736516624e.

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-21 00:38:44 -07:00
Benjamin Pasero
84c46b71a5 Revert "Use esbuild to bundle some CommonJS main files (#160957)" (#161118)
This reverts commit 2179e52fb9.
2022-09-16 09:31:44 -07:00
Benjamin Pasero
2179e52fb9 Use esbuild to bundle some CommonJS main files (#160957)
* ensure node.js `require` is captured

* optimize `main.js` and `cli.js`

* cleanup

* leave out bundled files

* drop package.json from userdata paths

* fix web task

* fix editor distro

* inline version into `product.json`

* also bundle server

* t

* actually do server too

* Keep bundling nls in editor worker

Co-authored-by: Alex Dima <alexdima@microsoft.com>
2022-09-16 05:24:23 -07:00
Matt Bierner
2a84b0fb6d Enable alwaysStrict for build scripts (#152778)
Turns on `alwaysStrict` and removes `'use strict';` from our `.ts` files
2022-06-21 19:00:43 +00:00
Alexandru Dima
0d160ac237 Fix bundling (#152389)
* Ensure stable order in bundled loader.js

* Avoid packaging build version of loader plugins
2022-06-16 21:05:10 +00:00
Alexandru Dima
9db5a3674e Bring the nls loader plugin into our sources (#152338) 2022-06-16 22:01:19 +02:00
Joao Moreno
35c70dc0a2 minify svgs
Related-to: #140159
2022-01-07 15:14:23 +01:00
Alex Dima
fb659f1542 Add IOptimizeTaskOpts.externalLoaderInfo 2021-10-16 11:43:36 +02:00
Logan Ramos
d2a8f91fb5 Update build scripts 2021-08-31 10:21:19 -04:00
Johannes Rieken
413b9019a6 configure esbuild with esnext. means no harm since TS already compiles with lower es2020, https://github.com/microsoft/vscode/issues/121144 2021-06-25 16:31:44 +02:00
João Moreno
9cba86888c update node version in optimize 2021-05-26 13:32:50 +02:00
João Moreno
cf4c4a0ece drop gulp-cssnano, use gulp-postcss 2021-01-22 10:49:30 +01:00
João Moreno
22b9a2b1e8 update esbuild 2021-01-06 14:19:19 +01:00
João Moreno
b99faeeb3c fix minification target 2021-01-05 16:46:54 +01:00
João Moreno
7449d86b89 use esbuild for minification 2021-01-05 11:54:18 +01:00
João Moreno
fc4b40b633 fix type casts 2021-01-04 15:54:59 +01:00
Alexandru Dima
c1eb24b027 Load expensive node modules lazily 2020-12-22 19:55:56 +01:00
Martin Aeschlimann
a2a0fe56a0 Error: base must be a non-empty string, or null/undefined. 2020-10-26 20:22:34 +01:00
Alex Dima
9198116ded Add IOptimizeTaskOpts.fileContentMapper 2020-07-28 17:40:06 +02:00
Alex Dima
bb95f3aa40 Adopt loader's amdModulesPattern option 2020-07-07 23:30:27 +02:00
Alex Dima
8032df1228 Do not create a sourcemap for loader.js 2020-04-25 15:33:03 +02:00
Alex Dima
cc46bf5cfd Remove registerAndGetAmdImageURL and support for it in the build scripts 2020-03-27 19:45:41 +01:00
Benjamin Pasero
0030e6ee92 🆙 terser@4.3.1 (#80627) 2019-09-10 10:57:54 +02:00
isidor
a33e554693 adopt registerAndGetAmdImageURL
fixes #80563
2019-09-09 18:15:11 +02:00
Alex Dima
1ba4dc6954 Introduce registerAndGetAmdImageURL and inline such images in the bundle phase in .js 2019-09-09 17:17:12 +02:00
Benjamin Pasero
c7d4c3ce1b Use terser for minification (#80201)
* build - minify using terser

* fix minification issues

* build ffs

* Update .cachesalt

* add comment
2019-09-02 11:19:26 +02:00
Benjamin Pasero
1648e1dcf8 web - add build 2019-07-14 13:12:54 +02:00
Rob Lourens
aeaef41d51 Fix #68805 2019-02-19 18:05:55 -08:00
Alex Dima
f88e4f457a Adopt changes in gulp.src 2019-02-06 10:15:36 +01:00
Alex Dima
b4445a9f73 Move away from deprecated gulp-util 2019-02-05 22:21:05 +01:00
Matt Bierner
7026335451 Switching to use @types where possible in build 2018-10-03 10:47:32 -07:00
Matt Bierner
ac737307d7 Enable noImplicitAny in build 2018-10-03 10:47:32 -07:00
Matt Bierner
fe45a7d21f Fix remaining strict null errors in build scripts 2018-10-03 10:47:32 -07:00
Johannes Rieken
07141d4e6b print all stats at the end of the package task 2018-09-03 11:51:26 +02:00
Johannes Rieken
165bb1aa63 tweaks, add the stream to the bundle step 2018-08-31 13:28:24 +02:00
Alex Dima
933c8d4b06 Bring back nls bundles for the editor 2018-08-12 15:46:41 +02:00
Alex Dima
5a52c24f11 Add an alternative optimize-editor task 2018-07-20 11:26:31 +02:00
Erich Gamma
afbf447ccd Fix for #53710 adopt TS support for checking JSON files 2018-07-06 15:13:44 +02:00
Dirk Baeumer
b8b60dd487 Remove core language pack from build 2018-06-19 10:43:23 +02:00