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

ie11 does not work #18

Closed
beans9 opened this issue Jan 17, 2018 · 1 comment
Closed

ie11 does not work #18

beans9 opened this issue Jan 17, 2018 · 1 comment

Comments

@beans9
Copy link

beans9 commented Jan 17, 2018

It does not work on ie11.
It can be used after modifying the arrow function to a general function.

module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input;
work after modified
module.exports = function(input) { return typeof input === 'string' ? input.replace(ansiRegex(), '') : input; }

@sindresorhus
Copy link
Member

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

@chalk chalk locked as resolved and limited conversation to collaborators Jan 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants