Skip to content

Commit 40c7609

Browse files
committed
fix
1 parent 26d94eb commit 40c7609

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/repl/src/lib/workers/bundler/plugins/loop-protect.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Plugin } from '@rollup/browser';
22
import { parse } from 'acorn';
33
import { print } from 'esrap';
4+
import ts from 'esrap/languages/ts';
45
import type {
56
ArrowFunctionExpression,
67
BlockStatement,
@@ -105,7 +106,7 @@ const plugin: Plugin = {
105106
// nothing changed
106107
if (ast === transformed) return null;
107108

108-
return print(transformed);
109+
return print(transformed, ts());
109110
}
110111
};
111112

0 commit comments

Comments
 (0)