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

await import(...) #1228

Closed
laggingreflex opened this issue Aug 11, 2017 · 2 comments
Closed

await import(...) #1228

laggingreflex opened this issue Aug 11, 2017 · 2 comments

Comments

@laggingreflex
Copy link

Expected:

const module = await import('...')

Actual:

const module = await 
import ('...')      ^
      ^
  • newline between await and import
  • space between import and ('...')
@laggingreflex
Copy link
Author

laggingreflex commented Aug 11, 2017

Webpack uses this syntax for importing modules lazily. Not sure if this is (or going to be) a standard though.

Edit: There's actually a (stage 3) proposal for dynamic import: https://github.com/tc39/proposal-dynamic-import

@bitwiseman bitwiseman added this to the v1.7.x milestone Oct 22, 2017
@beautifier beautifier deleted a comment from LiPinghai Oct 22, 2017
@bitwiseman
Copy link
Member

@laggingreflex #1393 Partially addresses this.

@bitwiseman bitwiseman modified the milestones: v1.7.x, v1.7.6 May 21, 2018
bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Jun 30, 2018
bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Jun 30, 2018
@bitwiseman bitwiseman modified the milestones: v1.8.0-rc2, 1.8.0 Aug 22, 2018
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