babel-plugin-transform-builtin-extend icon indicating copy to clipboard operation
babel-plugin-transform-builtin-extend copied to clipboard

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

Open graingert opened this issue 7 years ago • 1 comments

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

graingert avatar May 03 '17 23:05 graingert

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"
  ]

ibeucaly avatar Jul 05 '17 15:07 ibeucaly