mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
refactor: Migrate to named exports (#5623)
* refactor: Migrate to named exports * fix: Sort requires * fix: Remove duplicate deps
This commit is contained in:
@@ -15,14 +15,8 @@
|
||||
*/
|
||||
goog.module('Blockly.FieldTextInput');
|
||||
|
||||
const Coordinate = goog.require('Blockly.utils.Coordinate');
|
||||
const DropDownDiv = goog.require('Blockly.DropDownDiv');
|
||||
const Field = goog.require('Blockly.Field');
|
||||
const KeyCodes = goog.require('Blockly.utils.KeyCodes');
|
||||
const Msg = goog.require('Blockly.Msg');
|
||||
const WidgetDiv = goog.require('Blockly.WidgetDiv');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const WorkspaceSvg = goog.requireType('Blockly.WorkspaceSvg');
|
||||
const aria = goog.require('Blockly.utils.aria');
|
||||
const browserEvents = goog.require('Blockly.browserEvents');
|
||||
const dialog = goog.require('Blockly.dialog');
|
||||
@@ -34,6 +28,12 @@ const userAgent = goog.require('Blockly.utils.userAgent');
|
||||
const utils = goog.require('Blockly.utils');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {BlockSvg} = goog.requireType('Blockly.BlockSvg');
|
||||
const {Coordinate} = goog.require('Blockly.utils.Coordinate');
|
||||
const {DropDownDiv} = goog.require('Blockly.DropDownDiv');
|
||||
const {Field} = goog.require('Blockly.Field');
|
||||
const {KeyCodes} = goog.require('Blockly.utils.KeyCodes');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {WorkspaceSvg} = goog.requireType('Blockly.WorkspaceSvg');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.Events.BlockChange');
|
||||
|
||||
@@ -581,4 +581,4 @@ FieldTextInput.prototype.getValueFromEditorText_ = function(text) {
|
||||
|
||||
fieldRegistry.register('field_input', FieldTextInput);
|
||||
|
||||
exports = FieldTextInput;
|
||||
exports.FieldTextInput = FieldTextInput;
|
||||
|
||||
Reference in New Issue
Block a user