forked from LanwyWriteXU/DoIt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (32 loc) · 1.17 KB
/
index.js
File metadata and controls
36 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['blockly/core', 'blockly/msg/en', 'blockly/blocks'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('blockly/core'), require('blockly/msg/en'), require('blockly/blocks'));
} else { // Browser
root.Blockly = factory(root.Blockly, root.Blockly.Msg, root.Blockly.Blocks);
}
}(this, function(Blockly, en, blocks) {
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file Main entrypoint for blockly package. Via its UMD wrapper,
* this module loads blockly/core, blockly/blocks and blockly/msg/en
* and then calls setLocale(en).
*
* This entrypoint previously also loaded one or more generators
* (JavaScript in browser, all five in node.js environments) but it no
* longer makes sense to do so because of changes to generators
* exports (they no longer have the side effect of defining
* Blockly.JavaScript, etc., when loaded as modules).
*/
/* eslint-disable */
'use strict';
// Include the EN Locale by default.
Blockly.setLocale(en);
return Blockly;
}));