mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Use the npm closure library instead of the same library installed at a parallel directory
This commit is contained in:
4
build.py
4
build.py
@@ -85,7 +85,7 @@ var isNodeJS = !!(typeof module !== 'undefined' && module.exports &&
|
|||||||
|
|
||||||
if (isNodeJS) {
|
if (isNodeJS) {
|
||||||
var window = {};
|
var window = {};
|
||||||
require('../closure-library/closure/goog/bootstrap/nodejs');
|
require('closure-library');
|
||||||
}
|
}
|
||||||
|
|
||||||
window.BLOCKLY_DIR = (function() {
|
window.BLOCKLY_DIR = (function() {
|
||||||
@@ -107,7 +107,7 @@ window.BLOCKLY_DIR = (function() {
|
|||||||
window.BLOCKLY_BOOT = function() {
|
window.BLOCKLY_BOOT = function() {
|
||||||
var dir = '';
|
var dir = '';
|
||||||
if (isNodeJS) {
|
if (isNodeJS) {
|
||||||
require('../closure-library/closure/goog/bootstrap/nodejs');
|
require('closure-library');
|
||||||
dir = 'blockly';
|
dir = 'blockly';
|
||||||
} else {
|
} else {
|
||||||
// Execute after Closure has loaded.
|
// Execute after Closure has loaded.
|
||||||
|
|||||||
@@ -28,5 +28,8 @@
|
|||||||
"sub": true,
|
"sub": true,
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"unused": true
|
"unused": true
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"closure-library": "^1.43629075.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user