UNPKG

prepack

Version:

Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.

46 lines (34 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _global = _interopRequireDefault(require("./intrinsics/prepack/global.js")); var _global2 = _interopRequireDefault(require("./intrinsics/dom/global.js")); var _global3 = _interopRequireDefault(require("./intrinsics/react-native/global.js")); var _global4 = _interopRequireDefault(require("./intrinsics/fb-www/global.js")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ /* strict-local */ function _default(realm) { (0, _global.default)(realm); if (realm.isCompatibleWith("browser")) { (0, _global2.default)(realm); } if (realm.isCompatibleWith("fb-www") || realm.isCompatibleWith("node-react")) { (0, _global2.default)(realm); (0, _global4.default)(realm); } if (realm.isCompatibleWith(realm.MOBILE_JSC_VERSION) || realm.isCompatibleWith("mobile")) { (0, _global3.default)(realm); } return realm; } //# sourceMappingURL=globals.js.map