@tamagui/static 3.0.0-beta.765.1 → 3.0.0-beta.804.1

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.
@@ -157,7 +157,18 @@ var CompilerFrontend = class {
157
157
  return total;
158
158
  }
159
159
  compile(input) {
160
- const operation = this.queue.then(() => this.compileNow(input));
160
+ const operation = this.queue.then(async () => {
161
+ const previousTarget = process.env.TAMAGUI_TARGET;
162
+ const previousStatic = process.env.IS_STATIC;
163
+ try {
164
+ return await this.compileNow(input);
165
+ } finally {
166
+ if (previousTarget === void 0) delete process.env.TAMAGUI_TARGET;
167
+ else process.env.TAMAGUI_TARGET = previousTarget;
168
+ if (previousStatic === void 0) delete process.env.IS_STATIC;
169
+ else process.env.IS_STATIC = previousStatic;
170
+ }
171
+ });
161
172
  this.queue = operation.catch(() => void 0);
162
173
  return operation;
163
174
  }