Files
Donny/강동윤andGitHub 76824e7556 fix(turbopack): Apply import_map option of swc_emotion correctly (#71776)
### 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
2025-04-08 09:48:26 +02:00

16 lines
288 B
JavaScript

/** @type {import("next").NextConfig} */
module.exports = {
reactStrictMode: true,
compiler: {
emotion: {
importMap: {
'import-map-test': {
styledCss: {
canonicalImport: ['@emotion/react', 'css'],
},
},
},
},
},
}