-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WebPack builds for improved loading times #3889
Conversation
Travis tests have failedHey @ianjfrosst, Node.js: 8if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi
TravisBuddy Request Identifier: 8bedb690-a4d2-11e9-bd96-c5bef65e495d |
Travis tests have failedHey @ianjfrosst, Node.js: 8if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi
npm test
TravisBuddy Request Identifier: 1fdca020-a4d6-11e9-bd96-c5bef65e495d |
@jpoon Any thoughts here? I am all for webpack and think it will be a great improvement to start up times, however I like our gulp infrastructure |
Travis tests have failedHey @ianjfrosst, Node.js: 8if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi
TravisBuddy Request Identifier: 57fae930-a729-11e9-a3be-7d74802580dc |
I haven't touched webpack in awhile but IIRC, they aren't exclusive. We can still continue using our gulp as a task runner for running tests, prettier, etc. and let webpack do it's thing with transpiling the TS and bundling? Or has the JS community deemed gulp un-cool like grunt and we should webpack everything? |
You can certainly run both. That's the way things are set up right now (on this branch). |
Webpack newb here. How come?
Yikes, doesn't that technically mean the transpiled JS code that we test against isn't the same as that we launch with? |
I'm also a webpack newb, so I might not be the best resource. The vscode developer docs have most of the info I'm going off of. As I understand, webpack bases itself off the entrypoints of an application (in this case, However, that is the way that all compiled projects run unit tests. It just depends on how much you trust the transpile+optimize+minify steps. |
@jpoon @xconverge what do you feel is left to do for this? |
I feel really bad, basically I want this and support this, however we are a little light on time to maintain right now, and I am not up to speed with how webpack works really at all. I really apologize, we have been in a bit of a tough situation for a few months. |
@ianjfrosst Can you merge/rebase with latest master? This looks good to me. |
@ianjfrosst Could you update the branch? It'd be awesome to get this in the next release. |
Can confirm that this does reduce measured startup time significantly (it does also feel a bit faster to start up). Also reduces |
Wow, that is amazing performance improvements! 🎉 |
Thanks @ianjfrosst! |
This reverts commit 1f80b2d.
What this PR does / why we need it:
Add WebPack support via a
gulp
pluginWhich issue(s) this PR fixes
Partially fixes #3127
Special notes for your reviewer:
In my tests, loading times (
Running Extensions
->Startup Activation
) decrease from 2-4s to <1s.The
webpack-stream
package is a little outdated, and raises some deprecation and vulnerability warnings. The best alternative would be to migrate fully fromgulp
towebpack
, but that requires some discussion.