Ansi-to-react doesn't compile to ES5 #4955
Labels
outdated
workflow: issue should stay closed
workflow: needs user info
Additional info is needed from issue filer
Application or Package Used
ansi-to-react
Describe the bug
I've added
ansi-to-react
to my package.json and have been using it since around v3. After upgrading to v5 and v6, it seems that it's breaking the UglifyJS step in my build process. It looks like the distributed version of ansi-to-react is not being compiled down to ES5 so UglifyJS is unhappy.The relevant line is
Default function arguments are an ES6 (or newer? not sure) feature and are not compatible with ES5. IDK if there's a way configure UglifyJS or upgrade it to get it to deal with ES6 but I think in general we are not running stuff in node_modules through babel or anything like that, and that generally works fine.
To Reproduce
yarn add ansi-to-react@^6.0.0
)Expected behavior
It should compile
Additional context
Stack:
Hope that's enough detail! It seems like perhaps the TS compiler needs to be configured to output ES5 or something along those lines?
The text was updated successfully, but these errors were encountered: