danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.82k stars 100 forks source link

Expose functions #157

Open pan-pawel opened 4 years ago

pan-pawel commented 4 years ago

This PR is related to this issue #156

We would like to use source-map-explorer with e.g RAM Bundles (more info in issue) To minimize the number of changes in the code we can just simply export a few of the functions that are used to calculate and present the data. With those functions, we can go through the process of calculating and presenting ourselves

Changes

-export getExploreResult, writeHtmlToTempFile, loadSourceMap and computeFileSizes functions.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 96.552% when pulling 3170af6e0162e25db1eb3db85e15fc680aed69a9 on pan-pawel:expose-functions into fe52007207c249ca42761933a51a80d9b47f0025 on danvk:master.