sanitize-html: 1.16+ breaks IE

Hello,

Our app suddenly broke in IE11. After digging and digging I figured that postcss includes chalk -> ansi-styles which uses (const key of *). This breaks IE11 as it will not be transpiled. As far as I can see it’s not ansi-styles intention to be ran in the client? I’m not really sure where to report.

Can someone confirm?

Yours,

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

I’d be glad to accept a PR for a toolchain such that we always have a current ES5-ified browser version for those who want it and I’m willing to incorporate it into our publishing process, within reason (hopefully there’s such a thing as an npm publish hook…). But it’s a long way from our own critical path — we always sanitize on the server.