mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
calcdeps doesn't understand requireType, strip it out for the online compile (#3323)
This commit is contained in:
2
build.py
2
build.py
@@ -202,6 +202,8 @@ class Gen_compressed(threading.Thread):
|
||||
if filename == "core/blockly.js":
|
||||
code = code.replace("Blockly.VERSION = 'uncompiled';",
|
||||
"Blockly.VERSION = '%s';" % blocklyVersion)
|
||||
# Strip out all requireType calls.
|
||||
code = re.sub(r"goog.requireType(.*)", "", code)
|
||||
params.append(("js_code", code.encode("utf-8")))
|
||||
f.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user