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

doesn't seem to apply when running with transform-runtime #8

Open
graingert opened this issue May 3, 2017 · 1 comment
Open

doesn't seem to apply when running with transform-runtime #8

graingert opened this issue May 3, 2017 · 1 comment

Comments

@graingert
Copy link

see https://github.com/brillout/extendable-error-class/pull/4/files

@ibeucaly
Copy link

ibeucaly commented Jul 5, 2017

I think it is likely due to the plugins ordering.
I got the same trouble. In my case, it is solved by changing the babel plugins configuration
so that babel applies transform-builtin-extend then transform-runtime as below:

  "plugins": [
      ["transform-builtin-extend", {
          globals: ["Error"]
      }],
      "transform-runtime"
  ]

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