vite-plugin-symfony
Advanced tools
Comparing version 6.4.1 to 6.4.2
@@ -29,3 +29,3 @@ var __defProp = Object.defineProperty; | ||
window.resolveReactComponent = (name) => { | ||
const reactModule = reactImportedModules[`${controllersDir}/${name}.jsx` || `${controllersDir}/${name}.tsx`]; | ||
const reactModule = reactImportedModules[`${controllersDir}/${name}.jsx`] || reactImportedModules[`${controllersDir}/${name}.tsx`]; | ||
if (typeof reactModule === "undefined") { | ||
@@ -32,0 +32,0 @@ const possibleValues = Object.keys(reactImportedModules).map( |
{ | ||
"name": "vite-plugin-symfony", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"description": "A Vite plugin to integrate easily Vite in your Symfony application", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,3 +12,4 @@ import { ImportedModule, ImportedModules, ReactModule } from "../types"; | ||
window.resolveReactComponent = (name: string): ImportedModule<ReactModule> => { | ||
const reactModule = reactImportedModules[`${controllersDir}/${name}.jsx` || `${controllersDir}/${name}.tsx`]; | ||
const reactModule = | ||
reactImportedModules[`${controllersDir}/${name}.jsx`] || reactImportedModules[`${controllersDir}/${name}.tsx`]; | ||
if (typeof reactModule === "undefined") { | ||
@@ -15,0 +16,0 @@ const possibleValues = Object.keys(reactImportedModules).map((key) => |
Sorry, the diff of this file is not supported yet
220449
4529