Open saurabhavid opened 5 years ago
For supporting IE11 you just have to transpile 3 packages:
d3-force-3d
, force-graph
, fromentries
If you can provide transpiled version of these modules in react-force-graph
It'll work on IE 11
@saurabhavid thanks for reaching out.
Before going into the details let me just say that this module makes no promises about functioning correctly in legacy browsers, including IE11.
As for the specific dependencies you mentioned:
react-kapsule
is now using a polyfill for Object.fromentries
force-graph
are transpiled down to ES5d3-force-3d
is a fork of d3-force
and it's intentional that that module is not transpiled. But if you wish you can still transpile that module in your app using babel. See more at https://github.com/d3/d3-force/issues/134
I know this is a major one, but most of the enterprise still support IE 11. Currently I am using
react-force-graph-2d
into my app. On IE the app fails to load and breaks due to many unsupported modules added as a dependency in thereact-force-graph
One of them being
fromentries
being used inreact-kapsule
module Although a polyfill can be used for the fix like:Apart from this there are some more issues breaking IE 11 which I am still not able to figure out. Or may be the dependent modules needs to be transpiled to ES5 to support IE11.
@vasturiano Your help would be appreciated over this. If I found anything else that can result in the fix, I'll post it here.