@vitejs/plugin-vue-jsx
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22180
490
82
+ Added@rollup/rollup-android-arm-eabi@4.24.3(transitive)
+ Added@rollup/rollup-android-arm64@4.24.3(transitive)
+ Added@rollup/rollup-darwin-arm64@4.24.3(transitive)
+ Added@rollup/rollup-darwin-x64@4.24.3(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.24.3(transitive)
+ Added@rollup/rollup-freebsd-x64@4.24.3(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.24.3(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.24.3(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.24.3(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.24.3(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.24.3(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.24.3(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.24.3(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.24.3(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.24.3(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.24.3(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.24.3(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.24.3(transitive)
+ Addedcaniuse-lite@1.0.30001676(transitive)
+ Addedelectron-to-chromium@1.5.50(transitive)
+ Addedrollup@4.24.3(transitive)
- Removed@rollup/rollup-android-arm-eabi@4.24.4(transitive)
- Removed@rollup/rollup-android-arm64@4.24.4(transitive)
- Removed@rollup/rollup-darwin-arm64@4.24.4(transitive)
- Removed@rollup/rollup-darwin-x64@4.24.4(transitive)
- Removed@rollup/rollup-freebsd-arm64@4.24.4(transitive)
- Removed@rollup/rollup-freebsd-x64@4.24.4(transitive)
- Removed@rollup/rollup-linux-arm-gnueabihf@4.24.4(transitive)
- Removed@rollup/rollup-linux-arm-musleabihf@4.24.4(transitive)
- Removed@rollup/rollup-linux-arm64-gnu@4.24.4(transitive)
- Removed@rollup/rollup-linux-arm64-musl@4.24.4(transitive)
- Removed@rollup/rollup-linux-powerpc64le-gnu@4.24.4(transitive)
- Removed@rollup/rollup-linux-riscv64-gnu@4.24.4(transitive)
- Removed@rollup/rollup-linux-s390x-gnu@4.24.4(transitive)
- Removed@rollup/rollup-linux-x64-gnu@4.24.4(transitive)
- Removed@rollup/rollup-linux-x64-musl@4.24.4(transitive)
- Removed@rollup/rollup-win32-arm64-msvc@4.24.4(transitive)
- Removed@rollup/rollup-win32-ia32-msvc@4.24.4(transitive)
- Removed@rollup/rollup-win32-x64-msvc@4.24.4(transitive)
- Removedcaniuse-lite@1.0.30001678(transitive)
- Removedelectron-to-chromium@1.5.55(transitive)
- Removedrollup@4.24.4(transitive)
Updated@babel/core@^7.24.7