fix: correctly import modulepreload-polyfill

This commit is contained in:
Valerio Ageno
2024-06-04 20:48:19 +02:00
parent 5ea209de0b
commit f6e7ebd33e
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -9,7 +9,7 @@ use std::path::Path;
use std::path::PathBuf;
pub const SERVER_ENTRY_DATA: &str = "// File automatically generated by tuono
// Do not manually update this file
import { routeTree } from './routeTree.gen'
import { serverSideRendering } from 'tuono/ssr'
@@ -17,7 +17,8 @@ export const renderFn = serverSideRendering(routeTree)
";
pub const CLIENT_ENTRY_DATA: &str = "// File automatically generated by tuono
// Do not manually update this file
import 'vite/modulepreload-polyfill'
import { hydrate } from 'tuono/hydration'
import '../src/styles/global.css'
-1
View File
@@ -1,4 +1,3 @@
import 'vite/modulepreload-polyfill'
import React from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider, createRouter } from '../router'