[Build] Allow bundles to be removed

Allow bundles to be removed by:

* Waiting for explicit activation before bootstrapping,
  providing a time period when bundles could be removed.
* Adding a remove method to BundleRegistry
This commit is contained in:
Victor Woeltjen
2016-02-02 15:18:50 -08:00
parent bb7f4239f6
commit a10db656ce
4 changed files with 32 additions and 3 deletions

View File

@ -89,5 +89,11 @@ define([
'./example/generator/bundle'
], function (Main, legacyRegistry) {
'use strict';
new Main().run(legacyRegistry);
return {
legacyRegistry: legacyRegistry,
run: function () {
return new Main().run(legacyRegistry);
}
};
});