Throw if provide has space
This commit is contained in:
@@ -157,6 +157,9 @@ module.exports = function(info, api) {
|
||||
throw new Error(`Multiple provides in ${info.path}`);
|
||||
}
|
||||
provide = path.value.expression.arguments[0].value;
|
||||
if (provide.indexOf(' ') > -1) {
|
||||
throw new Error(`Space in provide "${provide}" in ${info.path}`);
|
||||
}
|
||||
}).remove();
|
||||
|
||||
if (!provide) {
|
||||
|
||||
Reference in New Issue
Block a user