mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
40 lines
653 B
TypeScript
40 lines
653 B
TypeScript
// @module: amd
|
|
// @target: ES5
|
|
|
|
// @filename: t1.ts
|
|
export default "hello";
|
|
|
|
// @filename: t2.ts
|
|
import a = require("./t1");
|
|
a.default;
|
|
import b from "./t1";
|
|
b;
|
|
import * as c from "./t1";
|
|
c.default;
|
|
import { default as d } from "./t1";
|
|
d;
|
|
import e1, * as e2 from "./t1";
|
|
e1;
|
|
e2.default;
|
|
import f1, { default as f2 } from "./t1";
|
|
f1;
|
|
f2;
|
|
import "./t1";
|
|
|
|
// @filename: t3.ts
|
|
import a = require("./t1");
|
|
a.default;
|
|
import b from "./t1";
|
|
b;
|
|
import * as c from "./t1";
|
|
c.default;
|
|
import { default as d } from "./t1";
|
|
d;
|
|
import e1, * as e2 from "./t1";
|
|
e1;
|
|
e2.default;
|
|
import f1, { default as f2 } from "./t1";
|
|
f1;
|
|
f2;
|
|
export { a, b, c, d, e1, e2, f1, f2 };
|