vite-plugin-dts
vite-plugin-dts copied to clipboard
fix: compatibility with `"moduleResolution": "Node16"`
If the project uses moduleResolution
with the value Node16
and rollupTypes
is enabled, then an error occurs:
Error: [vite:dts] Internal Error: getResolvedModule() could not resolve module name "./path/to/file"
If we do not remove .ts
completely, but replace it with .js
, then the problem disappears.