Move top-level typedefs to typedefs.js
With one exception, those directly in the `ol` namespace can be moved without problem. Some left-over goog.requires are also removed.
This commit is contained in:
@@ -207,6 +207,9 @@ function build(config, paths, callback) {
|
||||
} else {
|
||||
log.info('ol', 'Compiling ' + paths.length + ' sources');
|
||||
options.compile.js = paths.concat(options.compile.js || []);
|
||||
// typedefs file has no `goog.provide`s, so is ignored by closure-util
|
||||
// when calculating dependencies. So it's added here as a compiler option.
|
||||
options.compile.js.push('src/ol/typedefs.js');
|
||||
closure.compile(options, callback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user