@xeno-js/core 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5173,14 +5173,20 @@ var AppBuilder = class {
5173
5173
  void attempt.then(
5174
5174
  () => {
5175
5175
  },
5176
- () => {
5176
+ async () => {
5177
5177
  if (this._buildPromise === attempt) {
5178
5178
  this._buildPromise = null;
5179
+ await this._resetContainer();
5179
5180
  }
5180
5181
  }
5181
5182
  );
5182
5183
  return attempt;
5183
5184
  }
5185
+ async _resetContainer() {
5186
+ await this._container.dispose();
5187
+ this._container = new ServiceContainer();
5188
+ this._container.addSingleton(import_shared74.TOKENS.CONFIGURATION_SERVICE, () => this._configuration);
5189
+ }
5184
5190
  /**
5185
5191
  * @description Executes the build process by initializing all registered modules in the container.
5186
5192
  */