@vitejs/plugin-vue
Advanced tools
Comparing version 4.5.0 to 5.0.0-alpha.0
@@ -25,3 +25,3 @@ import { ViteDevServer, Plugin } from 'vite'; | ||
isProduction?: boolean; | ||
script?: Partial<Pick<SFCScriptCompileOptions, 'babelParserPlugins' | 'globalTypeFiles' | 'defineModel' | 'propsDestructure' | 'fs' | 'reactivityTransform' | 'hoistStatic'>>; | ||
script?: Partial<Pick<SFCScriptCompileOptions, 'babelParserPlugins' | 'globalTypeFiles' | 'defineModel' | 'propsDestructure' | 'fs' | 'hoistStatic'>>; | ||
template?: Partial<Pick<SFCTemplateCompileOptions, 'compiler' | 'compilerOptions' | 'preprocessOptions' | 'preprocessCustomRequire' | 'transformAssetUrls'>>; | ||
@@ -38,18 +38,2 @@ style?: Partial<Pick<SFCStyleCompileOptions, 'trim'>>; | ||
/** | ||
* 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. | ||
@@ -67,4 +51,9 @@ */ | ||
} | ||
declare function vuePlugin(rawOptions?: Options): Plugin; | ||
interface Api { | ||
get options(): ResolvedOptions; | ||
set options(value: ResolvedOptions); | ||
version: string; | ||
} | ||
declare function vuePlugin(rawOptions?: Options): Plugin<Api>; | ||
export { type Options, type ResolvedOptions, type VueQuery, vuePlugin as default, parseVueRequest }; | ||
export { type Api, type Options, type ResolvedOptions, type VueQuery, vuePlugin as default, parseVueRequest }; |
{ | ||
"name": "@vitejs/plugin-vue", | ||
"version": "4.5.0", | ||
"version": "5.0.0-alpha.0", | ||
"license": "MIT", | ||
@@ -19,3 +19,3 @@ "author": "Evan You", | ||
"engines": { | ||
"node": "^14.18.0 || >=16.0.0" | ||
"node": "^18.0.0 || >=20.0.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"peerDependencies": { | ||
"vite": "^4.0.0 || ^5.0.0", | ||
"vite": "^5.0.0", | ||
"vue": "^3.2.25" | ||
@@ -40,6 +40,6 @@ }, | ||
"debug": "^4.3.4", | ||
"rollup": "^3.29.4", | ||
"rollup": "^4.6.0", | ||
"slash": "^5.1.0", | ||
"source-map-js": "^1.0.2", | ||
"vite": "^4.5.0", | ||
"vite": "^5.0.2", | ||
"vue": "^3.3.8" | ||
@@ -46,0 +46,0 @@ }, |
@@ -34,3 +34,2 @@ # @vitejs/plugin-vue [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue.svg)](https://npmjs.com/package/@vitejs/plugin-vue) | ||
| 'fs' | ||
| 'reactivityTransform' | ||
> | ||
@@ -61,15 +60,2 @@ > | ||
/** | ||
* 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. | ||
@@ -76,0 +62,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5576
181656
1
201