From 8d7bea986fc79c2d3629eead46e34098f11d925d Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 3 May 2024 17:28:16 +0000 Subject: [PATCH] add line limit warning --- src/content/api.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/api.yml b/src/content/api.yml index 51b2ad9..4bb7459 100644 --- a/src/content/api.yml +++ b/src/content/api.yml @@ -2880,6 +2880,11 @@ body: - h3: Line limit + - warning: > + Beware that if you have a custom post-build process (after minification) which relies on a simple search of a static string, + using feature may split strings into two lines such as `"__VITE_PRELOAD__"` becoming `"\\n__VITE_PRELOAD__"` + (slash and newline added inside the string) which could potentially break your build. + - p: > This setting is a way to prevent esbuild from generating output files with really long lines, which can help editing performance in