Skip to content

Commit 66d81ce

Browse files
committed
chore: remove leftover references to reactivity transform
1 parent ba1bab9 commit 66d81ce

File tree

4 files changed

+1
-41
lines changed

4 files changed

+1
-41
lines changed

packages/plugin-vue/README.md

-14
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface Options {
3131
| 'defineModel'
3232
| 'propsDestructure'
3333
| 'fs'
34-
| 'reactivityTransform'
3534
>
3635
>
3736

@@ -56,19 +55,6 @@ export interface Options {
5655
*/
5756
customElement?: boolean | string | RegExp | (string | RegExp)[]
5857

59-
/**
60-
* Enable Vue reactivity transform (experimental).
61-
* https://vuejs.org/guide/extras/reactivity-transform.html
62-
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except
63-
* those inside node_modules
64-
* - `string | RegExp`: apply to vue + only matched files (will include
65-
* node_modules, so specify directories if necessary)
66-
* - `false`: disable in all cases
67-
*
68-
* @default false
69-
*/
70-
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]
71-
7258
/**
7359
* Use custom compiler-sfc instance. Can be used to force a specific version.
7460
*/

packages/plugin-vue/src/index.ts

-19
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export interface Options {
4444
| 'defineModel'
4545
| 'propsDestructure'
4646
| 'fs'
47-
| 'reactivityTransform'
4847
| 'hoistStatic'
4948
>
5049
>
@@ -69,23 +68,6 @@ export interface Options {
6968
*/
7069
customElement?: boolean | string | RegExp | (string | RegExp)[]
7170

72-
/**
73-
* Enable Vue reactivity transform (experimental).
74-
* https://vuejs.org/guide/extras/reactivity-transform.html
75-
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except
76-
* those inside node_modules
77-
* - `string | RegExp`: apply to vue + only matched files (will include
78-
* node_modules, so specify directories if necessary)
79-
* - `false`: disable in all cases
80-
*
81-
* @deprecated the Reactivity Transform proposal has been dropped. This
82-
* feature will be removed from Vue core in 3.4. If you intend to continue
83-
* using it, disable this and switch to the [Vue Macros implementation](https://vue-macros.sxzz.moe/features/reactivity-transform.html).
84-
*
85-
* @default false
86-
*/
87-
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]
88-
8971
/**
9072
* Use custom compiler-sfc instance. Can be used to force a specific version.
9173
*/
@@ -107,7 +89,6 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
10789
compiler: null as any, // to be set in buildStart
10890
include: /\.vue$/,
10991
customElement: /\.ce\.vue$/,
110-
reactivityTransform: false,
11192
...rawOptions,
11293
root: process.cwd(),
11394
sourceMap: true,

packages/plugin-vue/src/script.ts

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export function resolveScript(
6565
id: descriptor.id,
6666
isProd: options.isProduction,
6767
inlineTemplate: isUseInlineTemplate(descriptor, !options.devServer),
68-
reactivityTransform: options.reactivityTransform !== false,
6968
templateOptions: resolveTemplateCompilerOptions(descriptor, options, ssr),
7069
sourceMap: options.sourceMap,
7170
genDefaultAs: canInlineMain(descriptor, options)

playground/vue/vite.config.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ export default defineConfig({
99
'@': __dirname,
1010
},
1111
},
12-
plugins: [
13-
vuePlugin({
14-
reactivityTransform: true,
15-
}),
16-
splitVendorChunkPlugin(),
17-
vueI18nPlugin,
18-
],
12+
plugins: [vuePlugin(), splitVendorChunkPlugin(), vueI18nPlugin],
1913
build: {
2014
// to make tests faster
2115
minify: false,

0 commit comments

Comments
 (0)