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

add esModule support #349

Merged
merged 2 commits into from
Sep 14, 2016
Merged

add esModule support #349

merged 2 commits into from
Sep 14, 2016

Conversation

HerringtonDarkholme
Copy link
Member

This pull request adds an alternative module export mechanism.

For some language, export default ... is not transpiled to module.exports = .....

When vue option's esModule is set to true, vue-loader will produce code like below:

exports.__esModule = true
exports["default"] = __vue_exports__

I think some tests and docs are needed. If you think this approach is acceptable, please let me know and I will add required tests.

@yyx990803
Copy link
Member

Sounds good to me.

@HerringtonDarkholme
Copy link
Member Author

Tests and docs updated.

@yyx990803 yyx990803 merged commit 9ce2eee into vuejs:next Sep 14, 2016
@HerringtonDarkholme
Copy link
Member Author

Thanks!

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.

2 participants