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

replace for ES7 code #192

Open
hoschi opened this issue Mar 1, 2017 · 0 comments
Open

replace for ES7 code #192

hoschi opened this issue Mar 1, 2017 · 0 comments

Comments

@hoschi
Copy link

hoschi commented Mar 1, 2017

I use babel to transpile some ES7 features like object rest spread:

let foo = {
  ...bar,
  myProp:'foo'
}

Which is no problem for formatting, but throws "Unexpected token ..." error when using "-r". Is there also a plugin mechanism for replacing as for formatting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant