Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the extension path to not expand to sub-directories to stop OO…
…M error. After upgrading to 2.0, I was consistently running out of RAM when trying to run webpack. After some digging, I came across a comment on the webpack project that helped shed some light. webpack/webpack#1914 (comment) It seems that in PR 201 (rails#201), the `extensionGlob` was changed from `*{${paths.extensions.join(',')}}*` to `**/*{${paths.extensions.join(',')}}*` This change removes the `**/` in the extension and fixes my OOM issue. I am not sure about the ramifications for allowing pack files in subdirectories (the original intent of the PR that introduced the change). Maybe we need a comment or a flag when generating the configuration that will set it one way or the other?
- Loading branch information