From e30b37fab63d2c25369dfb83e1654f7f45db78ab Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 12 Dec 2021 15:32:23 +0800 Subject: [PATCH] chore(plugin-vue): comments and readme --- packages/plugin-vue/README.md | 10 ++++------ packages/plugin-vue/src/index.ts | 4 ---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/plugin-vue/README.md b/packages/plugin-vue/README.md index 96f9cbb1..b8889fba 100644 --- a/packages/plugin-vue/README.md +++ b/packages/plugin-vue/README.md @@ -22,7 +22,7 @@ export interface Options { isProduction?: boolean /** - * Transform Vue SFCs into custom elements (requires Vue >= 3.2.0) + * Transform Vue SFCs into custom elements (requires vue@^3.2.0) * - `true` -> all `*.vue` imports are converted into custom elements * - `string | RegExp` -> matched files are converted into custom elements * @@ -31,10 +31,8 @@ export interface Options { customElement?: boolean | string | RegExp | (string | RegExp)[] /** - * Enable Vue ref transform (experimental). - * https://github.com/vuejs/vue-next/tree/master/packages/ref-transform - * - * **requires Vue \>= 3.2.5** + * Enable Vue reactivity transform (experimental, requires vue@^3.2.25). + * https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform * * - `true`: transform will be enabled for all vue,js(x),ts(x) files except * those inside node_modules @@ -44,7 +42,7 @@ export interface Options { * * @default false */ - refTransform?: boolean | string | RegExp | (string | RegExp)[] + reactivityTransform?: boolean | string | RegExp | (string | RegExp)[] // options to pass on to vue/compiler-sfc script?: Partial diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index 60e73ead..51ac0572 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -33,7 +33,6 @@ export interface Options { /** * Transform Vue SFCs into custom elements. - * **requires Vue \>= 3.2.0 & Vite \>= 2.4.4** * - `true`: all `*.vue` imports are converted into custom elements * - `string | RegExp`: matched files are converted into custom elements * @@ -44,9 +43,6 @@ export interface Options { /** * Enable Vue reactivity transform (experimental). * https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform - * - * **requires vue\@^3.2.25** - * * - `true`: transform will be enabled for all vue,js(x),ts(x) files except * those inside node_modules * - `string | RegExp`: apply to vue + only matched files (will include