@vitejs/plugin-vue-jsx
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -98,6 +98,9 @@ // @ts-check | ||
const filter = createFilter(include || /\.[jt]sx$/, exclude) | ||
const [filepath] = id.split('?') | ||
if (filter(id)) { | ||
// use id for script blocks in Vue SFCs (e.g. `App.vue?vue&type=script&lang.jsx`) | ||
// use filepath for plain jsx files (e.g. App.jsx) | ||
if (filter(id) || filter(filepath)) { | ||
const plugins = [importMeta, [jsx, babelPluginOptions], ...babelPlugins] | ||
if (id.endsWith('.tsx')) { | ||
if (id.endsWith('.tsx') || filepath.endsWith('.tsx')) { | ||
plugins.push([ | ||
@@ -104,0 +107,0 @@ require('@babel/plugin-transform-typescript'), |
{ | ||
"name": "@vitejs/plugin-vue-jsx", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"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
12196
270