source: imaps-frontend/node_modules/regenerator-transform/lib/index.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 891 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = _default;
5var _visit = require("./visit");
6/**
7 * Copyright (c) 2014-present, Facebook, Inc.
8 *
9 * This source code is licensed under the MIT license found in the
10 * LICENSE file in the root directory of this source tree.
11 */
12
13function _default(context) {
14 var plugin = {
15 visitor: (0, _visit.getVisitor)(context)
16 };
17
18 // Some presets manually call child presets, but fail to pass along the
19 // context object. Out of an abundance of caution, we verify that it
20 // exists first to avoid causing unnecessary breaking changes.
21 var version = context && context.version;
22
23 // The "name" property is not allowed in older versions of Babel (6.x)
24 // and will cause the plugin validator to throw an exception.
25 if (version && parseInt(version, 10) >= 7) {
26 plugin.name = "regenerator-transform";
27 }
28 return plugin;
29}
Note: See TracBrowser for help on using the repository browser.