Commit 93955e04 by Xianquan Committed by GitHub

fix: swc helpers (#7457)

parent 6fe7cedf
Subproject commit 243c9b1ce62171b3c1073b18257ba116349b1239 Subproject commit 52a34d749dbea06819819f69a881d1eb6af61df8
...@@ -89,6 +89,10 @@ const nextConfig: NextConfig = { ...@@ -89,6 +89,10 @@ const nextConfig: NextConfig = {
turbopackFileSystemCacheForDev: false turbopackFileSystemCacheForDev: false
}, },
outputFileTracingRoot: path.join(__dirname, '../../'), outputFileTracingRoot: path.join(__dirname, '../../'),
outputFileTracingIncludes: {
// Node 24 resolves @swc/helpers through module-sync, but Next 16.3 does not trace all ESM helpers.
'*': ['../../node_modules/.pnpm/@swc+helpers@*/node_modules/@swc/helpers/esm/**/*']
},
// Exclude build-time-only packages from standalone output file tracing // Exclude build-time-only packages from standalone output file tracing
outputFileTracingExcludes: { outputFileTracingExcludes: {
'*': [ '*': [
......
...@@ -45,6 +45,10 @@ const nextConfig: NextConfig = { ...@@ -45,6 +45,10 @@ const nextConfig: NextConfig = {
} }
]; ];
}, },
outputFileTracingIncludes: {
// Node 24 resolves @swc/helpers through module-sync, but Next 16.3 does not trace all ESM helpers.
'*': ['../../node_modules/.pnpm/@swc+helpers@*/node_modules/@swc/helpers/esm/**/*']
},
turbopack: { turbopack: {
root: monorepoRoot, root: monorepoRoot,
resolveAlias: { resolveAlias: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment