Skip to content

Commit 80e2575

Browse files
committed
fix: Ignore A component is attempting to bind to a non-bindable property errors
1 parent 2b322de commit 80e2575

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/transformJavascript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ function init_operations() {
6565
);
6666
}
6767
if (!isSupported("proxy", browsers)) {
68+
// Patch Svelte5 validate_prop_bindings() function for the src\internal\client\validate.js
69+
// Fixes `A component is attempting to bind to a non-bindable property` errors
70+
code = code.replace("if (!bindable.includes(key)) {", "if (false) {");
6871
// Patch Svelte5 proxy() function for the src\legacy\legacy-client.js
6972
// Fixes SvelteKit navigation (reacting to root.$set() calls)
7073
code = code.replace(

0 commit comments

Comments
 (0)