JordanMarr / fable-lit-fullstack-template

A SAFE-style template with Fable.Lit, Fable.Remoting and Giraffe
MIT License
58 stars 1 forks source link

Use Dynamic Imports for shoelace/fluent-ui #2

Closed AngelMunoz closed 2 years ago

AngelMunoz commented 2 years ago

When you use importSideEffects even inside a function Fable emits an import on the top of the file this makes the import static and adds to the main bundle thanfully for shoelace/fluent-ui we don't need to do that and can import them dynamically that will reduce main bundle size and should not impact negatively in any way

image

image

Feel free to close this if not necessary