| 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 | * @flow |
| 8 | */ |
| 9 | |
| 10 | import type {ReactDebugInfo} from 'shared/ReactTypes'; |
| 11 | |
| 12 | export function loadChunk(chunkId: string, filename: string): Promise<mixed> { |
| 13 | return __webpack_chunk_load__(chunkId); |
| 14 | } |
| 15 | |
| 16 | export function addChunkDebugInfo( |
| 17 | target: ReactDebugInfo, |
| 18 | chunkId: string, |
| 19 | filename: string, |
| 20 | ): void { |
| 21 | // We don't emit any debug info on the server since we assume the loading |
| 22 | // of the bundle is insignificant on the server. |
| 23 | } |