Socket
Socket
Sign inDemoInstall

@vitejs/plugin-vue

Package Overview
Dependencies
Maintainers
6
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitejs/plugin-vue - npm Package Compare versions

Comparing version 5.0.5 to 5.1.0

54

dist/index.d.ts

@@ -24,4 +24,7 @@ import { ViteDevServer, Plugin } from 'vite';

exclude?: string | RegExp | (string | RegExp)[];
/**
* In Vite, this option follows Vite's config.
*/
isProduction?: boolean;
script?: Partial<Omit<SFCScriptCompileOptions, 'id' | 'isProd' | 'inlineTemplate' | 'templateOptions' | 'sourceMap' | 'genDefaultAs' | 'customElement' | 'defineModel'>> & {
script?: Partial<Omit<SFCScriptCompileOptions, 'id' | 'isProd' | 'inlineTemplate' | 'templateOptions' | 'sourceMap' | 'genDefaultAs' | 'customElement' | 'defineModel' | 'propsDestructure'>> & {
/**

@@ -36,13 +39,46 @@ * @deprecated defineModel is now a stable feature and always enabled if

/**
* Transform Vue SFCs into custom elements.
* - `true`: all `*.vue` imports are converted into custom elements
* - `string | RegExp`: matched files are converted into custom elements
*
* @default /\.ce\.vue$/
* Use custom compiler-sfc instance. Can be used to force a specific version.
*/
customElement?: boolean | string | RegExp | (string | RegExp)[];
compiler?: typeof _compiler;
/**
* Use custom compiler-sfc instance. Can be used to force a specific version.
* Requires @vitejs/plugin-vue@^5.1.0
*/
compiler?: typeof _compiler;
features?: {
/**
* Enable reactive destructure for `defineProps`.
* - Available in Vue 3.4 and later.
* - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
*/
propsDestructure?: boolean;
/**
* Transform Vue SFCs into custom elements.
* - `true`: all `*.vue` imports are converted into custom elements
* - `string | RegExp`: matched files are converted into custom elements
* - **default:** /\.ce\.vue$/
*/
customElement?: boolean | string | RegExp | (string | RegExp)[];
/**
* Set to `false` to disable Options API support and allow related code in
* Vue core to be dropped via dead-code elimination in production builds,
* resulting in smaller bundles.
* - **default:** `true`
*/
optionsAPI?: boolean;
/**
* Set to `true` to enable devtools support in production builds.
* Results in slightly larger bundles.
* - **default:** `false`
*/
prodDevtools?: boolean;
/**
* Set to `true` to enable detailed information for hydration mismatch
* errors in production builds. Results in slightly larger bundles.
* - **default:** `false`
*/
prodHydrationMismatchDetails?: boolean;
};
/**
* @deprecated moved to `features.customElement`.
*/
customElement?: boolean | string | RegExp | (string | RegExp)[];
}

@@ -49,0 +85,0 @@ interface ResolvedOptions extends Options {

10

package.json
{
"name": "@vitejs/plugin-vue",
"version": "5.0.5",
"version": "5.1.0",
"license": "MIT",

@@ -37,8 +37,8 @@ "author": "Evan You",

"@jridgewell/trace-mapping": "^0.3.25",
"debug": "^4.3.4",
"rollup": "^4.18.0",
"debug": "^4.3.5",
"rollup": "^4.19.0",
"slash": "^5.1.0",
"source-map-js": "^1.2.0",
"vite": "^5.2.12",
"vue": "^3.4.27"
"vite": "^5.3.4",
"vue": "^3.4.29"
},

@@ -45,0 +45,0 @@ "scripts": {

@@ -25,3 +25,43 @@ # @vitejs/plugin-vue [![npm](https://img.shields.io/npm/v/@vitejs/plugin-vue.svg)](https://npmjs.com/package/@vitejs/plugin-vue)

// options to pass on to vue/compiler-sfc
/**
* Requires @vitejs/plugin-vue@^5.1.0
*/
features?: {
/**
* Enable reactive destructure for `defineProps`.
* - Available in Vue 3.4 and later.
* - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
*/
propsDestructure?: boolean
/**
* Transform Vue SFCs into custom elements.
* - `true`: all `*.vue` imports are converted into custom elements
* - `string | RegExp`: matched files are converted into custom elements
* - **default:** /\.ce\.vue$/
*/
customElement?: boolean | string | RegExp | (string | RegExp)[]
/**
* Set to `false` to disable Options API support and allow related code in
* Vue core to be dropped via dead-code elimination in production builds,
* resulting in smaller bundles.
* - **default:** `true`
*/
optionsAPI?: boolean
/**
* Set to `true` to enable devtools support in production builds.
* Results in slightly larger bundles.
* - **default:** `false`
*/
prodDevtools?: boolean
/**
* Set to `true` to enable detailed information for hydration mismatch
* errors in production builds. Results in slightly larger bundles.
* - **default:** `false`
*/
prodHydrationMismatchDetails?: boolean
}
// `script`, `template` and `style` are lower-level compiler options
// to pass on to respective APIs of `vue/compiler-sfc`
script?: Partial<

@@ -37,3 +77,2 @@ Omit<

| 'customElement'
| 'defineModel'
>

@@ -58,2 +97,3 @@ >

>
style?: Partial<

@@ -78,14 +118,10 @@ Omit<

/**
* Transform Vue SFCs into custom elements.
* - `true`: all `*.vue` imports are converted into custom elements
* - `string | RegExp`: matched files are converted into custom elements
*
* @default /\.ce\.vue$/
* Use custom compiler-sfc instance. Can be used to force a specific version.
*/
customElement?: boolean | string | RegExp | (string | RegExp)[]
compiler?: typeof _compiler
/**
* Use custom compiler-sfc instance. Can be used to force a specific version.
* @deprecated moved to `features.customElement`.
*/
compiler?: typeof _compiler
customElements?: boolean | string | RegExp | (string | RegExp)[]
}

@@ -92,0 +128,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc