mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? * rename test case * improve error message and handle edge case for require resolving * fix test case actually testing externals (webpack was silently bundling, Turbopack showed error that helped to find the broken test case) ### Why? ### How? Closes PACK-2662
22 lines
412 B
JavaScript
22 lines
412 B
JavaScript
module.exports = {
|
|
experimental: {
|
|
turbo: {
|
|
resolveAlias: {
|
|
'preact/compat': 'react',
|
|
},
|
|
},
|
|
serverComponentsExternalPackages: [
|
|
'app-esm-package1',
|
|
'app-esm-package2',
|
|
'app-cjs-esm-package',
|
|
],
|
|
},
|
|
webpack(config, { isServer }) {
|
|
config.resolve.alias = {
|
|
...config.resolve.alias,
|
|
'preact/compat': 'react',
|
|
}
|
|
return config
|
|
},
|
|
}
|