1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 12:58:54 -05:00

chore: test for bundling export specifier with alias (#12421)

This commit is contained in:
David Sherret 2021-10-13 08:55:28 -04:00 committed by GitHub
parent d5a7a6d575
commit 43a63530ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 0 deletions

View file

@ -373,3 +373,8 @@ itest!(ts_decorators_bundle {
args: "bundle ts_decorators_bundle.ts",
output: "ts_decorators_bundle.out",
});
itest!(bundle_export_specifier_with_alias {
args: "bundle bundle/file_tests-fixture16.ts",
output: "bundle/fixture16.out",
});

View file

@ -0,0 +1,6 @@
// todo(dsherret): use ./subdir/a.ts once fixtures are restored
export { a as test1 } from "./file_tests-fixture16_2.ts";
export { a as test2 } from "./file_tests-fixture16_2.ts";
import { a } from "./file_tests-fixture16_2.ts";
console.log(a);

View file

@ -0,0 +1,2 @@
// todo(dsherret): delete this and use ./subdir/a.ts in the file once fixtures are restored
export const a = "a";

View file

@ -0,0 +1,6 @@
[WILDCARD]
const a = "a";
export { a as test1 };
export { a as test2 };
console.log(a);