Commit 14987fb6 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

No manual includes for Turbopack

parent f24d3b8b
...@@ -4,22 +4,23 @@ const path = require('path') ...@@ -4,22 +4,23 @@ const path = require('path')
const nextConfig = { const nextConfig = {
// output: 'standalone', // output: 'standalone',
// TODO ideally, all of these manual includes wouldn't be necessary. Maybe we can improve that for // TODO ideally, all of these manual includes wouldn't be necessary, but they are still needed for Webpack
// Turbopack outputFileTracingIncludes: process.env.TURBOPACK
outputFileTracingIncludes: { ? undefined
'/': [ : {
path.relative( '/': [
process.cwd(), path.relative(
path.resolve( process.cwd(),
require.resolve('typescript/package.json'), path.resolve(
'..', require.resolve('typescript/package.json'),
'lib', '..',
'lib.*.d.ts' 'lib',
) 'lib.*.d.ts'
), )
'./node_modules/@types/node/**', ),
], './node_modules/@types/node/**',
}, ],
},
serverExternalPackages: ['twoslash'], serverExternalPackages: ['twoslash'],
} }
......
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 to comment