Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vitejs/plugin-vue-jsx

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitejs/plugin-vue-jsx - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

dist/index.d.ts

@@ -8,5 +8,7 @@ import { FilterPattern, Plugin } from 'vite';

}
type Options = VueJSXPluginOptions & FilterOptions & {
interface Options extends VueJSXPluginOptions, FilterOptions {
babelPlugins?: any[];
};
/** @default ['defineComponent'] */
defineComponentName?: string[];
}

@@ -13,0 +15,0 @@ declare function vueJsxPlugin(options?: Options): Plugin;

{
"name": "@vitejs/plugin-vue-jsx",
"version": "4.0.0",
"version": "4.0.1",
"type": "commonjs",
"license": "MIT",

@@ -31,8 +32,8 @@ "author": "Evan You",

"dependencies": {
"@babel/core": "^7.24.6",
"@babel/plugin-transform-typescript": "^7.24.6",
"@babel/core": "^7.24.7",
"@babel/plugin-transform-typescript": "^7.24.7",
"@vue/babel-plugin-jsx": "^1.2.2"
},
"devDependencies": {
"vite": "^5.2.12"
"vite": "^5.4.0"
},

@@ -39,0 +40,0 @@ "peerDependencies": {

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

### defineComponentName
Type: `string[]`
Default: `['defineComponent']`
The name of the function to be used for defining components. This is useful when you have a custom `defineComponent` function.
## HMR Detection

@@ -44,3 +52,3 @@

- The component must be exported.
- The component must be declared by calling `defineComponent` via a root-level statement, either variable declaration or export declaration.
- The component must be declared by calling `defineComponent` or the name specified in `defineComponentName` via a root-level statement, either variable declaration or export declaration.

@@ -47,0 +55,0 @@ ### Supported patterns

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