From 9512df0a94b2244c4893c90859ce6d72cd5e971f Mon Sep 17 00:00:00 2001 From: arctic-hen7 Date: Sat, 28 Jan 2023 06:31:46 +1100 Subject: [PATCH] fix: re-enabled minification I thought at one stage it might be causing the hydration bugs, but it wasn't. --- packages/perseus/src/utils/minify.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/perseus/src/utils/minify.rs b/packages/perseus/src/utils/minify.rs index 97e87280b4..6545b345c9 100644 --- a/packages/perseus/src/utils/minify.rs +++ b/packages/perseus/src/utils/minify.rs @@ -7,9 +7,6 @@ use minify_html_onepass::{with_friendly_error, Cfg}; /// If the second argument is set to `false`, CSS and JS will not be minified, /// and the performance will be improved. pub(crate) fn minify(code: &str, minify_extras: bool) -> Result { - // TODO Minification seems to be currently breaking hydration? (Not certain of - // this though...) - return Ok(code.to_string()); // In case the user is using invalid HTML (very tricky error to track down), we // let them disable this feature if cfg!(feature = "minify") {