mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
17 lines
307 B
TypeScript
17 lines
307 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @target: es5
|
|
// @outDir: ./out
|
|
// @declaration: true
|
|
// @esModuleInterop: true
|
|
// @filename: cls.js
|
|
class Foo {}
|
|
module.exports = Foo;
|
|
|
|
// @filename: usage.js
|
|
import {default as Fooa} from "./cls";
|
|
|
|
export const x = new Fooa();
|
|
|
|
export {default as Foob} from "./cls";
|