This PR will solve the error TS5055: Cannot write file 'xxx/yyy.vue.d.ts' because it would overwrite input file. error, and the problem that --clean cannot clean the .vue.d.ts file.
Details
extra extensions need to be added to the first group of supportedTSExtensions, which will make tsc think that .vue and .vue.d.ts are associated file types, thus solving the problem that .vue and .vue.d.ts are considered multiple source file problem.
Extra extensions need to be located in front of .d.ts. tsc depends on the order to determine the priority of .vue and .vue.d.ts.
Patch changeExtension to resolve tsc not knowing it should convert xxx.vue to xxx.vue.d.ts instead of xxx.d.ts.
This PR will solve the
error TS5055: Cannot write file 'xxx/yyy.vue.d.ts' because it would overwrite input file.
error, and the problem that--clean
cannot clean the.vue.d.ts
file.Details
supportedTSExtensions
, which will make tsc think that.vue
and.vue.d.ts
are associated file types, thus solving the problem that.vue
and.vue.d.ts
are considered multiple source file problem..d.ts.
tsc depends on the order to determine the priority of.vue
and.vue.d.ts
.changeExtension
to resolve tsc not knowing it should convertxxx.vue
toxxx.vue.d.ts
instead ofxxx.d.ts
.