Skip to content

Conversation

@KazariEX
Copy link
Member

@KazariEX KazariEX commented Dec 5, 2025

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

The current code might result in the following code being transformed:

import { useSlots as _useSlots, /* defineComponent as _defineComponent */, createVNode as _createVNode } from "vue";

We should try using the start position of the next specifier as the end offset for the replacement.

Please feel free to modify my implementation as it's ugly!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/hints/@nuxt/hints@162

commit: 4f75b4a

@huang-julien
Copy link
Member

Can you add a small test covering thisspecific case please ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants