Closed guybedford closed 2 years ago
Currently staticDeps and dynamicDeps are just arrays of modules, without further graph information.
staticDeps
dynamicDeps
It could be useful to actually expose the entire graph for these in the generation to be able to lookup arbitrary dependency information.
We currently have a getAnalysis method which returns the analysis per module. It could be useful to effectively get the whole graph in one:
getAnalysis
generator.getGraph() = () => ({ [url: string]: { staticDeps: { specifier: string }[], dynamicDeps: { specifier: string }[] } })
The current getAnalysis could be extended to support this form relatively easily.
The current primitive we have with getAnalysis is enough I think to do this, closing for now.
Currently
staticDeps
anddynamicDeps
are just arrays of modules, without further graph information.It could be useful to actually expose the entire graph for these in the generation to be able to lookup arbitrary dependency information.
We currently have a
getAnalysis
method which returns the analysis per module. It could be useful to effectively get the whole graph in one:The current
getAnalysis
could be extended to support this form relatively easily.