Closed antoniolibrada closed 4 years ago
With your configuration, you are not using the tsconfig file at all, hence your settings are not used. To use your tsconfig file, you must first create a project, outside the gulp task, using:
const tsProject = ts.createProject('tsconfig.json');
Inside the gulp task you should then use tsProject()
instead of ts()
.
Expected behavior: I have a tsconfig.json file with the flag
esModuleInterop: true
in it. When I compile the files using gulp-typescript, seems to ignore that option and I had to explicitly writepipe(ts({esModuleInterop: true}))
. Is that intended? Actual behavior: I would expect that the gulp-typescript call takes thetsconfig.json
options into account when transpiling. Your gulpfile:Include your gulpfile, or only the related task (with
ts.createProject
).tsconfig.json
Include your tsconfig, if related to this issue.
Code
Include your TypeScript code, if necessary.