zeromake / preact-animate

fork by https://github.com/react-component/animate
MIT License
7 stars 1 forks source link

fix: don't use preact internal vnode #1

Closed lozlow closed 6 years ago

lozlow commented 6 years ago

Webpack 4 (with uglify-es) will inline the VNode definition into preact.h which causes the instanceof check to fail, instead we can check if the object has a nodeName as this is guaranteed by preact.h

zeromake commented 6 years ago

@lozlow Thank, I did not consider this situation