mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
chore: named exports for block* files (#5512)
* chore: named export for block.js * chore: named export for block_drag_surface.js * chore: named export for block_dragger.js * chore: named export for block_svg.js * Fix import ordering * chore: fix imports using requireType * Remove extra require
This commit is contained in:
@@ -13,8 +13,6 @@
|
||||
goog.module('Blockly.VariableMap');
|
||||
goog.module.declareLegacyNamespace();
|
||||
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const Block = goog.requireType('Blockly.Block');
|
||||
const Events = goog.require('Blockly.Events');
|
||||
const Msg = goog.require('Blockly.Msg');
|
||||
const Names = goog.require('Blockly.Names');
|
||||
@@ -24,6 +22,8 @@ const Workspace = goog.requireType('Blockly.Workspace');
|
||||
const dialog = goog.require('Blockly.dialog');
|
||||
const idGenerator = goog.require('Blockly.utils.idGenerator');
|
||||
const object = goog.require('Blockly.utils.object');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {Block} = goog.requireType('Blockly.Block');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.Events.VarDelete');
|
||||
/** @suppress {extraRequire} */
|
||||
|
||||
Reference in New Issue
Block a user