Skip to content

Commit 7056b9b

Browse files
authored
optional next config
1 parent a794044 commit 7056b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/build/swc/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function getBaseSWCOptions({
5454
parser: parserConfig,
5555
experimental: {
5656
keepImportAssertions: true,
57-
plugins: nextConfig.experimental.swcPlugins
57+
plugins: nextConfig?.experimental?.swcPlugins
5858
},
5959
transform: {
6060
// Enables https://github.com/swc-project/swc/blob/0359deb4841be743d73db4536d4a22ac797d7f65/crates/swc_ecma_ext_transforms/src/jest.rs

0 commit comments

Comments
 (0)