Skip to content

Support dynamic import (take 2)#395

Merged
michaelficarra merged 7 commits into
estools:masterfrom
papandreou:feature/support-dynamic-import
Aug 13, 2019
Merged

Support dynamic import (take 2)#395
michaelficarra merged 7 commits into
estools:masterfrom
papandreou:feature/support-dynamic-import

Conversation

@papandreou

@papandreou papandreou commented Aug 3, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@papandreou

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

estree/estree#198 was merged now 😌

@michaelficarra, can we move forward?

Comment thread escodegen.js Outdated
Comment thread escodegen.js Outdated
@papandreou

Copy link
Copy Markdown
Contributor Author

@michaelficarra, addressed all your feedback now 😎

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

Copy link
Copy Markdown
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 <[email protected]>

* 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