From b542921f3db7a0439c53883a93187a8fc8f5bdb3 Mon Sep 17 00:00:00 2001 From: zhiyuan <32867472+zhiyuang@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:44:08 +0800 Subject: Fix import alias (#1313) --- test/bun.js/transpiler.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/bun.js/transpiler.test.js') 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';", -- cgit v1.2.3