babel-plugin-transform-builtin-extend
babel-plugin-transform-builtin-extend copied to clipboard
doesn't seem to apply when running with transform-runtime
see https://github.com/brillout/extendable-error-class/pull/4/files
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"
]