Skip to content

chore(compiler-vapor): use compiler-dom instead of compiler-core #13364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: vapor
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type BindingMetadata,
BindingTypes,
NodeTypes,
} from '@vue/compiler-core'
} from '@vue/compiler-dom'

const compileWithElementTransform = makeCompile({
nodeTransforms: [transformElement, transformChildren, transformText],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorCodes, NodeTypes } from '@vue/compiler-core'
import { ErrorCodes, NodeTypes } from '@vue/compiler-dom'
import {
IRNodeTypes,
transformChildren,
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-vapor/__tests__/transforms/vIf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
transformVOnce,
transformVText,
} from '../../src'
import { NodeTypes } from '@vue/compiler-core'
import { NodeTypes } from '@vue/compiler-dom'

const compileWithVIf = makeCompile({
nodeTransforms: [
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-vapor/__tests__/transforms/vSlot.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorCodes, NodeTypes } from '@vue/compiler-core'
import { ErrorCodes, NodeTypes } from '@vue/compiler-dom'
import {
IRNodeTypes,
IRSlotType,
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/generators/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
isMemberExpression,
toValidAssetId,
walkIdentifiers,
} from '@vue/compiler-core'
} from '@vue/compiler-dom'
import { genEventHandler } from './event'
import { genDirectiveModifiers, genDirectivesForElement } from './directive'
import { genBlock } from './block'
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/generators/prop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
NewlineType,
type SimpleExpressionNode,
isSimpleIdentifier,
} from '@vue/compiler-core'
} from '@vue/compiler-dom'
import type { CodegenContext } from '../generate'
import {
IRDynamicPropsKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
createSimpleExpression,
isStaticArgOf,
isStaticExp,
} from '@vue/compiler-core'
} from '@vue/compiler-dom'
import type { NodeTransform, TransformContext } from '../transform'
import {
type BlockIRNode,
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-vapor/src/transforms/vSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
createCompilerError,
isTemplateNode,
isVSlot,
} from '@vue/compiler-core'
} from '@vue/compiler-dom'
import type { NodeTransform, TransformContext } from '../transform'
import { newBlock } from './utils'
import {
Expand Down