[bug]: Transpiling a file that imports useSpring and then using the transpiled build in another project gives error- TypeError: (0 , _web.useSpring) is not a function #2309
Transpiling a file that imports useSpring using Babel makes the build unusable and throws following error -
TypeError: (0 , _web.useSpring) is not a function
To Reproduce
Make a react UI library that has a component say MyComponent which uses useSpring
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.4
What's Wrong?
Transpiling a file that imports useSpring using Babel makes the build unusable and throws following error - TypeError: (0 , _web.useSpring) is not a function
To Reproduce
Expected Behaviour
Should not throw error
Link to repo
https://github.com/pmndrs/react-spring