TypeScript/tests/cases/compiler/javascriptCommonjsModule.ts
Wesley Wigham 16efae2433
Consider the commonjs module indicator as a module indicator (#18490)
* Consider the commonjs module indicator as an indicator that something is effectively an external module

* Only use commonjs module indicator when targeting commonjs
2017-11-09 16:49:04 -08:00

12 lines
201 B
TypeScript

// @allowJS: true
// @outDir: ./out
// @module: commonjs
// @noEmitHelpers: true
// @importHelpers: true
// @filename: index.js
class Foo {}
class Bar extends Foo {}
module.exports = Bar;