-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
node_modules
should no longer be compiled by default
#2624
Conversation
fixes rails/rails#35501 fixes rails#2131 fixes rails/rails#36278 fixes rails#2407 fixes rails#2114 fixes rails#1949 fixes rails#1865 fixes rails#1857
node_modules
is no longer compiled by defaultnode_modules
should no longer be compiled by default
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.
Have you confirmed that this fixes compiling JS for a fresh Rails 6 app (e.g. rails/rails#35501, rails/rails#36278)?
@javan I have tested against these 3 cases and everything seems to work well. @modusss rails/rails#36278 (comment) @terracatta rails/rails#35501 (comment) //cc @gauravtiwari |
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.
🚢it
Can/should I close? https://github.com/rails/webpacker/pull/2075/files |
Thanks @jakeNiemiec lets work out what else we need to get in the major 6.0.0 release. |
@gauravtiwari Seems like the It's now documented in the changelog but absent in the tree. I couldn't find an issue tracking this |
node_modules
will no longer be compiled by default. This primarily fixes rails issue #35501 as well as numerous other webpacker issues. The disabled loader can still be required explicitly via:If you have added
environment.loaders.delete('nodeModules')
to yourenvironment.js
, this must be removed or you will receive an error (Item nodeModules not found
).fixes rails/rails#35501
fixes #2131
fixes rails/rails#36278
fixes #2407
fixes #2114
fixes #1949
fixes #1865
fixes #1857