Fix plugin requiring to authorize @ in config (#2312)

Fix #2311
This commit is contained in:
CHaBou 2017-10-01 06:08:42 +02:00 committed by Guillermo Rauch
parent c9b508ff9a
commit e2d73702cd

View file

@ -199,7 +199,7 @@ exports.subscribe = fn => {
function getPaths() {
return {
plugins: plugins.plugins.map(name => {
return resolve(path, 'node_modules', name.split('#')[0]);
return resolve(path, 'node_modules', name.split('#')[0].split('@')[0]);
}),
localPlugins: plugins.localPlugins.map(name => {
return resolve(localPath, name);