mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? Preserve the `import_map` config specified by the user ### Why? The default mode (webpack mode) supports the `import_map` config, so turbopack should also support it. ### How? Closes https://github.com/vercel/next.js/issues/71408
16 lines
288 B
JavaScript
16 lines
288 B
JavaScript
/** @type {import("next").NextConfig} */
|
|
module.exports = {
|
|
reactStrictMode: true,
|
|
compiler: {
|
|
emotion: {
|
|
importMap: {
|
|
'import-map-test': {
|
|
styledCss: {
|
|
canonicalImport: ['@emotion/react', 'css'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|