Skip to content

Commit 07d6686

Browse files
authored
Merge branch 'canary' into test/fix-flaky
2 parents 43cc2af + dba978f commit 07d6686

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Tooling & Telemetry
3030

31-
/packages/next/src/build/ @timneutkens @ijjk @shuding @huozhi @ztanner @vercel/web-tooling
31+
/packages/next/src/build/ @timneutkens @ijjk @shuding @huozhi @ztanner @feedthejim @vercel/web-tooling
3232
/packages/next/src/server/lib/router-utils/setup-dev.ts @timneutkens @ijjk @shuding @huozhi @feedthejim @ztanner @wyattjoh @vercel/web-tooling
3333
/packages/next/src/telemetry/ @timneutkens @ijjk @shuding @padmaia
3434
/packages/next-swc/ @timneutkens @ijjk @shuding @huozhi @vercel/web-tooling

packages/next/src/build/handle-externals.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,8 @@ export function makeExternalHandler({
301301
return resolveResult.localRes
302302
}
303303

304-
// Forcedly resolve the styled-jsx installed by next.js,
305-
// since `resolveExternal` cannot find the styled-jsx dep with pnpm
306-
if (request === 'styled-jsx/style') {
307-
resolveResult.res = defaultOverrides['styled-jsx/style']
304+
if (request === 'styled-jsx/style' && !isAppLayer) {
305+
return `commonjs ${defaultOverrides['styled-jsx/style']}`
308306
}
309307

310308
const { res, isEsm } = resolveResult

0 commit comments

Comments
 (0)