Merge pull request #7145 from tschaub/spaceless

Spaceless provides
This commit is contained in:
Tim Schaub
2017-08-17 12:07:06 -04:00
committed by GitHub
2 changed files with 55 additions and 52 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
goog.provide('layer clipping'); goog.provide('ol.test.rendering.layer.Clipping');
goog.require('ol.Map'); goog.require('ol.Map');
goog.require('ol.View'); goog.require('ol.View');
+3
View File
@@ -157,6 +157,9 @@ module.exports = function(info, api) {
throw new Error(`Multiple provides in ${info.path}`); throw new Error(`Multiple provides in ${info.path}`);
} }
provide = path.value.expression.arguments[0].value; provide = path.value.expression.arguments[0].value;
if (provide.indexOf(' ') > -1) {
throw new Error(`Space in provide "${provide}" in ${info.path}`);
}
}).remove(); }).remove();
if (!provide) { if (!provide) {