Optimize import strategy in apps and components
In apps and components, the import is not optimal, and there is often multiple files loaded more than once.
We use the import with skypack, which bundles automatically the library. When we import https://cdn.skypack.dev/@startinblox/core@0.17
, we get 1 single file.
But when we import a specific file, we get the file individually, and then all its dependencies 1 by 1 as well.
This leads to load the same mixin in the global bundle once, and individually once, which is useless.
This is caused by the solid-map
import. The component is not exported with the core by default, historically to save a few kb of download.
Exporting it with the core seems to solve the issue