Commit Graph

2 Commits

Author SHA1 Message Date
Mark Knichel 45928ceea3 Fix a bug in the webpack-sources patch that happens sometimes when using the webpack cache (#67928) 2024-07-19 15:04:58 -07:00
mknichel 8b360afb7b [Memory] Add option to reduce memory usage caused by duplicate strings in webpack-sources (#66003)
This PR adds a flag to Next.js to enable Webpack options to improve
memory usage. See https://github.com/webpack/webpack-sources/pull/155
for a full description of the changes and impact on memory.

This PR adds a patch to `webpack-sources` temporarily that contains the
fixes as the real changes are iterated on to merge upstream in the
`webpack/webpack-sources` repository. After that is done, the patch will
be reverted and the latest `webpack-sources` version will be updated in
Next.js.
2024-05-22 15:30:05 -05:00