mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Don't require everything in uncompressed. (#3120)
* Don't require everything in uncompressed.
This commit is contained in:
10
build.py
10
build.py
@@ -129,17 +129,9 @@ this.BLOCKLY_BOOT = function(root) {
|
||||
add_dependency = '\n'.join(add_dependency)
|
||||
f.write(add_dependency + '\n')
|
||||
|
||||
provides = []
|
||||
# Exclude field_date.js as it still has a dependency on the closure library
|
||||
# see issue #2890.
|
||||
for dep in calcdeps.BuildDependenciesFromFiles(self.search_paths):
|
||||
if not dep.filename.startswith('closure') and not dep.filename.startswith('core/field_date.js'):
|
||||
provides.extend(dep.provides)
|
||||
provides.sort() # Deterministic build.
|
||||
f.write('\n')
|
||||
f.write('// Load Blockly.\n')
|
||||
for provide in provides:
|
||||
f.write("goog.require('%s');\n" % provide)
|
||||
f.write('goog.require(\'Blockly.requires\')\n')
|
||||
|
||||
f.write("""
|
||||
delete root.BLOCKLY_DIR;
|
||||
|
||||
Reference in New Issue
Block a user