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

Dynamic import syntax support #1728

Closed
guybedford opened this issue Jan 13, 2017 · 2 comments
Closed

Dynamic import syntax support #1728

guybedford opened this issue Jan 13, 2017 · 2 comments
Labels

Comments

@guybedford
Copy link

I couldn't find an issue tracking this already, but let me know if it is a duplicate. This may well be implementable now that it is Stage 3 (estree/estree#137).

@ariya ariya added the es2017 label Jan 13, 2017
@ariya
Copy link
Contributor

ariya commented Jan 27, 2017

New productions:

CallExpression[Yield] :
  ImportCall[?Yield]

ImportCall[Yield] :
    import  (  AssignmentExpression[+In, ?Yield]  )

AST format addition:

interface Import {
    type: 'Import';
}

where it is being used:

interface CallExpression {
    type: 'CallExpression';
    callee: Expression | Import;
    arguments: ArgumentListElement[];
}

References:

ariya added a commit to ariya/esprima that referenced this issue Jan 29, 2017
ariya added a commit to ariya/esprima that referenced this issue Jan 29, 2017
ariya added a commit to ariya/esprima that referenced this issue Jan 30, 2017
ariya added a commit to ariya/esprima that referenced this issue Jan 31, 2017
@ariya ariya closed this as completed in 11a2385 Jan 31, 2017
@ariya ariya mentioned this issue Feb 1, 2017
12 tasks
@ariya ariya added es2018 and removed es2017 labels Feb 1, 2017
ariya added a commit to ariya/esprima that referenced this issue Feb 23, 2017
ariya added a commit to ariya/esprima that referenced this issue Feb 23, 2017
ariya added a commit that referenced this issue Feb 25, 2017
@3cp
Copy link

3cp commented Mar 13, 2019

@ariya is it possible to release a minor version in v4 with this feature?

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

No branches or pull requests

3 participants