File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/plugin-legacy/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
553
553
babelrc : false ,
554
554
configFile : false ,
555
555
ast : true ,
556
+ code : false ,
556
557
sourceMaps,
557
558
plugins : [
558
559
// @ts -expect-error -- not typed
@@ -565,6 +566,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
565
566
const babelTransformOptions : babel . TransformOptions = {
566
567
babelrc : false ,
567
568
configFile : false ,
569
+ cloneInputAst : false ,
568
570
compact : ! ! config . build . minify ,
569
571
sourceMaps,
570
572
inputSourceMap : undefined ,
@@ -591,7 +593,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
591
593
if ( resultSystem ) {
592
594
result = babel . transformFromAstSync (
593
595
resultSystem . ast ! ,
594
- resultSystem . code ?? undefined ,
596
+ undefined ,
595
597
babelTransformOptions ,
596
598
)
597
599
} else {
You can’t perform that action at this time.
0 commit comments