UNPKG

prepack

Version:

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

33 lines (27 loc) 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * 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. */ // ExpectedBailOut is like an error, that gets thrown during the reconcilation phase // allowing the reconcilation to continue on other branches of the tree, the message // given to ExpectedBailOut will be assigned to the value.$BailOutReason property and serialized // as a comment in the output source to give the user hints as to what they need to do // to fix the bail-out case class ExpectedBailOut extends Error {} exports.ExpectedBailOut = ExpectedBailOut; // SimpleClassBailOuts only occur when a simple class instance is created and used // bailing out here will result in a complex class instance being created after // and an alternative complex class component route being used class SimpleClassBailOut extends Error {} exports.SimpleClassBailOut = SimpleClassBailOut; // NewComponentTreeBranch only occur when a complex class is found in a // component tree and the reconciler can no longer fold the component of that branch class NewComponentTreeBranch extends Error {} exports.NewComponentTreeBranch = NewComponentTreeBranch; //# sourceMappingURL=errors.js.map