Commit 56fec79a by Archer Committed by GitHub

fix(docs): include SWC ESM helpers in standalone output (#7481)

parent 56ee38ee
...@@ -5,6 +5,13 @@ const withMDX = createMDX(); ...@@ -5,6 +5,13 @@ const withMDX = createMDX();
const config: NextConfig = { const config: NextConfig = {
output: 'standalone', output: 'standalone',
outputFileTracingIncludes: {
// Node 24 resolves @swc/helpers through module-sync, but Next 15 does not trace all ESM helpers.
'*': [
'./node_modules/.pnpm/@swc+helpers@*/node_modules/@swc/helpers/esm/**/*',
'../node_modules/.pnpm/@swc+helpers@*/node_modules/@swc/helpers/esm/**/*',
],
},
reactStrictMode: true, reactStrictMode: true,
compress: true, compress: true,
skipTrailingSlashRedirect: true, skipTrailingSlashRedirect: true,
......
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