Closed userquin closed 1 year ago
we should also update node to 16 or maybe to 18...
I am not sure. In many usage the vite.config.ts might be a CJS. Requiring for dynamic import is not really worth it to me. And I don't actually mind to have "Masqureading CJS types"
@antfu We need to copy xxx.d.ts
to xxx.d.mts
. The first dts is for CJS and the second one is for ESM, like I done in unplugin
@sxzz maybe we can have CJS and ESM configured properly, something like this: https://github.com/fabian-hiller/valibot/pull/12#issuecomment-1652016724
On the opposite, https://github.com/unjs/unbuild/pull/273, I thought that TS will look for the corresponding types based on the file name in node16
Right now we have:
Moving to ESM first: