Open e965 opened 1 year ago
I have the same problem. do you have any ideas at present? cc @shellscape
@PBK-B Unfortunately, I still had to move the import declaration to paths in tsconfig, and use a rollup plugin based on tsc-alias.
@PBK-B Unfortunately, I still had to move the import declaration to paths in tsconfig, and use a rollup plugin based on tsc-alias.
@e965 Thank you. I also adopted the same solution yesterday and used tsc-alias
to deal with it. If I have time, I can look at the code and maybe analyze the reason.
@rollup/plugin-typescript
Expected Behavior
Correct paths in .d.ts files (like in .js files)
Actual Behavior
The files contain the imports as they appear in the source files
Additional Information
package.json:
src/main.ts:
dist/main.js
dist/main.d.ts