aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/transpiler.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/transpiler.test.js')
-rw-r--r--test/bun.js/transpiler.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js
index e10e4339f..855046911 100644
--- a/test/bun.js/transpiler.test.js
+++ b/test/bun.js/transpiler.test.js
@@ -1747,6 +1747,14 @@ class Foo {
expect(out.includes("otherNamesStillWork")).toBe(true);
});
+ it("special identifier in import statement", () => {
+ const out = transpiler.transformSync(`
+ import {ɵtest} from 'foo'
+ `);
+
+ expect(out).toBe("import {ɵtest} from \"foo\";\n");
+ });
+
const importLines = [
"import {createElement, bacon} from 'react';",
"import {bacon, createElement} from 'react';",