Closed as not planned
Description
Related plugins
Describe the bug
The last line of dist/index.d.mts
(and .d.ts
) is:
export { vueJsxPluginCjs as 'module.exports', type FilterOptions, type Options, vueJsxPlugin as default };
I do not think this is valid -- and as it is a .d.mts
file, there should also be no CJS interop in the file.
I'm also unclear why 'module.exports' is actually exported from index.mjs
?
spotted in https://github.com/nuxt/ecosystem-ci/actions/runs/15928068917/job/44930076588#step:7:118
(Note - this is also true for plugin-vue
, in the equivalent files.)
Reproduction
https://app.unpkg.com/@vitejs/[email protected]/files/dist/index.d.mts
Steps to reproduce
No response
System Info
n/a
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.