Just curious, why do the generated codes add the .ts extension to import/export statements? #1831
-
|
For example export { getBookmarks } from './clients/fetch/getBookmarks.ts'This causes tsconfig to require adding In case anyone is interested, I used a command to batch replace all the generated files to solve this problem. find src/kubb-client -name "*.ts" -type f -exec sed -i '' "s/from '\(.*\)\.ts'/from '\1'/g" {} \;Footnotes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
@rxliuli By default, we are adding
This could be overriden by using https://www.kubb.dev/getting-started/configure#output-extension, for example: |
Beta Was this translation helpful? Give feedback.
@rxliuli By default, we are adding
.tsfiles as the latest Node.js version prefers adding an extension to every import.This could be overriden by using https://www.kubb.dev/getting-started/configure#output-extension, for example: