Skip to content

Commit 00e9641

Browse files
committed
jsConfig?
1 parent 5765eae commit 00e9641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/build/swc/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function getBaseSWCOptions({
197197
relay: compilerOptions?.relay,
198198
// Always transform styled-jsx and error when `client-only` condition is triggered
199199
styledJsx: compilerOptions?.styledJsx ?? {
200-
useLightningcss: jsConfig.experimental?.useLightningcss ?? false,
200+
useLightningcss: jsConfig?.experimental?.useLightningcss ?? false,
201201
},
202202
// Disable css-in-js libs (without client-only integration) transform on server layer for server components
203203
...(!isReactServerLayer && {

0 commit comments

Comments
 (0)