/** * This code creates a *true* singleton that will never be duplicated across webpack module loads. * If the singleton already exists then it is returned, otherwise a new one is created from the * provided constructor. * * Two situations that force the need for true singletons are preloads and storage adapters. In * both cases, code is being inserted (as a preload or a