Skip to content

Commit

Permalink
refactor: reuse htmlNesting from compiler-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 31, 2025
1 parent e5af194 commit aa28e9c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 197 deletions.
1 change: 1 addition & 0 deletions packages/compiler-dom/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ export {
DOMErrorMessages,
} from './errors'
export { resolveModifiers } from './transforms/vOn'
export { isValidHTMLNesting } from './htmlNesting'
export * from '@vue/compiler-core'
196 changes: 0 additions & 196 deletions packages/compiler-vapor/src/html-nesting.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/transforms/transformElement.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isValidHTMLNesting } from '../html-nesting'
import { isValidHTMLNesting } from '@vue/compiler-dom'
import {
type AttributeNode,
type ComponentNode,
Expand Down

0 comments on commit aa28e9c

Please sign in to comment.