Do not provide an AMD environment to ol.ext modules
This fixes issues with ol.source.Vector being unable to use ol.ext.rbush, but it also means that potential future external modules without node module loader support will not work. If we ever depend on such a module, we can replace "var define;" with a minimal AMD define shim.
This commit is contained in:
1 parent
10b4aa1bab
commit
80c4809aee
1 file changed
+1
@@ -50,6 +50,7 @@ function wrapModule(mod, callback) {
|
||||
'(function() {\n' +
|
||||
'var exports = {};\n' +
|
||||
'var module = {exports: exports};\n' +
|
||||
'var define;\n' +
|
||||
'/**\n' +
|
||||
' * @fileoverview\n' +
|
||||
' * @suppress {accessControls, ambiguousFunctionDecl, ' +
|
||||
|
||||
Reference in new issue
Block a user