|
1 | 1 | diff --git a/dist/build/swc/options.js b/dist/build/swc/options.js |
2 | | -index 8da2935..8e04947 100644 |
| 2 | +index 8da2935285177960b5ae8b89070979d720ad15af..6ef9ed8f5594a750a57a8058d052824ae5a33000 100644 |
3 | 3 | --- a/dist/build/swc/options.js |
4 | 4 | +++ b/dist/build/swc/options.js |
5 | | -@@ -57,7 +57,7 @@ function getParserOptions({ filename, jsConfig, ...rest }) { |
| 5 | +@@ -57,7 +57,8 @@ function getParserOptions({ filename, jsConfig, ...rest }) { |
6 | 6 | ...rest, |
7 | 7 | syntax: hasTsSyntax ? 'typescript' : 'ecmascript', |
8 | 8 | dynamicImport: true, |
9 | 9 | - decorators: enableDecorators, |
| 10 | ++ // Always parse decorators so TC39 syntax works without experimentalDecorators. |
10 | 11 | + decorators: true, |
11 | 12 | // Exclude regular TypeScript files from React transformation to prevent e.g. generic parameters and angle-bracket type assertion from being interpreted as JSX tags. |
12 | 13 | [hasTsSyntax ? 'tsx' : 'jsx']: !isTSFile, |
13 | 14 | importAssertions: true |
14 | | -@@ -102,6 +102,7 @@ function getBaseSWCOptions({ filename, jest, development, hasReactRefresh, globa |
| 15 | +@@ -102,6 +103,7 @@ function getBaseSWCOptions({ filename, jest, development, hasReactRefresh, globa |
15 | 16 | } : {}, |
16 | 17 | legacyDecorator: enableDecorators, |
17 | 18 | decoratorMetadata: emitDecoratorMetadata, |
18 | | -+ decoratorVersion: "2022-03", |
| 19 | ++ decoratorVersion: '2022-03', |
19 | 20 | useDefineForClassFields: useDefineForClassFields, |
20 | 21 | react: { |
21 | 22 | importSource: (jsConfig == null ? void 0 : (_jsConfig_compilerOptions4 = jsConfig.compilerOptions) == null ? void 0 : _jsConfig_compilerOptions4.jsxImportSource) ?? ((compilerOptions == null ? void 0 : compilerOptions.emotion) && !isReactServerLayer ? '@emotion/react' : 'react'), |
22 | 23 | diff --git a/dist/esm/build/swc/options.js b/dist/esm/build/swc/options.js |
23 | | -index 6d5922e..fb9b44a 100644 |
| 24 | +index 6d5922e81ec99e3f89028bcad957492994b02d77..d25cf9575771d1fccc301e36545f3387101da3ef 100644 |
24 | 25 | --- a/dist/esm/build/swc/options.js |
25 | 26 | +++ b/dist/esm/build/swc/options.js |
26 | | -@@ -26,7 +26,7 @@ export function getParserOptions({ filename, jsConfig, ...rest }) { |
| 27 | +@@ -26,7 +26,8 @@ export function getParserOptions({ filename, jsConfig, ...rest }) { |
27 | 28 | ...rest, |
28 | 29 | syntax: hasTsSyntax ? 'typescript' : 'ecmascript', |
29 | 30 | dynamicImport: true, |
30 | 31 | - decorators: enableDecorators, |
| 32 | ++ // Always parse decorators so TC39 syntax works without experimentalDecorators. |
31 | 33 | + decorators: true, |
32 | 34 | // Exclude regular TypeScript files from React transformation to prevent e.g. generic parameters and angle-bracket type assertion from being interpreted as JSX tags. |
33 | 35 | [hasTsSyntax ? 'tsx' : 'jsx']: !isTSFile, |
34 | 36 | importAssertions: true |
35 | | -@@ -71,6 +71,7 @@ function getBaseSWCOptions({ filename, jest, development, hasReactRefresh, globa |
| 37 | +@@ -71,6 +72,7 @@ function getBaseSWCOptions({ filename, jest, development, hasReactRefresh, globa |
36 | 38 | } : {}, |
37 | 39 | legacyDecorator: enableDecorators, |
38 | 40 | decoratorMetadata: emitDecoratorMetadata, |
39 | | -+ decoratorVersion: "2022-03", |
| 41 | ++ decoratorVersion: '2022-03', |
40 | 42 | useDefineForClassFields: useDefineForClassFields, |
41 | 43 | react: { |
42 | 44 | importSource: (jsConfig == null ? void 0 : (_jsConfig_compilerOptions4 = jsConfig.compilerOptions) == null ? void 0 : _jsConfig_compilerOptions4.jsxImportSource) ?? ((compilerOptions == null ? void 0 : compilerOptions.emotion) && !isReactServerLayer ? '@emotion/react' : 'react'), |
0 commit comments