Skip to content

Commit

Permalink
Bundle the extension into one js file with esbuild. (#287)
Browse files Browse the repository at this point in the history
This reduces vsix size from 1.5MB -> 500KB, and activate time by 60ms or so.

Note that esbuild consumes TS directly rather than running tsc, and
doesn't produce diagnostics. However they still show up in the editor,
and `test` will still fail on tsc compile errors.
  • Loading branch information
sam-mccall authored Jan 27, 2022
1 parent 038c571 commit 21cc1a5
Show file tree
Hide file tree
Showing 3 changed files with 429 additions and 11 deletions.
15 changes: 7 additions & 8 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.*
.*/**
out/test/**
test/**
src/**
**/*.map
tsconfig.json
DEVELOPING.md
**
!*.md
!*.png
!doc-assets/**
!icon.png
!out/bundle.js
!package.json
Loading

0 comments on commit 21cc1a5

Please sign in to comment.