React-spring: IE 11 support

Created on 21 Oct 2019  路  1Comment  路  Source: pmndrs/react-spring

馃悰 Bug Report

import { useSpring, animated } from 'react-spring';

Crash with:

Capture d鈥檈虂cran 2019-10-21 a虁 14 27 21

To Reproduce

I have discovered the issue on https://material-ui.com/components/modal/#transitions.

Expected behavior

I expect the "module" version to only differ from the "main" version by only the import syntax (require vs import).

Link to repro (highly encouraged)

Codesandbox doesn't work on IE 11: https://github.com/codesandbox/codesandbox-client/issues/1187.

Environment

  • react-spring v8.0.27

Related: https://github.com/react-spring/react-spring/issues/248, https://github.com/react-spring/react-spring/issues/552.

bug invalid

Most helpful comment

The library comes as an es-module compiled for evergreen browsers with the following browserlist config: >1%, not dead, not ie 11, not op_mini all. If you need to support legacy targets or deal with targets that don't support modules, you can use the commonJS export by simply appending .cjs to your imports.

https://www.react-spring.io/

Ok

>All comments

The library comes as an es-module compiled for evergreen browsers with the following browserlist config: >1%, not dead, not ie 11, not op_mini all. If you need to support legacy targets or deal with targets that don't support modules, you can use the commonJS export by simply appending .cjs to your imports.

https://www.react-spring.io/

Ok

Was this page helpful?
0 / 5 - 0 ratings