Skip to content

Commit 27ae296

Browse files
committed
fix
1 parent f889aba commit 27ae296

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/src/internal/client/dev/equality.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DEV } from 'esm-env';
22
import * as w from '../warnings.js';
3-
import { get_proxied_value } from '../proxy';
3+
import { get_proxied_value } from '../proxy.js';
44

55
export function init_array_prototype_warnings() {
66
const array_prototype = Array.prototype;

packages/svelte/src/internal/client/warnings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ export function ownership_invalid_mutation(component, owner) {
7474
}
7575

7676
/**
77-
* Detected an equality check between a $state proxy and a non-$state-proxy object for %method%. This equality check will always fail because the proxy has a different object identity. To ensure both operands are of the same kind for accurate results, consider using the `$state.is(a, b)` rune.
77+
* Detected an equality check between a $state proxy and a non-$state-proxy object for %method%. This equality check will always fail because the proxy has a different object identity. To ensure both operands are of the same kind for accurate results, consider using `$state.is(a, b)`.
7878
* @param {string} method
7979
*/
8080
export function state_proxy_equality_mismatch(method) {
8181
if (DEV) {
82-
console.warn(`%c[svelte] ${"state_proxy_equality_mismatch"}\n%c${`Detected an equality check between a $state proxy and a non-$state-proxy object for ${method}. This equality check will always fail because the proxy has a different object identity. To ensure both operands are of the same kind for accurate results, consider using the \`$state.is(a, b)\` rune.`}`, bold, normal);
82+
console.warn(`%c[svelte] ${"state_proxy_equality_mismatch"}\n%c${`Detected an equality check between a $state proxy and a non-$state-proxy object for ${method}. This equality check will always fail because the proxy has a different object identity. To ensure both operands are of the same kind for accurate results, consider using \`$state.is(a, b)\`.`}`, bold, normal);
8383
} else {
8484
// TODO print a link to the documentation
8585
console.warn("state_proxy_equality_mismatch");

0 commit comments

Comments
 (0)