Gathering detailed insights and metrics for @vitejs/plugin-vue2-jsx
Gathering detailed insights and metrics for @vitejs/plugin-vue2-jsx
npm install @vitejs/plugin-vue2-jsx
Typescript
Module System
Min. Node Version
Node Version
NPM Version
64.8
Supply Chain
82.8
Quality
81.2
Maintenance
50
Vulnerability
97.9
License
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
895,112
Last Day
1,316
Last Week
8,227
Last Month
35,165
Last Year
479,900
Latest Version
1.1.1
Package Id
@vitejs/plugin-vue2-jsx@1.1.1
Unpacked Size
32.07 kB
Size
6.33 kB
File Count
6
NPM Version
10.2.3
Node Version
20.10.0
Published on
Nov 28, 2023
Cumulative downloads
Total Downloads
Last Day
-29.6%
1,316
Compared to previous day
Last Week
-10.8%
8,227
Compared to previous week
Last Month
29.7%
35,165
Compared to previous month
Last Year
28.6%
479,900
Compared to previous year
5
6
Provides Vue 2 JSX & TSX support with HMR.
1// vite.config.js 2import vueJsx from '@vitejs/plugin-vue2-jsx' 3 4export default { 5 plugins: [ 6 vueJsx({ 7 // options are passed on to @vue/babel-preset-jsx 8 }) 9 ] 10}
Type: (string | RegExp)[] | string | RegExp | null
Default: /\.[jt]sx$/
A picomatch pattern, or array of patterns, which specifies the files the plugin should operate on.
Type: (string | RegExp)[] | string | RegExp | null
Default: undefined
A picomatch pattern, or array of patterns, which specifies the files to be ignored by the plugin.
See @vue/babel-preset-jsx for other options.
This plugin supports HMR of Vue JSX components. The detection requirements are:
defineComponent
via a root-level statement, either variable declaration or export declaration.1import { defineComponent } from 'vue' 2 3// named exports w/ variable declaration: ok 4export const Foo = defineComponent({}) 5 6// named exports referencing variable declaration: ok 7const Bar = defineComponent({ render() { return <div>Test</div> }}) 8export { Bar } 9 10// default export call: ok 11export default defineComponent({ render() { return <div>Test</div> }}) 12 13// default export referencing variable declaration: ok 14const Baz = defineComponent({ render() { return <div>Test</div> }}) 15export default Baz
1// not using `defineComponent` call 2export const Bar = { ... } 3 4// not exported 5const Foo = defineComponent(...)
@vitejs/plugin-vue2
No vulnerabilities found.
No security vulnerabilities found.