We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0087587 commit 0759e9bCopy full SHA for 0759e9b
ast
@@ -1,9 +1,6 @@
1
#!/usr/bin/env node -r esm
2
3
-import acorn from "acorn";
4
-import observable from "./";
5
-
6
-observable(acorn);
+import {parseCell} from "./";
7
8
(async () => {
9
const input = await new Promise((resolve, reject) => {
@@ -14,7 +11,7 @@ observable(acorn);
14
11
.on("error", reject);
15
12
});
16
13
try {
17
- const output = acorn.parse(input, {plugins: {observable: true}});
+ const output = parseCell(input);
18
process.stdout.write(`${JSON.stringify(output, null, 2)}\n`);
19
} catch (error) {
20
process.stderr.write(`${error.constructor.name}: ${error.message}\n`);
0 commit comments