diff --git a/bin/generate-exports.py b/bin/generate-exports.py index 8ba3d02052..a6b74d541e 100755 --- a/bin/generate-exports.py +++ b/bin/generate-exports.py @@ -354,7 +354,8 @@ def main(argv): return_type = m.group('return_type') function = Function(name, object_literal, return_type, objects) objects[name] = function - requires.add(name) + # The require should only be for the namespace, not the function + requires.add('.'.join(name.split('.')[0:-1])) continue m = re.match(r'@exportSymbol\s+(?P\S+)(?:\s+(?P\S+))?\Z', line) if m: