chore: remove no longer needed vue-vapor references

This commit is contained in:
Evan You 2025-02-03 14:12:22 +08:00
parent 3d98183e1c
commit 02d30beb97
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
4 changed files with 6 additions and 11 deletions

View File

@ -143,9 +143,7 @@ function createConfig(format, output, plugins = []) {
const isCJSBuild = format === 'cjs' const isCJSBuild = format === 'cjs'
const isGlobalBuild = /global/.test(format) const isGlobalBuild = /global/.test(format)
const isCompatPackage = const isCompatPackage =
pkg.name === '@vue/compat' || pkg.name === '@vue/compat' || pkg.name === '@vue/compat-canary'
pkg.name === '@vue/compat-canary' ||
pkg.name === '@vue-vapor/compat'
const isCompatBuild = !!packageOptions.compat const isCompatBuild = !!packageOptions.compat
const isBrowserBuild = const isBrowserBuild =
(isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) && (isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) &&
@ -341,8 +339,7 @@ function createConfig(format, output, plugins = []) {
let cjsIgnores = [] let cjsIgnores = []
if ( if (
pkg.name === '@vue/compiler-sfc' || pkg.name === '@vue/compiler-sfc' ||
pkg.name === '@vue/compiler-sfc-canary' || pkg.name === '@vue/compiler-sfc-canary'
pkg.name === '@vue-vapor/compiler-sfc'
) { ) {
cjsIgnores = [ cjsIgnores = [
...Object.keys(consolidatePkg.devDependencies), ...Object.keys(consolidatePkg.devDependencies),

View File

@ -23,7 +23,9 @@ const {
const sizeDir = path.resolve('temp/size') const sizeDir = path.resolve('temp/size')
const vue = path.resolve('./packages/vue/dist/vue.runtime.esm-bundler.js') const vue = path.resolve('./packages/vue/dist/vue.runtime.esm-bundler.js')
const vapor = path.resolve('./packages/vue-vapor/dist/vue-vapor.esm-bundler.js') const vapor = path.resolve(
'./packages/runtime-vapor/dist/runtime-vapor.esm-bundler.js',
)
/** /**
* @typedef {Object} Preset * @typedef {Object} Preset

View File

@ -11,7 +11,6 @@
"packages/global.d.ts", "packages/global.d.ts",
"packages/vue/src", "packages/vue/src",
"packages/vue-compat/src", "packages/vue-compat/src",
"packages/vue-vapor/src",
"packages/compiler-core/src", "packages/compiler-core/src",
"packages/compiler-dom/src", "packages/compiler-dom/src",
"packages/runtime-core/src", "packages/runtime-core/src",

View File

@ -9,9 +9,6 @@ export default mergeConfig(config, {
singleThread: !!process.env.CI, singleThread: !!process.env.CI,
}, },
}, },
include: [ include: ['packages/vue/__tests__/e2e/*.spec.ts'],
'packages/vue/__tests__/e2e/*.spec.ts',
'packages/vue-vapor/__tests__/e2e/*.spec.ts',
],
}, },
}) })