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

Add support to Babel 7 #3

Closed
qgustavor opened this issue May 5, 2018 · 1 comment
Closed

Add support to Babel 7 #3

qgustavor opened this issue May 5, 2018 · 1 comment

Comments

@qgustavor
Copy link

Babel 7 option parsing is stricter and doesn't allow arrays being used as plugin options. A possible fix is allowing this:

{
  "plugins": [
    ["transform-rename-import", {
      replacements: [
        { original: 'replace-me', replacement: 'replaced' },
        { original: 'replace-me2', replacement: 'replaced2' }
      ]
    }
  ]]
}
@laat laat closed this as completed in 29e8741 May 5, 2018
@laat
Copy link
Owner

laat commented May 5, 2018

Thanks, fixed in the latest release :)

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

2 participants