Once all of the libraries are loaded and make it past the call to base.ensure([...]), then the global will be populated by all loaded libraries, not just those requested.
Right now, the recommendation is to do const NH = NexusHoratio;, but what if instead we did something like:
const NH = NexusHoratio.base.ensure([...]);
and NH is a modified copy of the NexusHoratio copy, with only the requested libraries present?
We may have a bit of a bootstrap problem as now that base depends on xunit, so xunit cannot call ensure(). But then again, it should never use either NexusHoratio or NH.
Once all of the libraries are loaded and make it past the call to
base.ensure([...])
, then the global will be populated by all loaded libraries, not just those requested.Right now, the recommendation is to do
const NH = NexusHoratio;
, but what if instead we did something like:and NH is a modified copy of the NexusHoratio copy, with only the requested libraries present?
We may have a bit of a bootstrap problem as now that
base
depends onxunit
, soxunit
cannot call ensure(). But then again, it should never use either NexusHoratio or NH.