Open dangreen opened 4 years ago
https://unpkg.com/browse/react-side-effect@2.1.0/lib/index.es.js line 68:
return _PureComponent.apply(this, arguments) || this;
If _PureComponent is ES6 class then we have TypeError: Class constructor PureComponent_PureComponent cannot be invoked without 'new'.
_PureComponent
TypeError: Class constructor PureComponent_PureComponent cannot be invoked without 'new'
react was replaced with preact sources.
react
preact
This is not a standard case, but maybe you can add source file into package too?
https://unpkg.com/browse/react-side-effect@2.1.0/lib/index.es.js line 68:
If
_PureComponent
is ES6 class then we haveTypeError: Class constructor PureComponent_PureComponent cannot be invoked without 'new'
.