UNPKG

prepack

Version:

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

110 lines (103 loc) 2.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRealmOptions = getRealmOptions; exports.getSerializerOptions = getSerializerOptions; /** * 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 getRealmOptions({ compatibility = "browser", debugNames = false, errorHandler, mathRandomSeed, invariantLevel = 0, invariantMode = "throw", emitConcreteModel = false, uniqueSuffix, instantRender, reactEnabled, reactOutput, reactVerbose, reactOptimizeNestedFunctions, serialize = true, check, strictlyMonotonicDateNow, stripFlow, timeout, maxStackDepth, abstractValueImpliesMax, debuggerConfigArgs, debugReproArgs, arrayNestedOptimizedFunctionsEnabled, reactFailOnUnsupportedSideEffects }) { return { compatibility, debugNames, errorHandler, mathRandomSeed, invariantLevel, invariantMode, emitConcreteModel, uniqueSuffix, instantRender, reactEnabled, reactOutput, reactVerbose, reactOptimizeNestedFunctions, serialize, check, strictlyMonotonicDateNow, stripFlow, timeout, maxStackDepth, abstractValueImpliesMax, debuggerConfigArgs, debugReproArgs, arrayNestedOptimizedFunctionsEnabled, reactFailOnUnsupportedSideEffects }; } function getSerializerOptions({ lazyObjectsRuntime, heapGraphFormat, delayInitializations = false, internalDebug = false, debugScopes = false, debugIdentifiers, logStatistics = false, logModules = false, profile = false, inlineExpressions = false, modulesToInitialize, trace = false }) { let result = { delayInitializations, modulesToInitialize, internalDebug, debugScopes, debugIdentifiers, logStatistics, logModules, profile, inlineExpressions, trace }; if (lazyObjectsRuntime !== undefined) { result.lazyObjectsRuntime = lazyObjectsRuntime; } if (heapGraphFormat !== undefined) { result.heapGraphFormat = heapGraphFormat; } return result; } //# sourceMappingURL=prepack-options.js.map