diff --git a/packages/compiler-core/__tests__/codegen.spec.ts b/packages/compiler-core/__tests__/codegen.spec.ts index 1b15b272..240c1949 100644 --- a/packages/compiler-core/__tests__/codegen.spec.ts +++ b/packages/compiler-core/__tests__/codegen.spec.ts @@ -24,7 +24,7 @@ import { RESOLVE_COMPONENT } from '../src/runtimeHelpers' import { createElementWithCodegen } from './testUtils' -import { PatchFlags } from 'vue' +import { PatchFlags } from '@vue/shared' function createRoot(options: Partial = {}): RootNode { return { diff --git a/rollup.config.js b/rollup.config.js index c94a7f98..4937f618 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -19,9 +19,11 @@ const packageOptions = pkg.buildOptions || {} // 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) diff --git a/tsconfig.json b/tsconfig.json index b4b9e4bf..3784a8e2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,6 @@ "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"],