runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
318 stars 36 forks source link

Bundle ts-lit-plugin and vscode-lit-plugin #242

Closed rictic closed 2 years ago

rictic commented 2 years ago

This greatly simplifies the process of building the vscode plugin. We construct a directory at ./packages/vscode-lit-plugin/built which contains only those files that should be part of the plugin. The only JS that's included is:

This brings down our total vsix size from ~25MB to ~15MB, and if we trim the typescript package a bit more, I bet we can get that down to ~8MB.

This also sets the stage to try out npm workspaces instead of lerna

Fixes #243

43081j commented 2 years ago

are you sure? when i run it i get:

🤔

rictic commented 2 years ago

I was not able to repro the 15MB number! After checking this branch out again the esbuild output has remained significantly smaller than the rollup output

rictic commented 2 years ago

@aomarks