mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +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,10 +15,10 @@
|
||||
*/
|
||||
goog.module('Blockly.VariableModel');
|
||||
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const Workspace = goog.requireType('Blockly.Workspace');
|
||||
const eventUtils = goog.require('Blockly.Events.utils');
|
||||
const idGenerator = goog.require('Blockly.utils.idGenerator');
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {Workspace} = goog.requireType('Blockly.Workspace');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.Events.VarCreate');
|
||||
|
||||
@@ -92,4 +92,4 @@ VariableModel.compareByName = function(var1, var2) {
|
||||
return var1.name.localeCompare(var2.name, undefined, {sensitivity: 'base'});
|
||||
};
|
||||
|
||||
exports = VariableModel;
|
||||
exports.VariableModel = VariableModel;
|
||||
|
||||
Reference in New Issue
Block a user