feat: elide __FRSH_PROPS for no data or params (#33)
Minor size improvement.
This commit is contained in:
+1
-4
@@ -17,10 +17,7 @@ Deno.test("/ page prerender", async () => {
|
||||
body,
|
||||
`<script id="__FRSH_PROPS" type="application/json">`,
|
||||
);
|
||||
assertStringIncludes(
|
||||
body,
|
||||
`"params":{}`,
|
||||
);
|
||||
assert(!body.includes(`"params"`));
|
||||
assertStringIncludes(
|
||||
body,
|
||||
`"data":[["home","Hello!"]]`,
|
||||
|
||||
Reference in New Issue
Block a user