Skip to content

Bundle using Webpack (2) #160

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

Merged
merged 9 commits into from
Nov 6, 2019
Merged

Bundle using Webpack (2) #160

merged 9 commits into from
Nov 6, 2019

Conversation

chrismwendt
Copy link
Contributor

@chrismwendt chrismwendt commented Aug 1, 2019

The original PR was accidentally closed #159

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.

@chrismwendt chrismwendt force-pushed the webpack branch 2 times, most recently from 6417807 to 0d89f15 Compare August 1, 2019 09:53
@halhenke
Copy link
Contributor

Looks Good 👍

@alanz
Copy link
Collaborator

alanz commented Nov 4, 2019

@chrismwendt can you update this against current master, then we can get a new release out quite soon.

@chrismwendt
Copy link
Contributor Author

Rebased on master, fixed merge conflicts.

@chrismwendt
Copy link
Contributor Author

chrismwendt commented Nov 5, 2019

The build seemingly stalls only on macOS https://travis-ci.org/alanz/vscode-hie-server/jobs/607470418#L173

@alanz alanz merged commit 7418bea into haskell:master Nov 6, 2019
@alanz
Copy link
Collaborator

alanz commented Nov 6, 2019

Thanks for fighting this one through

This was referenced Nov 10, 2019
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
3 participants