ramBundle.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _RamBundle() {
  7. const data = _interopRequireDefault(require("metro/src/shared/output/RamBundle"));
  8. _RamBundle = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. var _bundle = require("./bundle");
  14. var _bundleCommandLineArgs = _interopRequireDefault(require("./bundleCommandLineArgs"));
  15. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16. /**
  17. * Copyright (c) Facebook, Inc. and its affiliates.
  18. *
  19. * This source code is licensed under the MIT license found in the
  20. * LICENSE file in the root directory of this source tree.
  21. *
  22. */
  23. // @ts-ignore - no typed definition for the package
  24. /**
  25. * Builds the bundle starting to look for dependencies at the given entry path.
  26. */
  27. function ramBundle(argv, config, args) {
  28. return (0, _bundle.withOutput)(argv, config, args, _RamBundle().default);
  29. }
  30. var _default = {
  31. name: 'ram-bundle',
  32. description: 'builds javascript as a "Random Access Module" bundle for offline use',
  33. func: ramBundle,
  34. options: _bundleCommandLineArgs.default.concat({
  35. name: '--indexed-ram-bundle',
  36. description: 'Force the "Indexed RAM" bundle file format, even when building for android',
  37. default: false
  38. })
  39. };
  40. exports.default = _default;
  41. //# sourceMappingURL=ramBundle.js.map