From 6b9738cb673736047947f537cb5ef6f37cbf9d3f Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 7 Jan 2024 16:42:54 -0600 Subject: [PATCH] fix: better FOUC prevention --- packages/react/src/ssr.js | 5 +---- packages/web/src/server/build/template.ejs | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/react/src/ssr.js b/packages/react/src/ssr.js index e93c833..546bc23 100644 --- a/packages/react/src/ssr.js +++ b/packages/react/src/ssr.js @@ -34,10 +34,7 @@ class Ssr extends Transform { this.push( string.replace( '
', - ``, + `
${output}
`, ), ); } diff --git a/packages/web/src/server/build/template.ejs b/packages/web/src/server/build/template.ejs index cfcb63a..1e780f3 100644 --- a/packages/web/src/server/build/template.ejs +++ b/packages/web/src/server/build/template.ejs @@ -12,6 +12,8 @@
+ + <%= htmlWebpackPlugin.tags.bodyTags %>