Commit Graph

86 Commits

Author SHA1 Message Date
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
Kevin Cui d0d222dee4
fix: cannot open vscode when use vscode-win32-x64 in Windows (#233285)
When executing `npm run gulp vscode-win32-x64` on the Windows platform, the `bundle-vscode` task is triggered. However, this task does not handle the path issues well, resulting in the contents of the `bootstrap-window.js` file not being injected into `workbench.js` and `processExplorer.js`.

The reason why VSCode does not encounter this issue is that the code compilation (compile-build) is performed on a Linux machine, while the Windows machine only executes the application build (vscode-win32-x64-ci will not trigger `bundle-vscode`).

Signed-off-by: Kevin Cui <bh@bugs.cc>
2024-11-08 13:17:17 +00:00
Benjamin Pasero 89f039ff9f
esm - `fancyLog` for bundle messages (#230638) 2024-10-06 09:27:18 -07:00
Benjamin Pasero dc265add0b
esm - drop need for manual concat (#230571) 2024-10-06 14:12:20 +02:00
Benjamin Pasero 9bd60d090a
esm - better content mapper to address sourcemaps (#230476) 2024-10-04 15:34:21 +02:00
Benjamin Pasero 3b68a06818
esm - removal of CSS loader (#230206) 2024-10-01 19:24:18 +02:00
Benjamin Pasero 36b52aa938
esm - inline `minimist` (#230155)
* esm - inline `minimist`

* .

* .

* .
2024-09-30 13:13:42 -07:00
Benjamin Pasero 7d428d77a0
esm - remove build support for `prepend` 2024-09-27 08:05:22 +02:00
Benjamin Pasero 87f3486f5f
esm - restore default header 2024-09-27 08:05:16 +02:00
Benjamin Pasero c7caef00ea
esm - make `optimize.ts` ESM only 2024-09-27 08:05:06 +02:00
Benjamin Pasero b544846460
esm - further cleanup build scripts 2024-09-27 08:04:56 +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 9784b5e1e6
esm - restore our copyright header in built files (#229751) 2024-09-25 21:48:02 +02:00
Benjamin Pasero 7d5cc34a5d
esm - try to restore sourcemaps (fix microsoft/vscode-internalbacklog#5073) (#228303)
esm - try to restore sourcemaps
2024-09-11 21:14:53 -07:00
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
Matt Bierner 6403b4367b
Pick up latest TS for building VS Code (#207096) 2024-03-07 12:59:59 -08:00
João Moreno e469272e45
remove inline sourcemaps from build files (#198842) 2023-11-22 14:05:46 +01:00
Matt Bierner 10d94ba0f3
Pick up latest TS nightly for building VS Code (#194631) 2023-10-02 19:40:35 +01:00
Benjamin Pasero 95917c1376
eng - throw if minified output contains non-ascii characters (#178590) 2023-03-30 09:26:11 +02:00
Alexandru Dima 0255bb0b03
If defined, use the runtime configured baseUrl (#176573) 2023-03-09 07:20:15 -07:00
Johannes 696c1cf199
build utils with source map to enable JS debug console 2022-11-10 15:05:47 +01: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
Matt Bierner 0762d23ae7
Build VS Code using TS 4.4 (#127823)
* Build VS Code using TS 4.4

* Remove usages of deprecated `ClientRectList`

* Add any casts for missing `caretRangeFromPoint`

* Add temporary any casts for `zoom` css propery

This non-standard css property no longer exists in lib.dom.d.ts

* MouseWheelEvent -> WheelEvent

* Pick up new TS nightly

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2021-07-08 14:27:39 -07: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
Benjamin Pasero 15aca96cd5
build - unblock lauching 2021-06-03 07:21:15 +02:00
João Moreno 62e8b545f7
missing build 2021-05-26 20:38:28 +02:00
João Moreno 0a7a69f190
fix build compilation 2021-05-26 13:30:43 +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 7449d86b89
use esbuild for minification 2021-01-05 11:54:18 +01:00
Alexandru Dima c1eb24b027
Load expensive node modules lazily 2020-12-22 19:55:56 +01:00
Alexandru Dima d1fff1a083
Check in `.js` files from the `/build/` folder to improve build speeds 2020-12-14 11:13:16 +01:00
João Moreno 2469bf6832
remove build compilation output 2020-09-22 11:12:55 +02:00
Alex Dima 9198116ded
Add `IOptimizeTaskOpts.fileContentMapper` 2020-07-28 17:40:06 +02:00