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 documentation examples throwing errors #6774

Closed
blakew opened this Issue Nov 8, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@blakew

blakew commented Nov 8, 2017

@babel/core, @babel/register
version: 7.0.0-beta.31

Using the syntax in the documentation ie.

ignore: /regex/

and

ignore: false

Both throw the error

Error: .ignore must be an array, or undefined

Am I doing something wrong or is the documentation incorrect?

Thanks

@babel-bot

This comment has been minimized.

Show comment
Hide comment
@babel-bot

babel-bot Nov 8, 2017

Collaborator

Hey @blakew! 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 Nov 8, 2017

Hey @blakew! 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.

@loganfsmyth

This comment has been minimized.

Show comment
Hide comment
@loganfsmyth

loganfsmyth Nov 8, 2017

Member

Ah! Those probably need to be updated. That should now be

ignore: [ /regex ]

and

ignore: []

I believe. The docs should be updated.

Member

loganfsmyth commented Nov 8, 2017

Ah! Those probably need to be updated. That should now be

ignore: [ /regex ]

and

ignore: []

I believe. The docs should be updated.

@lostpebble

This comment has been minimized.

Show comment
Hide comment
@lostpebble

lostpebble Nov 12, 2017

Ran into this today as well.

Are ignore functions still allowed in v7 ?

lostpebble commented Nov 12, 2017

Ran into this today as well.

Are ignore functions still allowed in v7 ?

@loganfsmyth

This comment has been minimized.

Show comment
Hide comment
@loganfsmyth

loganfsmyth Nov 12, 2017

Member

ignore is an array, so you'd want ignore: [function(){}]

Member

loganfsmyth commented Nov 12, 2017

ignore is an array, so you'd want ignore: [function(){}]

@hzoo hzoo closed this in #6899 Nov 24, 2017

@lock lock bot added the outdated label May 4, 2018

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.