mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
47b9fc6128
Closes PACK-3244 Closes https://github.com/vercel/next.js/issues/69562 Await the module in both environments (SSR/browser), if it's async in at least one of them. We can't and don't want to make the browser module async (artifically) if the SSR module is async (due to ESM externals). The only concern regarding `async` not always being true in the manifest was that we don't want to await in non TLA cases (e.g. CJS exporting a promise, etc...). But the SSR module being ESM with TLA and the browser module being CJS with a Promise export is exceedingly unlikely.
11 lines
253 B
JavaScript
11 lines
253 B
JavaScript
module.exports = {
|
|
reactStrictMode: true,
|
|
transpilePackages: ['css', 'font', 'transpile-ts-lib', 'transpile-cjs-lib'],
|
|
serverExternalPackages: [
|
|
'conditional-exports-optout',
|
|
'dual-pkg-optout',
|
|
'transitive-external',
|
|
'esm',
|
|
],
|
|
}
|