diff options
| author | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
|---|---|---|
| committer | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
| commit | bce557cc2dc767628bed6aac87301a1be7c5431b (patch) | |
| tree | b51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/svelte/src/runtime/internal/globals.js | |
init commit
Diffstat (limited to 'node_modules/svelte/src/runtime/internal/globals.js')
| -rw-r--r-- | node_modules/svelte/src/runtime/internal/globals.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/svelte/src/runtime/internal/globals.js b/node_modules/svelte/src/runtime/internal/globals.js new file mode 100644 index 0000000..bd21be4 --- /dev/null +++ b/node_modules/svelte/src/runtime/internal/globals.js @@ -0,0 +1,8 @@ +/** @type {typeof globalThis} */ +export const globals = + typeof window !== 'undefined' + ? window + : typeof globalThis !== 'undefined' + ? globalThis + : // @ts-ignore Node typings have this + global; |
