Skip to content

Commit 5bafcf2

Browse files
revert: "perf(core): prevent useless ast cloning (cloneInputAst option)"
This reverts commit e72b39a. Disabling cloning is more sensitive than expected. Need more investigations
1 parent 7290217 commit 5bafcf2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,6 @@ async function transformJSCode(source : string, moduleSourceType : boolean, file
509509
babelrc: false,
510510
configFile: false,
511511
highlightCode: false,
512-
// @ts-ignore // not defined in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/babel__core/index.d.ts
513-
cloneInputAst: false, // doc: can improve parsing performance if the input AST is not used elsewhere.
514512
});
515513

516514
return [ depsList, transformedScript.code ];
@@ -628,8 +626,6 @@ async function createSFCModule(source : string, filename : string, options : Opt
628626
babelrc: false,
629627
configFile: false,
630628
highlightCode: false,
631-
// @ts-ignore // not defined in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/babel__core/index.d.ts
632-
cloneInputAst: false, // doc: can improve parsing performance if the input AST is not used elsewhere.
633629
});
634630

635631
return [ depsList, transformedScript.code ];

0 commit comments

Comments
 (0)