Skip to content

Commit 296e81a

Browse files
authored
add EventSource to the known globals (#5468)
1 parent 46a83a5 commit 296e81a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Svelte changelog
22

3+
## Unreleased
4+
5+
* Add `EventSource` to known globals ([#5463](https://github.com/sveltejs/svelte/issues/5463))
6+
37
## 3.28.0
48

59
* Add `{#key}` block for keying arbitrary content on an expression ([#1469](https://github.com/sveltejs/svelte/issues/1469))

src/compiler/utils/names.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const globals = new Set([
1818
'Error',
1919
'EvalError',
2020
'Event',
21+
'EventSource',
2122
'fetch',
2223
'global',
2324
'globalThis',

0 commit comments

Comments
 (0)