Skip to content

Commit 6d1fb2e

Browse files
committed
Fixed closure compile error
Added the required namespaces in blockly.js, and optional use_closure_library changed to true.
1 parent 6654337 commit 6d1fb2e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

blockly/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def gen_blocks(self):
214214
# Define the parameters for the POST request.
215215
params = [
216216
("compilation_level", "SIMPLE_OPTIMIZATIONS"),
217+
("use_closure_library", "true"),
217218
("output_format", "json"),
218219
("output_info", "compiled_code"),
219220
("output_info", "warnings"),
@@ -243,6 +244,7 @@ def gen_generator(self, language):
243244
# Define the parameters for the POST request.
244245
params = [
245246
("compilation_level", "SIMPLE_OPTIMIZATIONS"),
247+
("use_closure_library", "true"),
246248
("output_format", "json"),
247249
("output_info", "compiled_code"),
248250
("output_info", "warnings"),

blockly/core/blockly.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ goog.require('Blockly.inject');
5353
goog.require('Blockly.utils');
5454
goog.require('goog.color');
5555
goog.require('goog.userAgent');
56+
goog.require('goog.debug.ErrorHandler');
57+
goog.require('goog.events.EventWrapper');
58+
goog.require('goog.events.EventId');
59+
goog.require('goog.events.EventLike');
60+
goog.require('goog.events.EventWrapper');
5661

5762

5863
// Turn off debugging when compiled.

0 commit comments

Comments
 (0)