Skip to content
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

Update to webpack 3 #946

Merged
merged 1 commit into from Jun 30, 2017
Merged

Update to webpack 3 #946

merged 1 commit into from Jun 30, 2017

Conversation

lencioni
Copy link
Contributor

Now that webpack 3 is out, I am bumping some versions in here
so folks can update. I don't know if any other changes are required
but I figured I'd get the ball rolling.

Addresses #932

What kind of change does this PR introduce?

Updating dependencies

Did you add or update the examples/?
No

Summary

I'd like to help unblock people who are using webpack-dev-server so they can update to webpack 3.

Does this PR introduce a breaking change?

No

Other information
This may need additional work, but I figured I'd get the ball rolling.

@jsf-clabot
Copy link

jsf-clabot commented Jun 19, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jun 19, 2017

Codecov Report

Merging #946 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #946   +/-   ##
=======================================
  Coverage   72.13%   72.13%           
=======================================
  Files           4        4           
  Lines         463      463           
  Branches      139      139           
=======================================
  Hits          334      334           
  Misses        129      129

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbcdca7...8978059. Read the comment docs.

@snyamathi
Copy link

@lencioni fyi - Your build is going to fail until webpack/webpack-dev-middleware#200 is released because of the devDependency bump to version 3 (which is the right thing to do).

npm ERR! Linux 4.8.12-040812-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v4.8.3/bin/node" "/home/travis/.nvm/versions/node/v4.8.3/bin/npm" "install"
npm ERR! node v4.8.3
npm ERR! npm  v2.15.11
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package webpack@3.0.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer webpack-dev-middleware@1.10.2 wants webpack@1 || ^2.1.0-beta || ^2.2.0-rc.0
npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/webpack/webpack-dev-server/npm-debug.log

@lencioni
Copy link
Contributor Author

@snyamathi Yeah, I saw that as well. Thanks for noting it!

@ankurk91
Copy link

@lencioni
can you rebase, your PR gets outdated

@lencioni
Copy link
Contributor Author

Freshly rebased!

Now that webpack 3 is out, I am bumping some versions in here
so folks can update. I don't know if any other changes are required
but I figured I'd get the ball rolling.
@lencioni
Copy link
Contributor Author

Looks like webpack-dev-middleware 1.11.0 is out now, so I've updated this PR to include that as well.

@mcbain
Copy link

mcbain commented Jun 23, 2017

+1

@lencioni
Copy link
Contributor Author

@SpaceK33z @sokra please let me know if there is anything I can do to help move this along. Thanks!

@deepu105
Copy link

@sokra @TheLarkInn @SpaceK33z guys this is preventing us from upgrading to webpack 3 in JHipster. Any idea when this will be moved?
cc @jdubois

@TheLarkInn
Copy link
Member

Going to add some priority to this.

@deepu105
Copy link

@TheLarkInn any idea when this might be released?

@mareksuscak
Copy link

A new version of webpack-dev-middleware has been out for like 5 days. Can we merge & release this change? What are we waiting for? Let me know if there's anything that needs to be done and I can certainly contribute some of my spare time.

@michael-ciniawsky
Copy link
Member

@webpack/core-team @webpack/dev-server-team Yo 👋 :D, could someone give this priority please? Seems to be good to go ?

@deepu105
Copy link

@webpack/core-team @webpack/dev-server-team Guys as an OSS project maintainer I know it's not fair to put pressure on people, but this issue literally makes it impossible to use webpack 3 in real projects, as you would always use webpack-dev-server along with it. So any progress would be extremely appreciated. If we can do anything to help please let us know we will help

@MitchTalmadge
Copy link

MitchTalmadge commented Jun 29, 2017

I agree with @deepu105, there is not a single webpack project I use that does not use webpack-dev-server. This makes the webpack v3 pretty much useless

@TheLarkInn
Copy link
Member

Hey all I apologize for the delay. The usual maintainer has been out on his master's work. Let me pick this up real quick

@TheLarkInn TheLarkInn merged commit 047a595 into webpack:master Jun 30, 2017
@TheLarkInn
Copy link
Member

Let me get this released as soon as I can

@deepu105
Copy link

@TheLarkInn really appreciated now JHipster can finally ship with webpack 3 💃

@jdubois
Copy link

jdubois commented Jun 30, 2017

Can't wait to test the performance enhancements !
Thanks Microsoft :-)

@lencioni lencioni deleted the patch-1 branch June 30, 2017 14:37
@Download
Copy link

Download commented Jun 30, 2017

Is this on NPM? I am trying to install it with

npm install --save-dev webpack-dev-server

but keep getting:

webpack-dev-server@2.5.0 requires a peer of webpack@^2.2.0 but none was installed.

EDIT:

Latest release on NPM is 2.5.0:

sokra sokra published a week ago
2.5.0 is the latest of 100 releases

@mareksuscak
Copy link

@Download it's not. We also found several core plugins that haven't been updated yet (i.e. extract-text-webpack-plugin). Thus at my company we concluded it's not the right time to update to webpack 3 as of yet.

@kuhnroyal
Copy link

Need this released asap

@Download
Copy link

Download commented Jul 3, 2017

@TheLarkInn Any chance you could npm publish the version for 3?
Atm, when you npm install webpack webpack-dev-server you get incompatible versions.

@TheLarkInn
Copy link
Member

So so so sorry about the delay on this all! I have now published as webpack-dev-server@2.5.1 🎉

@deepu105
Copy link

deepu105 commented Jul 7, 2017 via email

kgregory added a commit to STORIS/material-responsive-grid that referenced this pull request Jul 7, 2017
	- add .npmrc, prevent package-lock.json
	- gitignore package-lock.json as an extraneous measure
	- update dependencies

Examples:

- add .npmrc, prevent package-lock.json
- add README
- move babel from package.json to .babelrc
- eliminate unnecessary devdependencies:
	- babel-preset-stage-2
	- postcss-cssnext
	- postcss-import
	- postcss-loader
- update dependencies, devDependencies
- eliminate unnecessary webpack configurations:
- production logic to uglifyjs
- postcss loaders
- reference built CSS in example app (GridTestPage.jsx)

Dependencies not updated to latest:

	- webpack stopped at 2.6.1 [pending webpack-dev-server support](webpack/webpack-dev-server#946)
	- eslint stopped at 3.19 [pending airbnb support](airbnb/javascript#1447)
@avindra
Copy link

avindra commented Jul 7, 2017

Dawg. @TheLarkInn . You the man. If you're ever around in NYC I'll buy you coffee

@cgatian
Copy link

cgatian commented Jul 8, 2017 via email

@Andarist
Copy link

Andarist commented Jul 8, 2017

You could have always just use a your own fork for a while with cherry-picked changes. Also upgrading to webpack3 is not you must do the first day it comes out. So really... please stop complaining about free stuff you get from the community.

@cgatian
Copy link

cgatian commented Jul 8, 2017

@Andarist I could always write my own. Right?

@Andarist
Copy link

Andarist commented Jul 8, 2017

Yeah. Thats also an option.

@Download
Copy link

Download commented Jul 8, 2017

Well complaining is not nice maybe. But he does have a point.

Also upgrading to webpack3 is not you must do the first day it comes out.

Maybe. But look at it from the other perspective: Releasing Webpack 3 before plugins have had a chance to update is also not something that has to be done right away. Maybe the Webpack team should have taken more time for testing? At least maybe a major release should be a more coordinated effort where all major webpack components push a new version nearly simultaneously?

I think that the Webpack team really dropped the ball on this release. Remember, as soon as you npm publish a major new version, from that moment on npm install webpack will start picking that new major version. For a project with the scope and reach of Webpack, that's a big deal. For two weeks it was impossible to do npm install webpack webpack-dev-server, which means anyone trying Webpack for the first time during that period will have had a difficult first experience.

Maybe peer dependencies needs to be looked at more closely? Is it really necessary to limit the upper bound? Can we maybe use open ended ranges? Or should there be a different procedure for release?

Some introspection is needed. Because what happened with v3 is not what the community expects from a package as big as Webpack.

No complaints. Especially not against any of the great people helping with Webpack. Thanks I use it almost every day! But just an observation that the way this went is not good.

@jensen
Copy link

jensen commented Jul 9, 2017

Wow, the entitlement.

@avindra
Copy link

avindra commented Jul 10, 2017 via email

@deepu105
Copy link

deepu105 commented Jul 11, 2017 via email

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.

None yet