We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d94eb commit 40c7609Copy full SHA for 40c7609
packages/repl/src/lib/workers/bundler/plugins/loop-protect.ts
@@ -1,6 +1,7 @@
1
import type { Plugin } from '@rollup/browser';
2
import { parse } from 'acorn';
3
import { print } from 'esrap';
4
+import ts from 'esrap/languages/ts';
5
import type {
6
ArrowFunctionExpression,
7
BlockStatement,
@@ -105,7 +106,7 @@ const plugin: Plugin = {
105
106
// nothing changed
107
if (ast === transformed) return null;
108
- return print(transformed);
109
+ return print(transformed, ts());
110
}
111
};
112
0 commit comments