-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.5.2
** example code **
Sorry, I cannot provide more code
// a.min.js file
... // compress code
export default n;
// b.js file
import * as N from './a.min';
...
export default {
// ...
};
// c.ts file
import Re from './b';
...
tsconfig.json
{
"compilerOptions": {
"allowJs": true,
"sourceMap": true,
"declaration": false,
"skipLibCheck": true,
"noImplicitAny": false,
"strictNullChecks": false,
"module": "es2015",
"moduleResolution": "node",
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"dom",
"es5",
"scripthost",
"es2015"
]
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
]
}
There 34 Syntax errors caused by JS file when compile TS file(use tsc
command) without module bundler. Actually, those errors should not be hinted by TS.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue