fix: head text nodes rendered into body (#2015)

This commit is contained in:
Marvin Hagemeister
2023-11-06 11:45:33 +01:00
committed by GitHub
parent e0f503ee37
commit 33cc4c7866
4 changed files with 39 additions and 8 deletions
+10 -8
View File
@@ -2,17 +2,19 @@
// This file SHOULD be checked into source version control.
// This file is automatically updated during development when running `dev.ts`.
import * as $0 from "./routes/header_arr.tsx";
import * as $1 from "./routes/header_instance.tsx";
import * as $2 from "./routes/header_obj.tsx";
import * as $3 from "./routes/index.tsx";
import * as $0 from "./routes/head_style.tsx";
import * as $1 from "./routes/header_arr.tsx";
import * as $2 from "./routes/header_instance.tsx";
import * as $3 from "./routes/header_obj.tsx";
import * as $4 from "./routes/index.tsx";
const manifest = {
routes: {
"./routes/header_arr.tsx": $0,
"./routes/header_instance.tsx": $1,
"./routes/header_obj.tsx": $2,
"./routes/index.tsx": $3,
"./routes/head_style.tsx": $0,
"./routes/header_arr.tsx": $1,
"./routes/header_instance.tsx": $2,
"./routes/header_obj.tsx": $3,
"./routes/index.tsx": $4,
},
islands: {},
baseUrl: import.meta.url,
@@ -0,0 +1,19 @@
import { RouteConfig } from "$fresh/src/server/types.ts";
export const config: RouteConfig = {
skipAppWrapper: true,
skipInheritedLayouts: true,
};
export default function App() {
return (
<html>
<head>
<style>{`body { color: red }`}</style>
</head>
<body>
hello
</body>
</html>
);
}