From 2bf3c5ec5031f4714d809b15ecd4d003353e7845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 13 Nov 2024 09:00:50 +0800 Subject: [PATCH] fix(vue-vapor): remove compiler version --- packages/vue-vapor/package.json | 8 ++------ packages/vue-vapor/src/index.ts | 3 --- packages/vue-vapor/src/runtime.ts | 26 -------------------------- pnpm-lock.yaml | 3 --- 4 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 packages/vue-vapor/src/runtime.ts diff --git a/packages/vue-vapor/package.json b/packages/vue-vapor/package.json index c15528a2c..84efd56e8 100644 --- a/packages/vue-vapor/package.json +++ b/packages/vue-vapor/package.json @@ -35,12 +35,9 @@ "name": "VueVapor", "formats": [ "esm-bundler", - "esm-bundler-runtime", "cjs", "global", - "global-runtime", - "esm-browser", - "esm-browser-runtime" + "esm-browser" ] }, "repository": { @@ -57,7 +54,6 @@ }, "homepage": "https://github.com/vuejs/vue-vapor/tree/main/packages/vapor#readme", "dependencies": { - "@vue/runtime-vapor": "workspace:*", - "@vue/compiler-vapor": "workspace:*" + "@vue/runtime-vapor": "workspace:*" } } diff --git a/packages/vue-vapor/src/index.ts b/packages/vue-vapor/src/index.ts index 6c963db54..548a5e15c 100644 --- a/packages/vue-vapor/src/index.ts +++ b/packages/vue-vapor/src/index.ts @@ -6,7 +6,4 @@ if (__DEV__) { initDev() } -// TODO register compiler - -export { compile } from '@vue/compiler-vapor' export * from '@vue/runtime-vapor' diff --git a/packages/vue-vapor/src/runtime.ts b/packages/vue-vapor/src/runtime.ts deleted file mode 100644 index 205bdcc41..000000000 --- a/packages/vue-vapor/src/runtime.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This entry exports the runtime only, and is built as -// `dist/vue.esm-bundler.js` which is used by default for bundlers. -import { initDev } from './dev' -// TODO implement warn -// import { warn } from '@vue/runtime-vapor' - -if (__DEV__) { - initDev() -} - -export * from '@vue/runtime-vapor' - -export const compile = (): void => { - if (__DEV__) { - console.warn( - `Runtime compilation is not supported in this build of Vue.` + - (__ESM_BUNDLER__ - ? ` Configure your bundler to alias "vue" to "vue/dist/vue-vapor.esm-bundler.js".` - : __ESM_BROWSER__ - ? ` Use "vue-vapor.esm-browser.js" instead.` - : __GLOBAL__ - ? ` Use "vue-vapor.global.js" instead.` - : ``) /* should not happen */, - ) - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0bad757cf..45a506eda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -507,9 +507,6 @@ importers: packages/vue-vapor: dependencies: - '@vue/compiler-vapor': - specifier: workspace:* - version: link:../compiler-vapor '@vue/runtime-vapor': specifier: workspace:* version: link:../runtime-vapor