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

Not playing well with other plugins #66

Open
derekr opened this issue May 26, 2017 · 1 comment
Open

Not playing well with other plugins #66

derekr opened this issue May 26, 2017 · 1 comment

Comments

@derekr
Copy link

derekr commented May 26, 2017

https://github.com/derekr/decorator-legacy-plugins-bug

Plugin order seems to affect other plugins, but not sure what the root cause is. Admittedly not too familiar w/ how babel plugins are run/work, but wondering if I'm overlooking something obvious.

If I run each plugin in isolation they work as expected.

Decorators work, but root-import doesn't.

{
  "presets": [
      "next/babel"
    ],
  "plugins": [
    [
      "transform-decorators-legacy",
      "babel-root-import"
    ]
  ]
}

screen shot 2017-05-25 at 11 08 21 pm

root-import works, but decorators throw syntax error

{
  "presets": [
      "next/babel"
    ],
  "plugins": [
    [
      "babel-root-import",
      "transform-decorators-legacy"
    ]
  ]
}

screen shot 2017-05-25 at 11 07 46 pm

@derekr
Copy link
Author

derekr commented May 26, 2017

Nevermind this is my tired eyes missing the nested array in the plugins definition -_-

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