mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
40 lines
658 B
TypeScript
40 lines
658 B
TypeScript
// @target: es6
|
|
// @module: commonjs
|
|
|
|
// @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 };
|