RESOLVE_COMPONENT
} from '../src/runtimeHelpers'
import { createElementWithCodegen } from './testUtils'
-import { PatchFlags } from 'vue'
+import { PatchFlags } from '@vue/shared'
function createRoot(options: Partial<RootNode> = {}): RootNode {
return {
// build aliases dynamically
const aliasOptions = { resolve: ['.ts'] }
fs.readdirSync(packagesDir).forEach(dir => {
+ if (dir === 'vue') {
+ return
+ }
if (fs.statSync(path.resolve(packagesDir, dir)).isDirectory()) {
- const name = dir === `vue` ? dir : `@vue/${dir}`
- aliasOptions[name] = path.resolve(packagesDir, `${dir}/src/index`)
+ aliasOptions[`@vue/${dir}`] = path.resolve(packagesDir, `${dir}/src/index`)
}
})
const aliasPlugin = alias(aliasOptions)
"types": ["jest", "node"],
"rootDir": ".",
"paths": {
- "vue": ["packages/vue/src"],
"@vue/shared": ["packages/shared/src"],
"@vue/runtime-core": ["packages/runtime-core/src"],
"@vue/runtime-dom": ["packages/runtime-dom/src"],