Skip to content

Do we have plan for webpack4? #836

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
thangman22 opened this issue Feb 14, 2018 · 12 comments
Closed

Do we have plan for webpack4? #836

thangman22 opened this issue Feb 14, 2018 · 12 comments

Comments

@thangman22
Copy link

What problem does this feature solve?

Webpack 4 beta is release and probably release in same time with vue-cli 3.0. Do we should upgrade Webpack to Webpack 4?

What does the proposed API look like?

We have to remove CommonsChunkPlugin and change to optimization.splitChunks for breaking change

@LinusBorg
Copy link
Member

We are closely coordinating with the webpack team. We will upgrade to qwebpack 4 when it's released and stable enough, and when all necessary loaders and plugins are as well.

@thangman22
Copy link
Author

Should we try to upgrade vue-cli 3.0 to webpack4 before they release?. When webpack4 release we will no need to change again

@LinusBorg
Copy link
Member

I don't think so. Webpack is still In alpha, and we don't want to develop cli3 on an unstable software - that would mean we develop against a moving target.

Since we are closely monitoring the development and the webpack team is keeping us informed about things we will have to change, it will be quite easy to upgrade after webpack4 is released.

Adding to that, we probably want to wait a few weeks until webpack4 has fixed any immediate bugs, which will emerge after such a big release.

@yuu2lee4
Copy link

yuu2lee4 commented Feb 24, 2018

webpack4 has released beta2.
Do we have plan for babel7?

@LinusBorg
Copy link
Member

We already use babel7

@LinusBorg LinusBorg reopened this Feb 24, 2018
@cannap
Copy link

cannap commented Feb 25, 2018

https://github.com/webpack/webpack/releases/tag/v4.0.0 💃

@LinusBorg
Copy link
Member

We noticed. We will however take out time to include this, for one to test it, and also because the docs for 4 are not existant yet.

@LinusBorg
Copy link
Member

Note: Since we use webpack-chain to build the core's webpack config, we should check out if there are any compatibility issues with webpack 4.

So far I'm aware of some new config options, which are not a problem. Changes in Syntax (if those exist!) for existing things might require some workarounds until webpack-chain has catched up.

@thangman22
Copy link
Author

Let's me try to update in my brach will update you soon

@thangman22
Copy link
Author

html-webpack-plugin still have problem with webpack 4

@yyx990803
Copy link
Member

Closing since the answer is yes - will open a separate tracking issue when we try to finalize it.

@marco-carvalho
Copy link

marco-carvalho commented Mar 1, 2018

@thangman22 pug-loader too

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

No branches or pull requests

6 participants