Skip to content

Commit 6459a73

Browse files
committed
update
1 parent e2d96dd commit 6459a73

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"@types/node-fetch": "^2.6.12",
115115
"@types/rimraf": "^3.0.0",
116116
"@types/through2": "^2.0.41",
117+
"@types/webpack-merge": "^5.0.0",
117118
"@typescript-eslint/eslint-plugin": "^8.29.0",
118119
"@typescript-eslint/parser": "^8.29.0",
119120
"babel-eslint": "^10.0.1",

src/jest/codePreprocessor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const preprocessor: Preprocessor = {
3636
canInstrument: true,
3737
process(src, filePath, config, transformOptions) {
3838
global.__clearBabelAntdPlugin && global.__clearBabelAntdPlugin(); // eslint-disable-line
39-
const babelConfig = getBabelCommonConfig(undefined, {
40-
enabledReactCompiler: libDir === 'dist',
41-
});
39+
const babelConfig = getBabelCommonConfig();
4240
babelConfig.plugins = [...(babelConfig.plugins || [])];
4341

4442
if (/\/demo\//.test(filePath)) {

src/jest/demoPreprocessor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ function transform(src: string, pathFilename: string): ProcessResult {
120120

121121
global.__clearBabelAntdPlugin && global.__clearBabelAntdPlugin(); // eslint-disable-line
122122

123-
const babelConfig = getBabelCommonConfig(undefined, {
124-
enabledReactCompiler: libDir === 'dist',
125-
});
123+
const babelConfig = getBabelCommonConfig();
126124

127125
babelConfig.plugins = [...babelConfig.plugins];
128126
babelConfig.plugins.push(createDemo);

0 commit comments

Comments
 (0)