ExplicitImports.jl
ExplicitImports.jl copied to clipboard
Dynamic includes
If the dynamic includes are part of the package code, you can extract the full list of included files from the precompile cache header. https://github.com/JuliaLang/julia/blob/faf17eb2d8ef811e59a0e6b541c4502f5d51964c/base/loading.jl#L3245. Which is presumably not public API 😉
I think by doing a fully-dynamic introspection of the module as you suggested in #76, I can probably handle dynamic includes for-free, since there may be no parsing needed anymore! We shall see.
edit: also it would be good to not require precompilation (for use during development w/ Revise where the precompile cache may be out of date)