We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cee08 commit a794044Copy full SHA for a794044
packages/next/build/swc/options.js
@@ -54,6 +54,7 @@ function getBaseSWCOptions({
54
parser: parserConfig,
55
experimental: {
56
keepImportAssertions: true,
57
+ plugins: nextConfig.experimental.swcPlugins
58
},
59
transform: {
60
// Enables https://github.com/swc-project/swc/blob/0359deb4841be743d73db4536d4a22ac797d7f65/crates/swc_ecma_ext_transforms/src/jest.rs
packages/next/server/config-shared.ts
@@ -86,6 +86,7 @@ export interface ExperimentalConfig {
86
disablePostcssPresetEnv?: boolean
87
swcMinify?: boolean
88
swcFileReading?: boolean
89
+ swcPlugins?: Array<[string, Record<string, any>]>
90
cpus?: number
91
sharedPool?: boolean
92
plugins?: boolean
0 commit comments