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

11 lines
238 B
TypeScript
Raw Normal View History

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: mod.js
module.exports = function x() { }
module.exports() // should be callable
// @Filename: npm.js
var mod = require('./mod')
mod() // should be callable from here too