diff --git a/packages/svelte/src/compiler/warnings.js b/packages/svelte/src/compiler/warnings.js index 4d8e658dc1..2f8308e27f 100644 --- a/packages/svelte/src/compiler/warnings.js +++ b/packages/svelte/src/compiler/warnings.js @@ -15,7 +15,7 @@ const attributes = { 'avoid-is': () => 'The "is" attribute is not supported cross-browser and should be avoided', /** @param {string} name */ 'global-event-reference': (name) => - `You are referencing the global property window.${name}. Did you forget to declare a variable with that name?` + `You are referencing globalThis.${name}. Did you forget to declare a variable with that name?` }; /** @satisfies {Warnings} */