UniversalDashboard.Mermaid map not needed per /ponytail

UniversalDashboard.Mermaid map not needed per /ponytail

avatar

@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.

All Comments (1)

avatar

@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