Skip to content

Commit e30b37f

Browse files
committed
chore(plugin-vue): comments and readme
1 parent 87bad9b commit e30b37f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/plugin-vue/README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface Options {
2222
isProduction?: boolean
2323

2424
/**
25-
* Transform Vue SFCs into custom elements (requires Vue >= 3.2.0)
25+
* Transform Vue SFCs into custom elements (requires vue@^3.2.0)
2626
* - `true` -> all `*.vue` imports are converted into custom elements
2727
* - `string | RegExp` -> matched files are converted into custom elements
2828
*
@@ -31,10 +31,8 @@ export interface Options {
3131
customElement?: boolean | string | RegExp | (string | RegExp)[]
3232

3333
/**
34-
* Enable Vue ref transform (experimental).
35-
* https://github.com/vuejs/vue-next/tree/master/packages/ref-transform
36-
*
37-
* **requires Vue \>= 3.2.5**
34+
* Enable Vue reactivity transform (experimental, requires vue@^3.2.25).
35+
* https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform
3836
*
3937
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except
4038
* those inside node_modules
@@ -44,7 +42,7 @@ export interface Options {
4442
*
4543
* @default false
4644
*/
47-
refTransform?: boolean | string | RegExp | (string | RegExp)[]
45+
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]
4846

4947
// options to pass on to vue/compiler-sfc
5048
script?: Partial<SFCScriptCompileOptions>

packages/plugin-vue/src/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export interface Options {
3333

3434
/**
3535
* Transform Vue SFCs into custom elements.
36-
* **requires Vue \>= 3.2.0 & Vite \>= 2.4.4**
3736
* - `true`: all `*.vue` imports are converted into custom elements
3837
* - `string | RegExp`: matched files are converted into custom elements
3938
*
@@ -44,9 +43,6 @@ export interface Options {
4443
/**
4544
* Enable Vue reactivity transform (experimental).
4645
* https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform
47-
*
48-
* **requires vue\@^3.2.25**
49-
*
5046
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except
5147
* those inside node_modules
5248
* - `string | RegExp`: apply to vue + only matched files (will include

0 commit comments

Comments
 (0)