swc/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment2.ts

11 lines
251 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: npm.js
var npm = module.exports = function (tree) {
}
module.exports.asReadInstalled = function (tree) {
npm(tree) // both references should be callable
module.exports(tree)
}