Merge pull request #1558 from jquense/patch-2
Resolve "babel-plugin-" name before trying the plain name.
This commit is contained in:
commit
b01d8448a0
@ -35,7 +35,7 @@ export default class PluginManager {
|
||||
var match = name.match(/^(.*?):(after|before)$/);
|
||||
if (match) [, name, position] = match;
|
||||
|
||||
var loc = util.resolveRelative(name) || util.resolveRelative(`babel-plugin-${name}`);
|
||||
var loc = util.resolveRelative(`babel-plugin-${name}`) || util.resolveRelative(name);
|
||||
if (loc) {
|
||||
return {
|
||||
position: position,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user