File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
packages/compiler-core/__tests__ Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
24
24
RESOLVE_COMPONENT
25
25
} from '../src/runtimeHelpers'
26
26
import { createElementWithCodegen } from './testUtils'
27
- import { PatchFlags } from 'vue'
27
+ import { PatchFlags } from '@ vue/shared '
28
28
29
29
function createRoot ( options : Partial < RootNode > = { } ) : RootNode {
30
30
return {
Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ const packageOptions = pkg.buildOptions || {}
19
19
// build aliases dynamically
20
20
const aliasOptions = { resolve : [ '.ts' ] }
21
21
fs . readdirSync ( packagesDir ) . forEach ( dir => {
22
+ if ( dir === 'vue' ) {
23
+ return
24
+ }
22
25
if ( fs . statSync ( path . resolve ( packagesDir , dir ) ) . isDirectory ( ) ) {
23
- const name = dir === `vue` ? dir : `@vue/${ dir } `
24
- aliasOptions [ name ] = path . resolve ( packagesDir , `${ dir } /src/index` )
26
+ aliasOptions [ `@vue/${ dir } ` ] = path . resolve ( packagesDir , `${ dir } /src/index` )
25
27
}
26
28
} )
27
29
const aliasPlugin = alias ( aliasOptions )
Original file line number Diff line number Diff line change 20
20
"types" : [" jest" , " node" ],
21
21
"rootDir" : " ." ,
22
22
"paths" : {
23
- "vue" : [" packages/vue/src" ],
24
23
"@vue/shared" : [" packages/shared/src" ],
25
24
"@vue/runtime-core" : [" packages/runtime-core/src" ],
26
25
"@vue/runtime-dom" : [" packages/runtime-dom/src" ],
You can’t perform that action at this time.
0 commit comments