unbuild
unbuild copied to clipboard
commonjs plugin should not include .ts extension
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
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)