UNPKG

1.19 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.withOutput = exports.default = void 0;
7
8var _buildBundle = _interopRequireDefault(require("./buildBundle"));
9
10var _bundleCommandLineArgs = _interopRequireDefault(require("./bundleCommandLineArgs"));
11
12function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14/**
15 * Copyright (c) Facebook, Inc. and its affiliates.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE file in the root directory of this source tree.
19 *
20 */
21
22/**
23 * Builds the bundle starting to look for dependencies at the given entry path.
24 */
25function bundleWithOutput(_, config, args, output) // untyped metro/src/shared/output/bundle or metro/src/shared/output/RamBundle
26{
27 return (0, _buildBundle.default)(args, config, output);
28}
29
30var _default = {
31 name: 'bundle',
32 description: 'builds the javascript bundle for offline use',
33 func: bundleWithOutput,
34 options: _bundleCommandLineArgs.default,
35 // Used by `ramBundle.js`
36 withOutput: bundleWithOutput
37};
38exports.default = _default;
39const withOutput = bundleWithOutput;
40exports.withOutput = withOutput;
\No newline at end of file