add webpackPrefetch annotation to ensure it works

This commit is contained in:
Nacho Codoñer
2025-10-10 17:53:02 +02:00
parent 71ef33ab9e
commit c909820d0a

View File

@@ -9,7 +9,7 @@ import "./Global.less";
// Dynamically import components
const Home = lazy(() =>
import("./Home.jsx").then((module) => ({ default: module.Home }))
import(/* webpackPrefetch: true */ "./Home.jsx").then((module) => ({ default: module.Home }))
);
const NotFound = lazy(() =>
import("./NotFound.jsx").then((module) => ({ default: module.NotFound }))