Skip to content

Commit b6fb52b

Browse files
authored
Update web runtime externals (#32717)
As mentioned in #32679 (comment) it looks like these externals need to be updated to the compiled path not that they are ncc'd. Also updated the test readme a bit to reduce confusion in #32367 (comment)
1 parent 9b2c079 commit b6fb52b

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

packages/next/build/webpack-config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,13 @@ export default async function getBaseWebpackConfig(
968968
[
969969
'next',
970970
...(webServerRuntime
971-
? [{ etag: '{}', chalk: '{}', 'react-dom': '{}' }]
971+
? [
972+
{
973+
'next/dist/compiled/etag': '{}',
974+
'next/dist/compiled/chalk': '{}',
975+
'react-dom': '{}',
976+
},
977+
]
972978
: []),
973979
]
974980
: !isServerless

0 commit comments

Comments
 (0)