Projekt

Obecné

Profil

Stáhnout (464 Bajtů) Statistiky
| Větev: | Revize:
1
"use strict";
2

    
3
exports.__esModule = true;
4
exports.default = getPossiblePresetNames;
5
function getPossiblePresetNames(presetName) {
6
  var possibleNames = ["babel-preset-" + presetName, presetName];
7

    
8
  var matches = presetName.match(/^(@[^/]+)\/(.+)$/);
9
  if (matches) {
10
    var orgName = matches[1],
11
        presetPath = matches[2];
12

    
13
    possibleNames.push(orgName + "/babel-preset-" + presetPath);
14
  }
15

    
16
  return possibleNames;
17
}
18
module.exports = exports["default"];
(2-2/8)