I find mobx-react-lite is required, but when I install mobx-react, it is not required to be installed, it's just one dependency of mobx-react.
Can mobx-react-lite be added to the CDN resource of mobx-react by default to keep same as use it as module, so that users don't need to pay attention to the dependency inside?
Intended outcome
Excepted: When use
mobx-react
as externals, it works well whenmobx-react
cdn resource was added to html as before.Actual outcome
When I upgrade
mobx-react
from5.4.4
to6.2.2
, and use it as externals with the cdn resource https://unpkg.com/mobx-react, an error happensBut it's OK when
5.4.4
, and works well when use it as a module, not as an external.I take a look at the
mobx-react
cdn source,I find
mobx-react-lite
is required, but when I installmobx-react
, it is not required to be installed, it's just one dependency ofmobx-react
. Canmobx-react-lite
be added to the CDN resource ofmobx-react
by default to keep same as use it as module, so that users don't need to pay attention to the dependency inside?How to reproduce the issue
Versions