mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
2af4ad8b17
Since `_app.js` is used on every page it makes sense to move it's dependencies to the `commons.js` so that if you require a dependency in `_app.js` and in one of your pages it is not included twice in your bundles. This PR modifies the `CommonsChunkPlugin` to move every module that is used in `_app.js` and at least in one other bundle. |
||
---|---|---|
.. | ||
build | ||
lib | ||
config.js | ||
document.js | ||
export.js | ||
hot-reloader.js | ||
index.js | ||
next.js | ||
on-demand-entry-handler.js | ||
render.js | ||
require.js | ||
router.js | ||
utils.js |