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

Whitelist experimental-modules flag for babel-node #8336

Merged
merged 2 commits into from
Aug 6, 2018

Conversation

sam-at-work
Copy link

@sam-at-work sam-at-work commented Jul 18, 2018

Q                       A
Fixed Issues? Fixes #8148
Patch: Bug Fix? 👍
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass?
Documentation PR Link
Any Dependency Changes?
License MIT

Whitelist the --experimental-modules flag so that babel-node can be used natively with ES modules.
The following commands now work: (Entry point is src/app.mjs):
babel-node --experimental-modules src/app
nodemon --experimental-modules src/app --exec babel-node

@babel-bot
Copy link
Collaborator

babel-bot commented Jul 18, 2018

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/8637/

@sam-at-work
Copy link
Author

Does anyone understand why https://travis-ci.org/babel/babel/jobs/405150952 is failing? Seems to be using the existing style for the switch statement in that file

@xtuc
Copy link
Member

xtuc commented Jul 18, 2018

@sam-at-work make fix will probably fix this issue.

@xtuc xtuc added PR: New Feature 🚀 A type of pull request used for our changelog categories pkg: cli labels Jul 18, 2018
@sam-at-work
Copy link
Author

@xtuc That fixed it. Thanks.

@hzoo hzoo merged commit 6476a0d into babel:master Aug 6, 2018
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: cli PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Babel 7.0.0-beta.49 (--experimental-modules)
5 participants