bundle.js 1.2 KB

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