mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? * add `turbo.resolveExtensions` to allow to customize extensions in Turbopack fixes PACK-2335 Fixes https://github.com/vercel/turbo/issues/4934
19 lines
345 B
JavaScript
19 lines
345 B
JavaScript
const extensions = ['', '.png', '.tsx', '.ts', '.jsx', '.js', '.json']
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
experimental: {
|
|
turbo: {
|
|
resolveExtensions: [...extensions],
|
|
},
|
|
},
|
|
webpack(config) {
|
|
config.resolve.extensions = [...extensions]
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|