mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
27
web/node_modules/regenerator-transform/src/index.js
generated
vendored
Normal file
27
web/node_modules/regenerator-transform/src/index.js
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import { getVisitor } from "./visit";
|
||||
|
||||
export default function (context) {
|
||||
const plugin = {
|
||||
visitor: getVisitor(context),
|
||||
};
|
||||
|
||||
// Some presets manually call child presets, but fail to pass along the
|
||||
// context object. Out of an abundance of caution, we verify that it
|
||||
// exists first to avoid causing unnecessary breaking changes.
|
||||
const version = context && context.version;
|
||||
|
||||
// The "name" property is not allowed in older versions of Babel (6.x)
|
||||
// and will cause the plugin validator to throw an exception.
|
||||
if (version && parseInt(version, 10) >= 7) {
|
||||
plugin.name = "regenerator-transform";
|
||||
}
|
||||
|
||||
return plugin;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue