detect and warn if `plugin.vue.ts` is used as a name

Open
#764 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
build-system

Research direction

No file or test is named. Start by locating the module-builder entry point that handles plugin filenames, then reproduce the case with a file named plugin.vue.ts. Done means the reserved name is detected and a warning is emitted rather than allowing the confusing virtual-file behavior described in the issue.

Written by the indexing model from the issue text.

Description

enhancement

yes, that was it, it's a reserved extension for volar/vue-tsc so it was treated as a virtual file of a non existant vue component (plugin.vue) that generated nothing when generating the d.ts

  • @posva
Dominant language
TypeScript
Stars
275
Forks
35
Avg merge
4h 42m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nuxt/module-builder

All issues in nuxt/module-builder

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.