File tree 2 files changed +1
-6
lines changed
packages/compiler-core/src
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import {
23
23
import {
24
24
EMPTY_OBJ ,
25
25
NOOP ,
26
- PatchFlagNames ,
27
26
PatchFlags ,
28
27
camelize ,
29
28
capitalize ,
@@ -375,15 +374,13 @@ function createRootCodegen(root: RootNode, context: TransformContext) {
375
374
} else if ( children . length > 1 ) {
376
375
// root has multiple nodes - return a fragment block.
377
376
let patchFlag = PatchFlags . STABLE_FRAGMENT
378
- let patchFlagText = PatchFlagNames [ PatchFlags . STABLE_FRAGMENT ]
379
377
// check if the fragment actually contains a single valid child with
380
378
// the rest being comments
381
379
if (
382
380
__DEV__ &&
383
381
children . filter ( c => c . type !== NodeTypes . COMMENT ) . length === 1
384
382
) {
385
383
patchFlag |= PatchFlags . DEV_ROOT_FRAGMENT
386
- patchFlagText += `, ${ PatchFlagNames [ PatchFlags . DEV_ROOT_FRAGMENT ] } `
387
384
}
388
385
root . codegenNode = createVNodeCall (
389
386
context ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ import { processExpression } from './transformExpression'
32
32
import { validateBrowserExpression } from '../validateExpression'
33
33
import { CREATE_COMMENT , FRAGMENT } from '../runtimeHelpers'
34
34
import { findDir , findProp , getMemoedVNodeCall , injectProp } from '../utils'
35
- import { PatchFlagNames , PatchFlags } from '@vue/shared'
35
+ import { PatchFlags } from '@vue/shared'
36
36
37
37
export const transformIf : NodeTransform = createStructuralDirectiveTransform (
38
38
/ ^ ( i f | e l s e | e l s e - i f ) $ / ,
@@ -264,7 +264,6 @@ function createChildrenCodegenNode(
264
264
return vnodeCall
265
265
} else {
266
266
let patchFlag = PatchFlags . STABLE_FRAGMENT
267
- let patchFlagText = PatchFlagNames [ PatchFlags . STABLE_FRAGMENT ]
268
267
// check if the fragment actually contains a single valid child with
269
268
// the rest being comments
270
269
if (
@@ -273,7 +272,6 @@ function createChildrenCodegenNode(
273
272
children . filter ( c => c . type !== NodeTypes . COMMENT ) . length === 1
274
273
) {
275
274
patchFlag |= PatchFlags . DEV_ROOT_FRAGMENT
276
- patchFlagText += `, ${ PatchFlagNames [ PatchFlags . DEV_ROOT_FRAGMENT ] } `
277
275
}
278
276
279
277
return createVNodeCall (
You can’t perform that action at this time.
0 commit comments