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