Minor fix to the generate-exports.py script
Now that we correctly export the ol.animation.*, ol.easing.* and ol.coordinate.* symbols we can make the generate-exports.py script work for more cases.
This commit is contained in:
@@ -278,7 +278,7 @@ def main(argv):
|
|||||||
components = m.group('name').split('.')
|
components = m.group('name').split('.')
|
||||||
if re.match(r'[A-Z]', components[-1]):
|
if re.match(r'[A-Z]', components[-1]):
|
||||||
requires.add(name)
|
requires.add(name)
|
||||||
elif len(components) > 2:
|
elif len(components) > 1:
|
||||||
requires.add('.'.join(components[:-1]))
|
requires.add('.'.join(components[:-1]))
|
||||||
continue
|
continue
|
||||||
raise RuntimeError(line)
|
raise RuntimeError(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user