Socket
Socket
Sign inDemoInstall

@vitejs/plugin-vue

Package Overview
Dependencies
Maintainers
3
Versions
107
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 1.10.2 to 2.0.0

27

CHANGELOG.md

@@ -0,1 +1,28 @@

# [2.0.0](https://github.com/vitejs/vite/compare/plugin-vue@1.10.2...plugin-vue@2.0.0) (2021-12-12)
### Bug Fixes
* allow overwriting `define` options in vue & vue-jsx plugins ([#6072](https://github.com/vitejs/vite/issues/6072)) ([5f3f6b7](https://github.com/vitejs/vite/commit/5f3f6b7b406cb3371084057c74814eb36175e5cf))
* **plugin-vue:** multiple vue files using the same src file (fix [#5925](https://github.com/vitejs/vite/issues/5925), [#5447](https://github.com/vitejs/vite/issues/5447)) ([#5994](https://github.com/vitejs/vite/issues/5994)) ([df7aec7](https://github.com/vitejs/vite/commit/df7aec7d2a567af1dfbab76e5765aba80dc3cb5c))
### Code Refactoring
* **plugin-vue:** resolve vue/compiler-sfc from project root ([ce8b0fe](https://github.com/vitejs/vite/commit/ce8b0feae334cc224b3f4d2fdb2bffbb62322acf))
### Features
* **plugin-vue:** add `reactivityTransform` option. ([955d0fe](https://github.com/vitejs/vite/commit/955d0fecd936b8175d7a7e4355eab855eb4567f8))
### BREAKING CHANGES
* **plugin-vue:** `refTransform` option has been replaced by
`reactivityTransform` option. Now also requires vue@^3.2.25.
* **plugin-vue:** now requires vue@^3.2.13 as peer dep
## [1.10.2](https://github.com/vitejs/vite/compare/plugin-vue@1.10.1...plugin-vue@1.10.2) (2021-12-07)

@@ -2,0 +29,0 @@

24

dist/index.d.ts

@@ -0,5 +1,6 @@

import * as _compiler from 'vue/compiler-sfc';
import { Plugin as Plugin_2 } from 'vite';
import { SFCScriptCompileOptions } from '@vue/compiler-sfc';
import { SFCStyleCompileOptions } from '@vue/compiler-sfc';
import { SFCTemplateCompileOptions } from '@vue/compiler-sfc';
import { SFCScriptCompileOptions } from 'vue/compiler-sfc';
import { SFCStyleCompileOptions } from 'vue/compiler-sfc';
import { SFCTemplateCompileOptions } from 'vue/compiler-sfc';
import { ViteDevServer } from 'vite';

@@ -16,3 +17,2 @@

* Transform Vue SFCs into custom elements.
* **requires Vue \>= 3.2.0 & Vite \>= 2.4.4**
* - `true`: all `*.vue` imports are converted into custom elements

@@ -25,7 +25,4 @@ * - `string | RegExp`: matched files are converted into custom elements

/**
* Enable Vue ref transform (experimental).
* https://github.com/vuejs/vue-next/tree/master/packages/ref-transform
*
* **requires Vue \>= 3.2.5**
*
* Enable Vue reactivity transform (experimental).
* https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except

@@ -39,7 +36,7 @@ * those inside node_modules

*/
refTransform?: boolean | string | RegExp | (string | RegExp)[];
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[];
/**
* @deprecated the plugin now auto-detects whether it's being invoked for ssr.
* Use custom compiler-sfc instance. Can be used to force a specific version.
*/
ssr?: boolean;
compiler?: typeof _compiler;
}

@@ -53,2 +50,3 @@

export declare interface ResolvedOptions extends Options {
compiler: typeof _compiler;
root: string;

@@ -64,3 +62,3 @@ sourceMap: boolean;

vue?: boolean;
src?: boolean;
src?: string;
type?: 'script' | 'template' | 'style' | 'custom';

@@ -67,0 +65,0 @@ index?: number;

{
"name": "@vitejs/plugin-vue",
"version": "1.10.2",
"version": "2.0.0",
"license": "MIT",

@@ -34,3 +34,4 @@ "author": "Evan You",

"peerDependencies": {
"vite": "^2.5.10"
"vite": "^2.5.10",
"vue": "^3.2.25"
},

@@ -40,3 +41,2 @@ "devDependencies": {

"@types/hash-sum": "^1.0.0",
"@vue/compiler-sfc": "^3.2.23",
"debug": "^4.3.2",

@@ -47,4 +47,4 @@ "hash-sum": "^2.0.0",

"source-map": "^0.6.1",
"vue": "^3.2.23"
"vue": "^3.2.25"
}
}

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

/**
* Transform Vue SFCs into custom elements (requires Vue >= 3.2.0)
* Transform Vue SFCs into custom elements (requires vue@^3.2.0)
* - `true` -> all `*.vue` imports are converted into custom elements

@@ -35,7 +35,5 @@ * - `string | RegExp` -> matched files are converted into custom elements

/**
* Enable Vue ref transform (experimental).
* https://github.com/vuejs/vue-next/tree/master/packages/ref-transform
* Enable Vue reactivity transform (experimental, requires vue@^3.2.25).
* https://github.com/vuejs/vue-next/tree/master/packages/reactivity-transform
*
* **requires Vue \>= 3.2.5**
*
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except

@@ -49,3 +47,3 @@ * those inside node_modules

*/
refTransform?: boolean | string | RegExp | (string | RegExp)[]
reactivityTransform?: boolean | string | RegExp | (string | RegExp)[]

@@ -52,0 +50,0 @@ // options to pass on to vue/compiler-sfc

Sorry, the diff of this file is too big to display

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