1/**
2 * Copyright © 2022 650 Industries.
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 * Given a path and some optional additional query parameters, create the dev server bundle URL.
9 * @param bundlePath like `/foobar`
10 * @param params like `{ platform: "web" }`
11 * @returns a URL like "/foobar.bundle?platform=android&modulesOnly=true&runModule=false&runtimeBytecodeVersion=null"
12 */
13export function buildUrlForBundle(bundlePath) {
14    // NOTE(EvanBacon): This must come from the window origin (at least in dev mode).
15    // Otherwise Metro will crash from attempting to load a bundle that doesn't exist.
16    return '/' + bundlePath.replace(/^\/+/, '');
17}
18//# sourceMappingURL=buildUrlForBundle.js.map