@xeno-js/core 3.0.3 → 3.0.4

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.js CHANGED
@@ -5177,10 +5177,22 @@ var AppBuilder = class {
5177
5177
  * @since 2025-09-30
5178
5178
  * @link https://github.com/xeno-js/xeno-js
5179
5179
  */
5180
- async build() {
5181
- if (Guards47.isDefined(this._buildPromise)) return this._buildPromise;
5182
- this._buildPromise = this._executeBuild();
5183
- return this._buildPromise;
5180
+ build() {
5181
+ if (Guards47.isDefined(this._buildPromise)) {
5182
+ return this._buildPromise;
5183
+ }
5184
+ const attempt = this._executeBuild();
5185
+ this._buildPromise = attempt;
5186
+ void attempt.then(
5187
+ () => {
5188
+ },
5189
+ () => {
5190
+ if (this._buildPromise === attempt) {
5191
+ this._buildPromise = null;
5192
+ }
5193
+ }
5194
+ );
5195
+ return attempt;
5184
5196
  }
5185
5197
  /**
5186
5198
  * @description Executes the build process by initializing all registered modules in the container.