mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Prevent request of (non-existent) closure/goog/deps.js (#5499)
Since the only part of the Closure Library we have is base.js, prevent it from trying to load deps.js from the same directory. (We already load our own dependency graph from tests/deps.js.)
This commit is contained in:
committed by
GitHub
parent
f77526e558
commit
7b3a3aa743
@@ -16,7 +16,7 @@
|
||||
* loads closure/goog/base.js and tests/deps.js, then (in any case)
|
||||
* requires Blockly.requires.
|
||||
*/
|
||||
(function(_global) {
|
||||
(function(globalThis) {
|
||||
/* eslint-disable no-undef */
|
||||
var IS_NODE_JS = !!(typeof module !== 'undefined' && module.exports);
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
if (!BLOCKLY_DIR) {
|
||||
alert('Could not detect Blockly\'s directory name.');
|
||||
}
|
||||
// Disable loading of closure/goog/deps.js (which doesn't exist).
|
||||
globalThis.CLOSURE_NO_DEPS = true;
|
||||
// Load Closure Library base.js (the only part of the libary we use,
|
||||
// mainly for goog.require / goog.provide / goog.module).
|
||||
document.write(
|
||||
|
||||
Reference in New Issue
Block a user