Apparently esbuild got confused with ``state-machine`` from template-generated project and ``state-machine`` from ``file:../uikit`` (which is also a dependency of template-generated project) and decided to add ``Slot`` and ``Slot2``, making ``instanceof`` returns false. Might need to fix this in ``state-machine`` repository.
Originally posted by @nahkd123 in MixeryOSS/uikit#2 (comment)