File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ The goal of the API is to cover following use cases in SSR application:
2626// [server.js] server entry injecting client entry during SSR
2727function renderHtml () {
2828 const assets = import .meta.vite.assets({
29- entry : "./client .js ",
29+ import : "./client .js ",
3030 environment : "client ",
3131 asEntry : true ,
3232 });
@@ -40,7 +40,7 @@ function renderHtml() {
4040```
4141
4242- for universal route to access assets within its route
43- - see [ ` examples/react-rotuer ` ] ( ./examples/react-router ) and [ ` examples/vue-router ` ] ( ./examples/vue-router ) for concrete integrations.
43+ - see [ ` examples/react-router ` ] ( ./examples/react-router ) and [ ` examples/vue-router ` ] ( ./examples/vue-router ) for concrete integrations.
4444
4545``` js
4646// [routes.js] hypothetical router library's routes declaration
@@ -50,11 +50,11 @@ export const routes = [
5050 route : () => import (" ./pages/about.js" ),
5151 routeAssets: mergeAssets (
5252 import .meta.vite.assets({
53- entry : "./pages /about .js ",
53+ import : "./pages /about .js ",
5454 environment : "client ",
5555 }),
5656 import .meta.vite.assets({
57- entry : "./pages /about .js ",
57+ import : "./pages /about .js ",
5858 environment : "ssr ",
5959 }),
6060 )
You can’t perform that action at this time.
0 commit comments