Skip to content

fix(compiler): warn when binding Vue directives - #13380

Open
Galavic wants to merge 1 commit into
vuejs:mainfrom
Galavic:fix-warn-directive-shorthand
Open

Galavic wants to merge 1 commit into
vuejs:mainfrom
Galavic:fix-warn-directive-shorthand

Conversation

@Galavic

@Galavic Galavic commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • warn when built-in Vue directives are accidentally used with v-bind/v-on syntax, such as :v-if or @v-html`n- add parser coverage for the new warning

Fixes #10191

Test

  • .\node_modules.bin\vitest.cmd run test/unit/modules/compiler/parser.spec.ts

daltino

This comment was marked as low quality.

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.

Warn if colon shorthand is used on v-if/v-html/etc.

2 participants