Closed lozlow closed 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
@lozlow Thank, I did not consider this situation
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