Skip to content

Commit

Permalink
Remove optimization to ensure next/dist is always bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 24, 2024
1 parent 6ed1e21 commit 2cb4e50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/next/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ const pagesExternals = [
]

const appExternals = [
// Externalize the react-dom/server legacy implementation outside of the runtime.
// If users are using them and imported from 'react-dom/server' they will get the external asset bundled.
'next/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js',
'next/dist/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.min.js',
'next/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js',
'next/dist/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js',
// Don't externalize next/dist/compiled/react-dom since it may require('react-dom') which would use the installed React version
]

function makeAppAliases(reactChannel = '') {
Expand Down

0 comments on commit 2cb4e50

Please sign in to comment.