Skip to content

Commit bc55aa1

Browse files
committed
Revert "chore(sandpack): remove unused ast utils (#7069)"
This reverts commit 508dcb0.
1 parent 6be3aad commit bc55aa1

21 files changed

+3410
-5
lines changed

packages/app/src/sandbox/eval/transpilers/babel/ast/__snapshots__/convert-esmodule.test.ts.snap

Lines changed: 991 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`printer issues can convert + + 1`] = `
4+
"\\"use strict\\";
5+
c = (10.0, + + 15);
6+
"
7+
`;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Rewrite import.meta Can detect and rewrite import.meta to $csb__import_meta 1`] = `
4+
"\\"use strict\\";
5+
var $csb__import_meta = {
6+
url: \\"https://csb.io/index.js\\"
7+
};
8+
const a = $csb__import_meta.url;
9+
"
10+
`;
11+
12+
exports[`Rewrite import.meta Should not add a global $csb__import_meta when there is no need for it 1`] = `
13+
"\\"use strict\\";
14+
const a = \\"hello\\";
15+
"
16+
`;

0 commit comments

Comments
 (0)