You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Setting sourceMap: false when using ts.createProject('tsconfig.json') or ts.createProject({ ... }) should prevent sourcemaps from being added to generated .d.ts files.
Actual behavior:
Changing the sourceMap value does not appear to have any effect. Adding the configuration to tsconfig.json or passing it as an option when calling ts.createProject() did not have any obvious effect.
Gulpfile excerpt:
// Used for producing Javascript
const tsProject = ts.createProject('tsconfig.json', {
typescript: typescript,
});
// Used for producing .d.ts files
const tsProject2 = ts.createProject('tsconfig.json', {
typescript: typescript,
removeComments: true,
declaration: true,
sourceMap: false,
module: 'none'
});
Aditional info:
This bug appeared after upgrading to gulp-typescript 5.0.0-alpha.3 from a much older version. Downgrading to 4.0.2 fixed the problem.
Finally, I was using TypeScript 3.1.1 for all versions of gulp-typescript and all other project dependencies were also consistent throughout the upgrade process.
The text was updated successfully, but these errors were encountered:
Expected behavior:
Setting
sourceMap: false
when usingts.createProject('tsconfig.json')
orts.createProject({ ... })
should prevent sourcemaps from being added to generated .d.ts files.Actual behavior:
Changing the
sourceMap
value does not appear to have any effect. Adding the configuration totsconfig.json
or passing it as an option when callingts.createProject()
did not have any obvious effect.Gulpfile excerpt:
Aditional info:
This bug appeared after upgrading to gulp-typescript 5.0.0-alpha.3 from a much older version. Downgrading to 4.0.2 fixed the problem.
Finally, I was using TypeScript 3.1.1 for all versions of gulp-typescript and all other project dependencies were also consistent throughout the upgrade process.
The text was updated successfully, but these errors were encountered: