| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | import type {Platform} from './platform'; |
| 9 | |
| 10 | import {makeBrowserLikePlatformImpl} from './platform/browserPlatformImpl'; |
| 11 | |
| 12 | // important: this file should not try to import other code from 'isl', |
| 13 | // since it will end up getting duplicated when bundling. |
| 14 | |
| 15 | declare global { |
| 16 | interface Window { |
| 17 | isSaplingVSCodeExtension?: boolean; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export const browserPlatform: Platform = makeBrowserLikePlatformImpl('browser'); |
| 22 | |