From 80e2575aa475545d3b36a3cf8957f13c99f6b9a3 Mon Sep 17 00:00:00 2001 From: Bob Fanger Date: Sun, 16 Jun 2024 12:20:59 +0200 Subject: [PATCH] fix: Ignore `A component is attempting to bind to a non-bindable property` errors --- src/transformJavascript.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transformJavascript.js b/src/transformJavascript.js index 985acf7..5c8ca86 100644 --- a/src/transformJavascript.js +++ b/src/transformJavascript.js @@ -65,6 +65,9 @@ function init_operations() { ); } if (!isSupported("proxy", browsers)) { + // Patch Svelte5 validate_prop_bindings() function for the src\internal\client\validate.js + // Fixes `A component is attempting to bind to a non-bindable property` errors + code = code.replace("if (!bindable.includes(key)) {", "if (false) {"); // Patch Svelte5 proxy() function for the src\legacy\legacy-client.js // Fixes SvelteKit navigation (reacting to root.$set() calls) code = code.replace(