@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.
- package/dist/cjs/compiler.cjs +12 -1
- package/dist/cjs/compilerHost.cjs +642 -315
- package/dist/cjs/extractor/bundle.cjs +41 -17
- package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.cjs +6 -1
- package/dist/cjs/extractor/loadTamagui.cjs +115 -64
- package/dist/esm/compiler.mjs +12 -1
- package/dist/esm/compiler.mjs.map +1 -1
- package/dist/esm/compilerHost.mjs +644 -316
- package/dist/esm/compilerHost.mjs.map +1 -1
- package/dist/esm/extractor/bundle.mjs +39 -16
- package/dist/esm/extractor/bundle.mjs.map +1 -1
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.mjs +6 -1
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +1 -1
- package/dist/esm/extractor/loadTamagui.mjs +115 -64
- package/dist/esm/extractor/loadTamagui.mjs.map +1 -1
- package/package.json +19 -19
- package/src/compiler.ts +16 -1
- package/src/compilerHost.ts +282 -93
- package/src/extractor/bundle.ts +7 -1
- package/src/extractor/getTamaguiConfigPathFromOptionsConfig.ts +9 -2
- package/types/compiler.d.ts.map +1 -1
- package/types/compilerHost.d.ts.map +1 -1
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/getTamaguiConfigPathFromOptionsConfig.d.ts.map +1 -1
package/dist/cjs/compiler.cjs
CHANGED
|
@@ -157,7 +157,18 @@ var CompilerFrontend = class {
|
|
|
157
157
|
return total;
|
|
158
158
|
}
|
|
159
159
|
compile(input) {
|
|
160
|
-
const operation = this.queue.then(() =>
|
|
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
|
}
|