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
JonasT opened this Issue Jan 10, 2018 · 4 comments

Comments

Projects
None yet
5 participants
@JonasT

JonasT 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

This comment has been minimized.

Show comment
Hide comment
@babel-bot

babel-bot Jan 10, 2018

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.

Collaborator

babel-bot commented Jan 10, 2018

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

This comment has been minimized.

Show comment
Hide comment
@nicolo-ribaudo

nicolo-ribaudo Jan 10, 2018

Member

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

Member

nicolo-ribaudo commented Jan 10, 2018

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

@xtuc

This comment has been minimized.

Show comment
Hide comment
@xtuc

xtuc Jan 15, 2018

Member

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

Member

xtuc commented Jan 15, 2018

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

@xtuc xtuc added the Needs Info label Jan 15, 2018

@babel-bot

This comment has been minimized.

Show comment
Hide comment
@babel-bot

babel-bot Jan 15, 2018

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.

Collaborator

babel-bot commented Jan 15, 2018

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.

@loganfsmyth loganfsmyth closed this Mar 5, 2018

@lock lock bot added the outdated 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.