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

Support dynamic import (take 2) #395

Merged

Conversation

papandreou
Copy link
Contributor

@papandreou papandreou commented Aug 3, 2019

Add support for https://github.com/tc39/proposal-dynamic-import (stage 4)

Fixes #376
Based on #385, which didn't include tests, and the author has gone silent.

TODO:

@michaelficarra
Copy link
Member

Please align to the current estree proposal: estree/estree#198

@papandreou
Copy link
Contributor Author

@michaelficarra, ah, thanks, I was not aware of that. Aligned with it now and added as a TODO item in the PR description that we should wait for estree/estree#198 to be merged.

@papandreou
Copy link
Contributor Author

estree/estree#198 was merged now 😌

@michaelficarra, can we move forward?

escodegen.js Outdated Show resolved Hide resolved
escodegen.js Outdated Show resolved Hide resolved
@papandreou
Copy link
Contributor Author

@michaelficarra, addressed all your feedback now 😎

@michaelficarra michaelficarra merged commit b8df205 into estools:master Aug 13, 2019
@michaelficarra
Copy link
Member

Thank you for the contribution, @papandreou!

bizob2828 pushed a commit to Contrast-Security-OSS/escodegen that referenced this pull request Apr 2, 2020
* feat: support dynamic import

* Add a couple of tests

* Align with estree/estree#198

* Update escodegen.js

Co-Authored-By: Michael Ficarra <github@michael.ficarra.me>

* Remove outdated "State 3" from comment

* Add test of a SequenceExpression as a dynamic import source

estools#395 (comment)

* Properly parenthesize when used with a higher precedence operator

estools#395 (comment)
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

Successfully merging this pull request may close these issues.

dynamic imports are not supported
2 participants