Skip to content

Bundle using Webpack #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from
Closed

Conversation

chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Aug 1, 2019

Resolves #151
Fixes #137

I pretty much just followed https://code.visualstudio.com/api/working-with-extensions/bundling-extension. I also swapped lodash for lodash-es, which reduces the bundle size by ~20%.

  • Number of files: 2000 -> 1
  • Extension activation time: 950ms -> 250ms
  • .vsix size: 2MB -> 400KB

I verified that breakpoints still get hit, and the extension still activates and provides hover tooltips.

Unfortunately, https://github.com/eamodio/vscode-tsl-problem-matcher didn't work, so I copied the problemMatcher definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apply bundler to the extension Extension causes high cpu load
1 participant