diff options
author | 2022-10-13 20:44:08 +0800 | |
---|---|---|
committer | 2022-10-13 05:44:08 -0700 | |
commit | b542921f3db7a0439c53883a93187a8fc8f5bdb3 (patch) | |
tree | 039f0cd6fe3db8734e0da3ccc13d9bda7ed70028 /test/bun.js/transpiler.test.js | |
parent | b0a7f8df926e91d3b2f0b3b8833ddaf55073f30e (diff) | |
download | bun-b542921f3db7a0439c53883a93187a8fc8f5bdb3.tar.gz bun-b542921f3db7a0439c53883a93187a8fc8f5bdb3.tar.zst bun-b542921f3db7a0439c53883a93187a8fc8f5bdb3.zip |
Fix import alias (#1313)
Diffstat (limited to 'test/bun.js/transpiler.test.js')
-rw-r--r-- | test/bun.js/transpiler.test.js | 8 |
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';", |