Skip to content

Commit c4f9b6d

Browse files
committed
test: fix import
1 parent 82bd9eb commit c4f9b6d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/compiler-core/__tests__/codegen.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
RESOLVE_COMPONENT
2525
} from '../src/runtimeHelpers'
2626
import { createElementWithCodegen } from './testUtils'
27-
import { PatchFlags } from 'vue'
27+
import { PatchFlags } from '@vue/shared'
2828

2929
function createRoot(options: Partial<RootNode> = {}): RootNode {
3030
return {

rollup.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ const packageOptions = pkg.buildOptions || {}
1919
// build aliases dynamically
2020
const aliasOptions = { resolve: ['.ts'] }
2121
fs.readdirSync(packagesDir).forEach(dir => {
22+
if (dir === 'vue') {
23+
return
24+
}
2225
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`)
2527
}
2628
})
2729
const aliasPlugin = alias(aliasOptions)

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"types": ["jest", "node"],
2121
"rootDir": ".",
2222
"paths": {
23-
"vue": ["packages/vue/src"],
2423
"@vue/shared": ["packages/shared/src"],
2524
"@vue/runtime-core": ["packages/runtime-core/src"],
2625
"@vue/runtime-dom": ["packages/runtime-dom/src"],

0 commit comments

Comments
 (0)