mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
add webpackPrefetch annotation to ensure it works
This commit is contained in:
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user