@vitejs/plugin-vue-jsx
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -0,1 +1,10 @@ | ||
## [1.3.2](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.3.1...plugin-vue-jsx@1.3.2) (2021-12-13) | ||
### 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)) | ||
## [1.3.1](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.3.0...plugin-vue-jsx@1.3.1) (2021-12-07) | ||
@@ -2,0 +11,0 @@ |
11
index.js
@@ -51,2 +51,8 @@ // @ts-check | ||
config(config) { | ||
const optionsApi = config.define | ||
? config.define.__VUE_OPTIONS_API__ | ||
: undefined | ||
const devTools = config.define | ||
? config.define.__VUE_PROD_DEVTOOLS__ | ||
: undefined | ||
return { | ||
@@ -59,5 +65,4 @@ // only apply esbuild to ts files | ||
define: { | ||
__VUE_OPTIONS_API__: true, | ||
__VUE_PROD_DEVTOOLS__: false, | ||
...config.define | ||
__VUE_OPTIONS_API__: optionsApi != null ? optionsApi : true, | ||
__VUE_PROD_DEVTOOLS__: devTools != null ? devTools : false | ||
} | ||
@@ -64,0 +69,0 @@ } |
{ | ||
"name": "@vitejs/plugin-vue-jsx", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
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
18338
267