Skip to content

IE11 support #97

@dave-irvine

Description

@dave-irvine

Sorry to be the one that brings up IE support, but I've tracked down react-svg not working to here :(

https://github.com/tanem/svg-injector/blob/master/src/inject-element.ts#L85 uses Array.from which isn't in IE11 yet. I've got core-js in my webpack build but I'm using babel-preset-env with useBuiltins set to usage, but because your code comes from an npm module, webpack never checks it so I don't get the polyfill for Array.from.

Anything you can do to fix, or shall I just force the Array.from polyfill from core-js into my build?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions