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

es2015 preset doesn't pick up *.mjs per default and there is no warning/explanation either #7198

Closed
ghost opened this issue Jan 10, 2018 · 4 comments
Labels
Needs Info outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@ghost
Copy link

ghost commented Jan 10, 2018

Please note I'm an absolute utter beginner, so treat this ticket more as a kind of usability feedback that might not make too much sense.

I noticed that es2015 preset of babel doesn't make it pick up *.mjs per default and there is no warning/explanation either.

I think this should be changed: .mjs seems to be the default extension for es6 modules, and compiling es6 modules away to older javascript implementations seems to be a common task, hence I would expect ./node_modules/.bin/babel src -d lib --presets=es2015 to either pick up on *.mjs modules and translate them, or give me some hint on why it doesn't want to do so.

@babel-bot
Copy link
Collaborator

Hey @Jonast! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo
Copy link
Member

I think it works in Babel 7. Which version are you using?

@xtuc
Copy link
Member

xtuc commented Jan 15, 2018

According to #5624, yes it's in Babel 7.

@babel-bot
Copy link
Collaborator

Hi @Jonast! A maintainer of the project has notified me that you're missing
some information we'll need to replicate this issue.

Please understand that we receive a high volume of issues, and there are only a limited number
of volunteers that help maintain this project. The easier it is for us to decipher an issue with the info provided,
the more likely it is that we'll be able to help.

Please make sure you have the following information documented in this ticket:

  1. Your Babel configuration (typically in the form of a .babelrc)
  2. The current (incorrect) behavior you're seeing
  3. The behavior you expect
  4. A short, self-contained example

Please provide either a link to the problem via the repl, or if the repl is insufficient,
a new and minimal repository with instructions on how to build/replicate the issue.

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jun 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Info outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

4 participants