Skip to content

Instantly share code, notes, and snippets.

@timneutkens
Last active March 18, 2024 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timneutkens/1c18c1add7151a3b3821bba6e4298bfe to your computer and use it in GitHub Desktop.
Save timneutkens/1c18c1add7151a3b3821bba6e4298bfe to your computer and use it in GitHub Desktop.
Turbopack rules that output TypeScript
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
experimental: {
turbo: {
rules: {
'./pages/**/*.tsx': {
loaders: [require.resolve('./test-file-loader.js')],
as: '*.tsx'
},
},
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment