4d27361680
* Allow JS with isolated modules Previously legacy JS code was not allowed; it was required to use ES6 module syntax. Unfortunately, the check happens after parsing but before binding, and the commonjs module indicator isn't set until binding because it's not syntactically simple like the ES6 module indicator, which is set during parsing. So I decided that JS should be allowed during isolatedModules unconditionally. We're not going to be transforming it anyway. * Update baselines * Switch test to outDir instead of noEmit
12 lines
184 B
TypeScript
12 lines
184 B
TypeScript
// @Filename: tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"outDir": "foo",
|
|
"isolatedModules": true,
|
|
}
|
|
}
|
|
|
|
// @Filename: index.js
|
|
module.exports = {}
|
|
var x = 1
|