rsnext/packages/next-swc/crates
Jiachi Liu 7a09f88d14
Reexports styled-jsx JSXStyle in nextjs (#36585)
When using pnpm / yarnPnP to install next.js, styled-jsx as dependency is not hoisted in the top level node_modules, it will fail when nodejs is trying to resolve `styled-jsx/style` from project directory. Re-export `styled-jsx/style` in next.js and let swc/babel plugin compile the import path it to `next/dist/shared/lib/styled-jsx`

Resolves #10149
Closes #21320
Closes #9325



Co-authored-by: Tim Neutkens <6324199+timneutkens@users.noreply.github.com>
2022-04-30 20:25:05 +00:00
..
core Reexports styled-jsx JSXStyle in nextjs (#36585) 2022-04-30 20:25:05 +00:00
emotion Update swc (#36535) 2022-04-28 10:14:48 +00:00
modularize_imports Update swc (#36535) 2022-04-28 10:14:48 +00:00
napi Align behavior of SWC transform & transformSync (#36500) 2022-04-28 02:09:49 +00:00
styled_components Update swc (#36535) 2022-04-28 10:14:48 +00:00
styled_jsx Reexports styled-jsx JSXStyle in nextjs (#36585) 2022-04-30 20:25:05 +00:00
wasm next-swc/wasm: Make span start at 0 (#36532) 2022-04-28 11:31:43 +02:00