mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What We're applying react-refresh to browser layer and inject ESM or CJS helper based on file type. Some package from `trasnpilePackages` might contain CJS browser bundle. And injecting ESM helper breaks them. Actually they don't need to have fast refresh ability since they're in `node_modules`. ### How Skip react-refresh for transpiled packages as they're in node_modules and won't change. Fixes #56487 Closes NEXT-2061
11 lines
256 B
JavaScript
11 lines
256 B
JavaScript
module.exports = {
|
|
reactStrictMode: true,
|
|
transpilePackages: ['css', 'font', 'transpile-ts-lib', 'transpile-cjs-lib'],
|
|
experimental: {
|
|
serverComponentsExternalPackages: [
|
|
'conditional-exports-optout',
|
|
'dual-pkg-optout',
|
|
],
|
|
},
|
|
}
|