diff options
author | 2023-08-11 18:06:48 -0700 | |
---|---|---|
committer | 2023-08-11 18:06:48 -0700 | |
commit | 43ebffedcdc47da9b9f89a07c9a5d21a7e303722 (patch) | |
tree | 2c0ce4bf3220721217a57c695bd30745c1240efb /test | |
parent | ccb9daf7a49f5fc0203ab69ed3d66b8420d1f61d (diff) | |
download | bun-43ebffedcdc47da9b9f89a07c9a5d21a7e303722.tar.gz bun-43ebffedcdc47da9b9f89a07c9a5d21a7e303722.tar.zst bun-43ebffedcdc47da9b9f89a07c9a5d21a7e303722.zip |
Support TypeScript's `export type * as Foo from 'bar'` (#4125)
* [TypeScript] Support `export type * as Foo from 'bar'`
* Update js_parser.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/bundler/esbuild/ts.test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/bundler/esbuild/ts.test.ts b/test/bundler/esbuild/ts.test.ts index 3a2da0f48..576ee7633 100644 --- a/test/bundler/esbuild/ts.test.ts +++ b/test/bundler/esbuild/ts.test.ts @@ -1049,6 +1049,18 @@ describe("bundler", () => { ]); }, }); + itBundled("ts/ExportType*", { + files: { + "/entry.ts": /* ts */ ` + export type * as Foo from "foo"; + export type * from "foo"; + console.log("hi"); + `, + }, + run: { + stdout: "hi\n", + }, + }); itBundled("ts/ExportDefaultTypeESBuildIssue316", { files: { "/entry.ts": /* ts */ ` |