Skip to content

Commit

Permalink
chore: remove leftover references to reactivity transform
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 25, 2023
1 parent ba1bab9 commit 66d81ce
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
14 changes: 0 additions & 14 deletions packages/plugin-vue/README.md
Expand Up @@ -31,7 +31,6 @@ export interface Options {
| 'defineModel'
| 'propsDestructure'
| 'fs'
| 'reactivityTransform'
>
>

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

/**
* Enable Vue reactivity transform (experimental).
* https://vuejs.org/guide/extras/reactivity-transform.html
* - `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
* node_modules, so specify directories if necessary)
* - `false`: disable in all cases
*
* @default false
*/
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]

/**
* Use custom compiler-sfc instance. Can be used to force a specific version.
*/
Expand Down
19 changes: 0 additions & 19 deletions packages/plugin-vue/src/index.ts
Expand Up @@ -44,7 +44,6 @@ export interface Options {
| 'defineModel'
| 'propsDestructure'
| 'fs'
| 'reactivityTransform'
| 'hoistStatic'
>
>
Expand All @@ -69,23 +68,6 @@ export interface Options {
*/
customElement?: boolean | string | RegExp | (string | RegExp)[]

/**
* Enable Vue reactivity transform (experimental).
* https://vuejs.org/guide/extras/reactivity-transform.html
* - `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
* node_modules, so specify directories if necessary)
* - `false`: disable in all cases
*
* @deprecated the Reactivity Transform proposal has been dropped. This
* feature will be removed from Vue core in 3.4. If you intend to continue
* using it, disable this and switch to the [Vue Macros implementation](https://vue-macros.sxzz.moe/features/reactivity-transform.html).
*
* @default false
*/
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]

/**
* Use custom compiler-sfc instance. Can be used to force a specific version.
*/
Expand All @@ -107,7 +89,6 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
compiler: null as any, // to be set in buildStart
include: /\.vue$/,
customElement: /\.ce\.vue$/,
reactivityTransform: false,
...rawOptions,
root: process.cwd(),
sourceMap: true,
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-vue/src/script.ts
Expand Up @@ -65,7 +65,6 @@ export function resolveScript(
id: descriptor.id,
isProd: options.isProduction,
inlineTemplate: isUseInlineTemplate(descriptor, !options.devServer),
reactivityTransform: options.reactivityTransform !== false,
templateOptions: resolveTemplateCompilerOptions(descriptor, options, ssr),
sourceMap: options.sourceMap,
genDefaultAs: canInlineMain(descriptor, options)
Expand Down
8 changes: 1 addition & 7 deletions playground/vue/vite.config.ts
Expand Up @@ -9,13 +9,7 @@ export default defineConfig({
'@': __dirname,
},
},
plugins: [
vuePlugin({
reactivityTransform: true,
}),
splitVendorChunkPlugin(),
vueI18nPlugin,
],
plugins: [vuePlugin(), splitVendorChunkPlugin(), vueI18nPlugin],
build: {
// to make tests faster
minify: false,
Expand Down

0 comments on commit 66d81ce

Please sign in to comment.