UNPKG

prepack

Version:

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

28 lines (22 loc) 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.protoExpression = exports.constructorExpression = exports.emptyExpression = exports.nullExpression = exports.voidExpression = undefined; var _babelTypes = require("babel-types"); var t = _interopRequireWildcard(_babelTypes); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } /** * 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. */ const voidExpression = exports.voidExpression = t.unaryExpression("void", t.numericLiteral(0), true); const nullExpression = exports.nullExpression = t.nullLiteral(); const emptyExpression = exports.emptyExpression = t.identifier("__empty"); const constructorExpression = exports.constructorExpression = t.identifier("__constructor"); const protoExpression = exports.protoExpression = t.identifier("__proto__"); //# sourceMappingURL=internalizer.js.map