Bundle extension files using ESBuild

This bundles the extension files using esbuild, as recommended by
VSCode. This reduces the size of the extension from 34MB to less than
5MB.

Gulp will still run TypeScript to check types, but will not use the
TypeScript compiler output in the bundle.

Tests are now run separately, outside of Gulp, so their data doesn't
need to be copied anymore.

See: https://code.visualstudio.com/api/working-with-extensions/bundling-extension
This commit is contained in:
Koen Vlaswinkel
2022-11-25 15:10:40 +01:00
committed by Koen Vlaswinkel
parent 9cf508837e
commit f13f0b3bc3
16 changed files with 844 additions and 75 deletions

View File

@@ -14,3 +14,4 @@ gulpfile.js/**
tsconfig.json
.prettierrc
vsc-extension-quickstart.md
node_modules/**