mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
62 lines
1.0 KiB
TypeScript
62 lines
1.0 KiB
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: es5
|
|
// @outDir: ./out
|
|
// @declaration: true
|
|
// @filename: cls.js
|
|
export class Foo {}
|
|
|
|
// @filename: func.js
|
|
export function func() {}
|
|
|
|
// @filename: bar.js
|
|
export * from "./cls";
|
|
|
|
// @filename: bar2.js
|
|
export * from "./func";
|
|
export * from "./cls";
|
|
|
|
// @filename: baz.js
|
|
import {Foo} from "./cls";
|
|
export {Foo};
|
|
|
|
// @filename: bat.js
|
|
import * as ns from "./cls";
|
|
export default ns;
|
|
|
|
// @filename: ban.js
|
|
import * as ns from "./cls";
|
|
export {ns};
|
|
|
|
// @filename: bol.js
|
|
import * as ns from "./cls";
|
|
export { ns as classContainer };
|
|
|
|
// @filename: cjs.js
|
|
const ns = require("./cls");
|
|
module.exports = { ns };
|
|
|
|
// @filename: cjs2.js
|
|
const ns = require("./cls");
|
|
module.exports = ns;
|
|
|
|
// @filename: cjs3.js
|
|
const ns = require("./cls");
|
|
module.exports.ns = ns;
|
|
|
|
// @filename: cjs4.js
|
|
const ns = require("./cls");
|
|
module.exports.names = ns;
|
|
|
|
// @filename: includeAll.js
|
|
import "./cjs4";
|
|
import "./cjs3";
|
|
import "./cjs2";
|
|
import "./cjs";
|
|
import "./bol";
|
|
import "./ban";
|
|
import "./bat";
|
|
import "./baz";
|
|
import "./bar";
|
|
import "./bar2";
|