Skip to content

Commit

Permalink
fix: Ignore `A component is attempting to bind to a non-bindable prop…
Browse files Browse the repository at this point in the history
…erty` errors
  • Loading branch information
bfanger committed Jun 16, 2024
1 parent 2b322de commit 80e2575
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformJavascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 80e2575

Please sign in to comment.