aswi2020vldc-gitlab/templetes/node_modules/babel-core/lib/helpers/get-possible-preset-names.js @ 3a515b92
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"]; |