Skip to content

invalid typescript declaration #616

Closed as not planned
Closed as not planned
@danielroe

Description

@danielroe

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions