-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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 4, react-error-overlay, react-loadable (major) #4639
Conversation
@timneutkens What are your Node.js supported versions? LTS is now 8. Curious if we need the 6 & 7 checks? BTW great work! Can't wait to try out webpack 4! |
# Conflicts: # build/babel/preset.js # build/index.js # build/webpack.js # server/document.js # server/render.js
All tests run on Node.js 6, but it's recommended to use the latest LTS/later version of Node.js |
@timneutkens not sure if you saw this about the minimizer https://twitter.com/greweb/status/1013122437884542978 |
Only breaking change is that `props` are no longer passed into the loading function
@timneutkens I believe this will also fix #4100 and #4642 ? |
@stramel 😌 thanks! Will check the minimizer out once all tests pass 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Oh lordy! |
Freaking awesome work! 😍 |
Congratulations! Small step for man... |
Great work on this, lots of fixes. |
Ya need this ASAP cause SSR is breaking on my app if I am trying to use context |
Good job! Very happy to have Webpack 4 arround the corner 👍 |
It looks like Webpack 4 is included in |
Fixes #4783
Fixes #2643
Fixes #3775
Fixes #4515
Fixes #3923
Fixes #4433
Fixes #4100
Fixes #4642
Fixes #3823
Fixes #4708
Fixes #4285
Fixes #4194
Fixes #4784
Fixes #4737
Fixes #4711
Fixes #3165
Fixes #2480
Fixes #1428
Fixes #2894
Fixes #4629
Fixes #2940
Fixes #4175
Fixes vercel/next-plugins#122
Implements a few fixes for #4613
Figured out the chunk runtime merging issue described in #4108
New pull request as the codebase since the initial pull request has shifted quite a bit (folders moved etc).
What's left to do:
react-error-overlay
, which improves DX + gives more accurate error locations.next/dynamic
replaced byreact-loadable
under the hood. No changes in how it currently works. Only 1 specific edge case has a breaking change, seebreaking
belowChanges
Major
next/dynamic
usingreact-loadable
under the hood, this means that you still usenext/dynamic
but underneath it will use react-loadable instead of the previous custom solution.Minor
.next/static
:.next/static/webpack
(hot update files) and.next/static/chunks
(dynamic import files)Patches
false
is not rendered on non _error.js pages_document.js
is only added to server compilation, while keeping HMR for itchunkFilename
instead offilename
webpack/webpack#6598deprecated
method: #4737Breaking
next/dynamic
when providingmodules
as per https://github.com/zeit/next.js#4-with-multiple-modules-at-onceprops
are no longer passed in as the function gets pre-loaded on the server and can't depend on props.After the canary release
webpack/webpack
for advice