@adam,
/ponytail found an issue in your mermaid bundle, looks like a map is not needed:
4. Generated source maps add about 10 MB (Modules/UniversalDashboard.Mermaid/0.0.1/*.bundle.map,
UniversalDashboard.Mermaid.psm1:2-7)
- What this is: The module ships four JavaScript bundles plus four large source maps.
- Problem: The module registers only .js files at runtime. The source maps are useful for browser debugging but
are not needed to render the production diagram.
- Fix: Omit the .map files from the production module, or keep them only in a separate debug package.
- If we skip it: Clone, sync, and deployment size increase without changing application behavior.
@Matthew Morrow I like having the map files in the dist otherwise we don't get good stack traces back from customers. It certainly reduces the artifacts a bit but I think it's worth it for debugging.
Adam Driscoll
PowerShell Expert and Software Architect at Devolutions
@Matthew Morrow I like having the map files in the dist otherwise we don't get good stack traces back from customers. It certainly reduces the artifacts a bit but I think it's worth it for debugging.
since i do not fully understand how the packages interact with PSU, does the 10mb show up in the browser at some point, maybe it is a thing that can be turned on and off. like some setting in the module that says if debug is on or off that way we do not load to much in the browser for normal day to day work.