mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
30 lines
415 B
TypeScript
30 lines
415 B
TypeScript
// @module: amd
|
|
// @target: ES5
|
|
|
|
// @filename: t1.ts
|
|
export var x = 1;
|
|
export var y = 2;
|
|
|
|
// @filename: t2.ts
|
|
export default "hello";
|
|
export function foo() { }
|
|
|
|
// @filename: t3.ts
|
|
var x = "x";
|
|
var y = "y";
|
|
var z = "z";
|
|
export { x, y, z };
|
|
|
|
// @filename: t4.ts
|
|
export * from "./t1";
|
|
export * from "./t2";
|
|
export * from "./t3";
|
|
|
|
// @filename: main.ts
|
|
import hello, { x, y, z, foo } from "./t4";
|
|
hello;
|
|
x;
|
|
y;
|
|
z;
|
|
foo;
|