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

babel-register doesn't look at .babelrc for only and ignore settings (T7098) #4082

Closed
babel-bot opened this issue Feb 12, 2016 · 2 comments
Closed
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: register

Comments

@babel-bot
Copy link
Collaborator

Issue originally made by @fracmak

Bug information

  • Babel version: 6.5.2
  • Node version: 0.12.7
  • npm version: 2.11.3

Options

{
    "ignore": "**"
}

Input code

mocha --compilers js:babel-register

Description

When using babel-register, it does not look at any babel config files in deciding what files to compile. The only way to configure ignore and only is by require('babel-register')({only: false, ignore: '**'}).

I've put in a pull request showing a possible solution for the bug:

#3291

@babel-bot
Copy link
Collaborator Author

Comment originally made by Herbert Vojčík (herbySk)

Still problem with babel 6.9.0, node 6 and npm 3.

@hzoo
Copy link
Member

hzoo commented Mar 24, 2017

This should be fixed in Babel 7 with #5487

can test with:
"babel-core": "7.0.0-alpha.3"
"babel-cli": "7.0.0-alpha.3"
"babel-register": "7.0.0-alpha.5"

@hzoo hzoo closed this as completed Mar 24, 2017
js62789 added a commit to gas-buddy/service that referenced this issue Oct 10, 2017
This was to allow us to pass the ignore property to babel-register. It is not inherently propogated by default. See see babel/babel#4082 for more info.
djMax pushed a commit to gas-buddy/service that referenced this issue Oct 11, 2017
This was to allow us to pass the ignore property to babel-register. It is not inherently propogated by default. See see babel/babel#4082 for more info.
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
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: register
Projects
None yet
Development

No branches or pull requests

2 participants