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

A Great Proposal That Can Solve Many Engineering Issues #5

Open
bosens-China opened this issue Dec 19, 2024 · 1 comment
Open

A Great Proposal That Can Solve Many Engineering Issues #5

bosens-China opened this issue Dec 19, 2024 · 1 comment

Comments

@bosens-China
Copy link

In actual development, import is gradually replacing require. However, if you want to use dynamic loading with import, it forces the module to adopt asynchronous programming, resulting in a lot of async/await in the code.

What is the current progress of this proposal?

@guybedford
Copy link
Collaborator

This proposal is currently at Stage 1 in the TC39 process. Current design questions include whether to provide restrictions on what can be synchronously imported to avoid Node.js / browser divergence, and whether to consider other types of functions or syntax. Once those questions are resolved, it will be taken back to committee for Stage 2 discussion.

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

No branches or pull requests

2 participants