Open juetan opened 1 month ago
no (reproduction please)
no (reproduction please)
https://stackblitz.com/edit/vitejs-vite-z6f6jw?file=build.config.ts
when declaration: true
, it build fail. then add rollup.commonjs.extensions
,it works.
Thanks for the reproduction. It seems the issue is with dts build step (since we bundle, usually importing ts in cjs context should be also doable)
Environment
node 20
Reproduction
no
Describe the bug
in /src/builder/rollup.ts file, commonjs should not include .ts extension, is that expected?
Additional context
No response
Logs
No response