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 6ca1bd0 commit 065dd05Copy full SHA for 065dd05
test/sandbox/index.js
@@ -1,6 +1,6 @@
1
// @ts-check
2
import { print } from '../../src/index.js';
3
-import { load } from '../common.js';
+import { acornParse } from '../common.js';
4
import fs from 'node:fs';
5
import path from 'node:path';
6
import { fileURLToPath } from 'node:url';
@@ -9,6 +9,6 @@ import ts from '../../src/languages/ts/index.js';
9
const dir = path.resolve(fileURLToPath(import.meta.url), '..');
10
const input_js = fs.readFileSync(`${dir}/_input.ts`);
11
const content = input_js.toString();
12
-const { ast, comments } = load(content);
+const { ast, comments } = acornParse(content);
13
const { code } = print(ast, ts({ comments }));
14
fs.writeFileSync(`${dir}/_output.ts`, code);
0 commit comments