main
js 24 lines 655 Bytes
Raw
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 import type {Chunk} from '../shared/ReactFlightImportMetadata';
13
14 export function loadChunk(filename: Chunk): Promise<mixed> {
15 return __turbopack_load_by_url__(filename);
16 }
17
18 export function addChunkDebugInfo(
19 target: ReactDebugInfo,
20 filename: string,
21 ): void {
22 // We don't emit any debug info on the server since we assume the loading
23 // of the bundle is insignificant on the server.
24 }