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 for ImportDeclaration #181

Merged
merged 2 commits into from Apr 30, 2014
Merged

Conversation

juandopazo
Copy link
Contributor

Fixes #180.

I'm totally new to escodegen, so I'm not entirely sure I'm following correctly the use of your API. I don't think I should be using generateExpression or generateStatement since import declarations do not take expressions or statements.

There's also an issue in Esprima that makes it parse incorrectly import declarations like import foo, {bar} from 'foo'; so that should be fixed in the Esprima side.

@Constellation
Copy link
Member

Great! I'll review this.

@Constellation
Copy link
Member

LGTM. Merging

Constellation added a commit that referenced this pull request Apr 30, 2014
Support for ImportDeclaration
@Constellation Constellation merged commit 0e3d962 into estools:master Apr 30, 2014
@Constellation
Copy link
Member

Thank you!

@Constellation
Copy link
Member

I'll modify a little later.

@stefanpenner
Copy link

YAY

@juandopazo
Copy link
Contributor Author

@Constellation I'll take a look then so I get it right next time. Thanks!

@juandopazo juandopazo deleted the imports branch April 30, 2014 15:02
@Constellation
Copy link
Member

@juandopazo:
No problem! Your contribution is awesome!

Constellation added a commit that referenced this pull request Apr 30, 2014
@Constellation
Copy link
Member

Added minifying support.

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.

Support ES6 imports
3 participants