aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-08-11 18:06:48 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-11 18:06:48 -0700
commit43ebffedcdc47da9b9f89a07c9a5d21a7e303722 (patch)
tree2c0ce4bf3220721217a57c695bd30745c1240efb /test
parentccb9daf7a49f5fc0203ab69ed3d66b8420d1f61d (diff)
downloadbun-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.ts12
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 */ `