@vitejs/plugin-vue-jsx
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,10 @@ | ||
## [1.0.3](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.0.2...plugin-vue-jsx@1.0.3) (2021-02-08) | ||
### Bug Fixes | ||
* **plugin-vue-jsx:** support ssr ([30e92a1](https://github.com/vitejs/vite/commit/30e92a150e060e8bedcb6f0c477dcaa87e7996d6)), closes [#1939](https://github.com/vitejs/vite/issues/1939) | ||
## [1.0.2](https://github.com/vitejs/vite/compare/plugin-vue-jsx@1.0.1...plugin-vue-jsx@1.0.2) (2021-01-12) | ||
@@ -2,0 +11,0 @@ |
@@ -8,3 +8,3 @@ // @ts-check | ||
/** | ||
* @param {import('.').Options} options | ||
* @param {import('@vue/babel-plugin-jsx').VueJSXPluginOptions} options | ||
* @returns {import('vite').Plugin} | ||
@@ -39,3 +39,3 @@ */ | ||
transform(code, id) { | ||
transform(code, id, ssr) { | ||
if (/\.[jt]sx$/.test(id)) { | ||
@@ -58,3 +58,3 @@ const plugins = [importMeta, [jsx, options]] | ||
if (!needHmr) { | ||
if (ssr || !needHmr) { | ||
return { | ||
@@ -61,0 +61,0 @@ code: result.code, |
{ | ||
"name": "@vitejs/plugin-vue-jsx", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
11012