Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to ES6 modules for blocklyeditor #3317

Open
ewpatton opened this issue Jan 8, 2025 · 1 comment
Open

Migrate to ES6 modules for blocklyeditor #3317

ewpatton opened this issue Jan 8, 2025 · 1 comment

Comments

@ewpatton
Copy link
Member

ewpatton commented Jan 8, 2025

Currently we use the goog.provide and goog.require system for declaring dependencies in blocklyeditor. However, newer versions of Closure Compiler have support for ES6 modules when using a language_in of ECMASCRIPT_2015 or newer. We should transition the blocklyeditor code to using ES6 modules as it would give us more flexibility in the future, possibly to consider other packaging tools if needed.

@YashSachdeva369
Copy link

I agree with transitioning the blocklyeditor code to ES6 modules. The current use of goog.provide and goog.require is part of the older Closure Compiler module system, which has now been superseded by ES6 modules in modern JavaScript development. By moving to ES6 modules, we’ll be able to take advantage of a more flexible and widely-adopted standard. This will also open the door for using other bundlers or packaging tools in the future, which may offer better performance and more features.

In addition to the standardization benefits, ES6 modules offer improved tree-shaking and better interoperability with modern JavaScript ecosystems. This transition will position us well for future updates, making it easier to manage dependencies and integrate with new tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants