Given the following pages/ folder:
_app.jsindex.jspage2.jspage3.jsIf only _app.js and index.js import the same module (call it module X), webpack will include module X in both _app.js and index.js's bundles.
This leads to larger bundles than necessary. For example, when visiting the index at localhost:3000/, both _app.js and index.js are downloaded, and both contain a copy of module X.
Note that module X will be moved to commons.js if > 50% of pages use it.
yarn buildNotice how in the client bundle @sentry is included in both _app.js and index.js.
I would expect any module in _app.js to either be extracted to the commons.js bundle or remain in _app.js, but excluded from any page that also requires it.

This is covered by https://github.com/zeit/next.js/issues/7631
Thanks, looking forward to the next release!
Most helpful comment
Thanks, looking forward to the next release!