@tamagui/vite-plugin 3.0.0-beta.807.1 → 3.0.0-beta.881.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/loadTamagui.cjs +11 -0
- package/dist/cjs/plugin.cjs +4 -0
- package/dist/esm/loadTamagui.mjs +11 -0
- package/dist/esm/loadTamagui.mjs.map +1 -1
- package/dist/esm/plugin.mjs +4 -0
- package/dist/esm/plugin.mjs.map +1 -1
- package/package.json +8 -8
- package/src/loadTamagui.ts +17 -0
- package/src/plugin.ts +7 -0
- package/types/loadTamagui.d.ts +6 -0
- package/types/loadTamagui.d.ts.map +1 -1
- package/types/plugin.d.ts.map +1 -1
package/dist/cjs/loadTamagui.cjs
CHANGED
|
@@ -170,6 +170,17 @@ function createViteTamaguiLoader(optionsIn = {}) {
|
|
|
170
170
|
getEvaluationDependencies: () => [...evaluationDependencies],
|
|
171
171
|
isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),
|
|
172
172
|
evaluateProjectModules,
|
|
173
|
+
async evaluateModule(id) {
|
|
174
|
+
if (!environment) return null;
|
|
175
|
+
try {
|
|
176
|
+
return await environment.runner.import(id);
|
|
177
|
+
} catch (error) {
|
|
178
|
+
if (process.env.DEBUG === "tamagui") {
|
|
179
|
+
console.info(`[tamagui] component discovery skipped ${id}:`, error);
|
|
180
|
+
}
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
},
|
|
173
184
|
loadTamaguiBuildConfig,
|
|
174
185
|
setEnvironment(next, options) {
|
|
175
186
|
if (environment === next) return;
|
package/dist/cjs/plugin.cjs
CHANGED
|
@@ -287,6 +287,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
287
287
|
const projectDependencies = /* @__PURE__ */ new Set();
|
|
288
288
|
let root = nativeContext?.root || process.cwd();
|
|
289
289
|
let projectPromise = null;
|
|
290
|
+
let nativeOptions = null;
|
|
290
291
|
let rebuildProject = false;
|
|
291
292
|
let generation = 0;
|
|
292
293
|
const loadProject = async (resolveModule) => {
|
|
@@ -306,6 +307,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
306
307
|
root,
|
|
307
308
|
outputCSS: void 0
|
|
308
309
|
};
|
|
310
|
+
nativeOptions = options;
|
|
309
311
|
for (const dependency of import_static.default.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));
|
|
310
312
|
if (options.disable || options.disableExtraction) return null;
|
|
311
313
|
const project = await import_static.default.loadCompilerProject({
|
|
@@ -388,6 +390,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
388
390
|
target: "native",
|
|
389
391
|
project,
|
|
390
392
|
resolve: resolve2,
|
|
393
|
+
evaluate: async ({ id: moduleId }) => nativeOptions ? import_static.default.evaluateComponentModule(nativeOptions, moduleId) : null,
|
|
391
394
|
load: async (dependencyId) => {
|
|
392
395
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];
|
|
393
396
|
if (!import_node_path.default.isAbsolute(cleanDependencyId)) return null;
|
|
@@ -844,6 +847,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
844
847
|
external: resolution.external === true
|
|
845
848
|
} : null;
|
|
846
849
|
},
|
|
850
|
+
evaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),
|
|
847
851
|
load: async (dependencyId) => {
|
|
848
852
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];
|
|
849
853
|
if (!import_node_path.default.isAbsolute(cleanDependencyId)) return null;
|
package/dist/esm/loadTamagui.mjs
CHANGED
|
@@ -138,6 +138,17 @@ function createViteTamaguiLoader(optionsIn = {}) {
|
|
|
138
138
|
getEvaluationDependencies: () => [...evaluationDependencies],
|
|
139
139
|
isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),
|
|
140
140
|
evaluateProjectModules,
|
|
141
|
+
async evaluateModule(id) {
|
|
142
|
+
if (!environment) return null;
|
|
143
|
+
try {
|
|
144
|
+
return await environment.runner.import(id);
|
|
145
|
+
} catch (error) {
|
|
146
|
+
if (process.env.DEBUG === "tamagui") {
|
|
147
|
+
console.info(`[tamagui] component discovery skipped ${id}:`, error);
|
|
148
|
+
}
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
},
|
|
141
152
|
loadTamaguiBuildConfig,
|
|
142
153
|
setEnvironment(next, options) {
|
|
143
154
|
if (environment === next) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadTamagui.js","names":[],"sources":["esm/loadTamagui.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nconst TAMAGUI_EVALUATION_ENVIRONMENT = \"tamagui\";\nconst requireFromLoader = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst vitePluginVersions = [\n `@tamagui/vite-plugin@${requireFromLoader(\"@tamagui/vite-plugin/package.json\").version}`\n];\nfunction createViteTamaguiLoader(optionsIn = {}) {\n let environment = null;\n let ownsEnvironment = false;\n let loadPromise = null;\n let loadedOptions = null;\n let projectPromise = null;\n const evaluationDependencies = /* @__PURE__ */ new Set();\n const stampSources = /* @__PURE__ */ new Set();\n let generation = 0;\n const normalizeDependency = (id) => id.split(\"?\")[0];\n const captureEvaluationDependencies = (modules) => {\n stampSources.clear();\n for (const { id } of modules) {\n const dependency = normalizeDependency(id);\n if (path.isAbsolute(dependency)) {\n evaluationDependencies.add(dependency);\n stampSources.add(dependency);\n }\n }\n if (environment) {\n for (const module of environment.runner.evaluatedModules.urlToIdModuleMap.values()) {\n const dependency = normalizeDependency(module.file);\n if (!path.isAbsolute(dependency)) continue;\n stampSources.add(dependency);\n if (!dependency.includes(\"/node_modules/\")) {\n evaluationDependencies.add(dependency);\n }\n }\n }\n };\n const loadTamaguiBuildConfig = async () => {\n if (loadedOptions) return loadedOptions;\n if (loadPromise) return loadPromise;\n loadPromise = Static.loadTamaguiBuildConfigAsync({\n ...optionsIn,\n platform: \"web\"\n }).then((options) => {\n loadedOptions = options;\n return options;\n });\n return loadPromise;\n };\n const resolveAndImport = async (moduleName, root, kind) => {\n if (!environment) {\n throw new Error(\n `The Tamagui Vite evaluation environment is not ready. Config and component evaluation requires Vite's ModuleRunner.`\n );\n }\n const source = path.isAbsolute(moduleName) ? moduleName : kind === \"config\" || moduleName.startsWith(\".\") ? path.resolve(root, moduleName) : moduleName;\n let environmentResolution = await environment.pluginContainer.resolveId(source);\n if (!environmentResolution && kind === \"config\" && source !== moduleName) {\n environmentResolution = await environment.pluginContainer.resolveId(moduleName);\n }\n const resolvedId = environmentResolution?.id;\n if (!resolvedId) {\n throw new Error(\n `Unable to resolve ${moduleName} in the Tamagui Vite environment (plugins: ${environment.plugins.map((plugin) => plugin.name).join(\", \")})`\n );\n }\n return {\n moduleName,\n id: resolvedId,\n module: await environment.runner.import(resolvedId)\n };\n };\n const evaluateProjectModules = async (options) => {\n if (!environment) {\n throw new Error(\n `Cannot evaluate Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n const root = environment.config.root;\n const config = await resolveAndImport(\n options.config || \"tamagui.config.ts\",\n root,\n \"config\"\n );\n const components = await Promise.all(\n (options.components || []).map((name) => resolveAndImport(name, root, \"component\"))\n );\n captureEvaluationDependencies([config, ...components]);\n return { config, components };\n };\n const loadProject = async (options) => {\n if (projectPromise) return projectPromise;\n projectPromise = (async () => {\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${generation}`,\n hostVersions: vitePluginVersions,\n async load(normalizedOptions) {\n evaluated = await evaluateProjectModules(normalizedOptions);\n return Static.loadTamaguiFromModules(normalizedOptions, {\n config: evaluated.config.module,\n components: evaluated.components.map(({ moduleName, module }) => ({\n moduleName,\n module\n })),\n stampSources: [...stampSources]\n });\n },\n async resolveComponents(moduleNames) {\n if (!evaluated) {\n throw new Error(\"The Tamagui compiler project modules were not evaluated\");\n }\n const byName = new Map(\n evaluated.components.map(({ moduleName, id }) => [moduleName, id])\n );\n return moduleNames.map((moduleName) => {\n const id = byName.get(moduleName);\n if (!id) throw new Error(`Unable to resolve compiler component ${moduleName}`);\n return { moduleName, id };\n });\n }\n });\n })();\n return projectPromise;\n };\n return {\n getEnvironment: () => environment,\n getGeneration: () => generation,\n getLoadPromise: () => loadPromise,\n getTamaguiOptions: () => loadedOptions,\n async getTamaguiConfig() {\n const options = await loadTamaguiBuildConfig();\n if (options.disable) return null;\n return (await loadProject(options)).projectInfo.tamaguiConfig;\n },\n async getCompilerProject() {\n const options = await loadTamaguiBuildConfig();\n return loadProject(options);\n },\n getEvaluationDependencies: () => [...evaluationDependencies],\n isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),\n evaluateProjectModules,\n loadTamaguiBuildConfig,\n setEnvironment(next, options) {\n if (environment === next) return;\n environment = next;\n ownsEnvironment = options?.owned === true;\n generation++;\n projectPromise = null;\n },\n invalidate(file) {\n if (file && environment) {\n environment.runner.clearCache();\n }\n generation++;\n projectPromise = null;\n },\n async ensureFullConfigLoaded() {\n const options = await loadTamaguiBuildConfig();\n if (!options.disable) {\n await loadProject(options);\n }\n return [...evaluationDependencies];\n },\n async cleanup() {\n try {\n if (ownsEnvironment && environment) {\n await environment.close();\n }\n } finally {\n environment = null;\n ownsEnvironment = false;\n loadPromise = null;\n loadedOptions = null;\n projectPromise = null;\n }\n }\n };\n}\nexport {\n TAMAGUI_EVALUATION_ENVIRONMENT,\n createViteTamaguiLoader\n};\n//# sourceMappingURL=loadTamagui.js.map\n"],"mappings":";;;;;AAGA,MAAM,iCAAiC;AACvC,MAAM,oBAAoB,cACxB,OAAO,eAAe,WAAW,aAAa,YAAY,GAC5D;AACA,M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AC3B;GACA,OAAO,CAAC,GAAG,sBAAsB;EACnC;EACA,MAAM,UAAU;GACd,IAAI;IACF,IAAI,mBAAmB,aAAa;KAClC,MAAM,YAAY,MAAM;IAC1B;GACF,UAAU;IACR,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,iBAAiB;GACnB;EACF;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"loadTamagui.js","names":[],"sources":["esm/loadTamagui.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nconst TAMAGUI_EVALUATION_ENVIRONMENT = \"tamagui\";\nconst requireFromLoader = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst vitePluginVersions = [\n `@tamagui/vite-plugin@${requireFromLoader(\"@tamagui/vite-plugin/package.json\").version}`\n];\nfunction createViteTamaguiLoader(optionsIn = {}) {\n let environment = null;\n let ownsEnvironment = false;\n let loadPromise = null;\n let loadedOptions = null;\n let projectPromise = null;\n const evaluationDependencies = /* @__PURE__ */ new Set();\n const stampSources = /* @__PURE__ */ new Set();\n let generation = 0;\n const normalizeDependency = (id) => id.split(\"?\")[0];\n const captureEvaluationDependencies = (modules) => {\n stampSources.clear();\n for (const { id } of modules) {\n const dependency = normalizeDependency(id);\n if (path.isAbsolute(dependency)) {\n evaluationDependencies.add(dependency);\n stampSources.add(dependency);\n }\n }\n if (environment) {\n for (const module of environment.runner.evaluatedModules.urlToIdModuleMap.values()) {\n const dependency = normalizeDependency(module.file);\n if (!path.isAbsolute(dependency)) continue;\n stampSources.add(dependency);\n if (!dependency.includes(\"/node_modules/\")) {\n evaluationDependencies.add(dependency);\n }\n }\n }\n };\n const loadTamaguiBuildConfig = async () => {\n if (loadedOptions) return loadedOptions;\n if (loadPromise) return loadPromise;\n loadPromise = Static.loadTamaguiBuildConfigAsync({\n ...optionsIn,\n platform: \"web\"\n }).then((options) => {\n loadedOptions = options;\n return options;\n });\n return loadPromise;\n };\n const resolveAndImport = async (moduleName, root, kind) => {\n if (!environment) {\n throw new Error(\n `The Tamagui Vite evaluation environment is not ready. Config and component evaluation requires Vite's ModuleRunner.`\n );\n }\n const source = path.isAbsolute(moduleName) ? moduleName : kind === \"config\" || moduleName.startsWith(\".\") ? path.resolve(root, moduleName) : moduleName;\n let environmentResolution = await environment.pluginContainer.resolveId(source);\n if (!environmentResolution && kind === \"config\" && source !== moduleName) {\n environmentResolution = await environment.pluginContainer.resolveId(moduleName);\n }\n const resolvedId = environmentResolution?.id;\n if (!resolvedId) {\n throw new Error(\n `Unable to resolve ${moduleName} in the Tamagui Vite environment (plugins: ${environment.plugins.map((plugin) => plugin.name).join(\", \")})`\n );\n }\n return {\n moduleName,\n id: resolvedId,\n module: await environment.runner.import(resolvedId)\n };\n };\n const evaluateProjectModules = async (options) => {\n if (!environment) {\n throw new Error(\n `Cannot evaluate Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n const root = environment.config.root;\n const config = await resolveAndImport(\n options.config || \"tamagui.config.ts\",\n root,\n \"config\"\n );\n const components = await Promise.all(\n (options.components || []).map((name) => resolveAndImport(name, root, \"component\"))\n );\n captureEvaluationDependencies([config, ...components]);\n return { config, components };\n };\n const loadProject = async (options) => {\n if (projectPromise) return projectPromise;\n projectPromise = (async () => {\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${generation}`,\n hostVersions: vitePluginVersions,\n async load(normalizedOptions) {\n evaluated = await evaluateProjectModules(normalizedOptions);\n return Static.loadTamaguiFromModules(normalizedOptions, {\n config: evaluated.config.module,\n components: evaluated.components.map(({ moduleName, module }) => ({\n moduleName,\n module\n })),\n stampSources: [...stampSources]\n });\n },\n async resolveComponents(moduleNames) {\n if (!evaluated) {\n throw new Error(\"The Tamagui compiler project modules were not evaluated\");\n }\n const byName = new Map(\n evaluated.components.map(({ moduleName, id }) => [moduleName, id])\n );\n return moduleNames.map((moduleName) => {\n const id = byName.get(moduleName);\n if (!id) throw new Error(`Unable to resolve compiler component ${moduleName}`);\n return { moduleName, id };\n });\n }\n });\n })();\n return projectPromise;\n };\n return {\n getEnvironment: () => environment,\n getGeneration: () => generation,\n getLoadPromise: () => loadPromise,\n getTamaguiOptions: () => loadedOptions,\n async getTamaguiConfig() {\n const options = await loadTamaguiBuildConfig();\n if (options.disable) return null;\n return (await loadProject(options)).projectInfo.tamaguiConfig;\n },\n async getCompilerProject() {\n const options = await loadTamaguiBuildConfig();\n return loadProject(options);\n },\n getEvaluationDependencies: () => [...evaluationDependencies],\n isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),\n evaluateProjectModules,\n async evaluateModule(id) {\n if (!environment) return null;\n try {\n return await environment.runner.import(id);\n } catch (error) {\n if (process.env.DEBUG === \"tamagui\") {\n console.info(`[tamagui] component discovery skipped ${id}:`, error);\n }\n return null;\n }\n },\n loadTamaguiBuildConfig,\n setEnvironment(next, options) {\n if (environment === next) return;\n environment = next;\n ownsEnvironment = options?.owned === true;\n generation++;\n projectPromise = null;\n },\n invalidate(file) {\n if (file && environment) {\n environment.runner.clearCache();\n }\n generation++;\n projectPromise = null;\n },\n async ensureFullConfigLoaded() {\n const options = await loadTamaguiBuildConfig();\n if (!options.disable) {\n await loadProject(options);\n }\n return [...evaluationDependencies];\n },\n async cleanup() {\n try {\n if (ownsEnvironment && environment) {\n await environment.close();\n }\n } finally {\n environment = null;\n ownsEnvironment = false;\n loadPromise = null;\n loadedOptions = null;\n projectPromise = null;\n }\n }\n };\n}\nexport {\n TAMAGUI_EVALUATION_ENVIRONMENT,\n createViteTamaguiLoader\n};\n//# sourceMappingURL=loadTamagui.js.map\n"],"mappings":";;;;;AAGA,MAAM,iCAAiC;AACvC,MAAM,oBAAoB,cACxB,OAAO,eAAe,WAAW,aAAa,YAAY,GA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,SAAS,UAAU;GACrC;GACA,iBAAiB;EACnB;EACA,WAAW,MAAM;GACf,IAAI,QAAQ,aAAa;IACvB,YAAY,OAAO,WAAW;GAChC;GACA;GACA,iBAAiB;EACnB;EACA,MAAM,yBAAyB;GAC7B,MAAM,UAAU,MAAM,uBAAuB;GAC7C,IAAI,CAAC,QAAQ,SAAS;IACpB,MAAM,YAAY,OAAO;GAC3B;GACA,OAAO,CAAC,GAAG,sBAAsB;EACnC;EACA,MAAM,UAAU;GACd,IAAI;IACF,IAAI,mBAAmB,aAAa;KAClC,MAAM,YAAY,MAAM;IAC1B;GACF,UAAU;IACR,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,iBAAiB;GACnB;EACF;CACF;AACF"}
|
package/dist/esm/plugin.mjs
CHANGED
|
@@ -253,6 +253,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
253
253
|
const projectDependencies = /* @__PURE__ */ new Set();
|
|
254
254
|
let root = nativeContext?.root || process.cwd();
|
|
255
255
|
let projectPromise = null;
|
|
256
|
+
let nativeOptions = null;
|
|
256
257
|
let rebuildProject = false;
|
|
257
258
|
let generation = 0;
|
|
258
259
|
const loadProject = async (resolveModule) => {
|
|
@@ -272,6 +273,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
272
273
|
root,
|
|
273
274
|
outputCSS: void 0
|
|
274
275
|
};
|
|
276
|
+
nativeOptions = options;
|
|
275
277
|
for (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));
|
|
276
278
|
if (options.disable || options.disableExtraction) return null;
|
|
277
279
|
const project = await Static.loadCompilerProject({
|
|
@@ -354,6 +356,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
354
356
|
target: "native",
|
|
355
357
|
project,
|
|
356
358
|
resolve: resolve2,
|
|
359
|
+
evaluate: async ({ id: moduleId }) => nativeOptions ? Static.evaluateComponentModule(nativeOptions, moduleId) : null,
|
|
357
360
|
load: async (dependencyId) => {
|
|
358
361
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];
|
|
359
362
|
if (!path.isAbsolute(cleanDependencyId)) return null;
|
|
@@ -808,6 +811,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
808
811
|
external: resolution.external === true
|
|
809
812
|
} : null;
|
|
810
813
|
},
|
|
814
|
+
evaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),
|
|
811
815
|
load: async (dependencyId) => {
|
|
812
816
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];
|
|
813
817
|
if (!path.isAbsolute(cleanDependencyId)) return null;
|
package/dist/esm/plugin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","names":[],"sources":["esm/plugin.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync, readFileSync, readdirSync, writeFileSync } from \"node:fs\";\nimport { gzipSync } from \"node:zlib\";\nimport { readFile } from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, isRunnableDevEnvironment, resolveConfig } from \"vite\";\nimport { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from \"./loadTamagui\";\nimport { createCompilerStatsReport, formatCompilerStatsReport } from \"./compilerStats\";\nimport { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from \"./zeroRuntime\";\n\nconst environmentSpecificTransformPluginNames = /* @__PURE__ */ new Set([\"one:compiler\", \"one:compiler-css-to-js\"]);\nconst oneTsconfigPathsPluginName = \"one:tsconfig-paths\";\nconst bareTamaguiPackage = /^@tamagui\\/[^/?#]+(?:[/?#]|$)/;\nconst inlineEvaluationTamaguiPackage = /^@tamagui\\/(?:config|core|slider|web)(?:[/?#]|$)/;\nconst externalizablePackageExtensions = /* @__PURE__ */ new Set([\n\t\"\",\n\t\".js\",\n\t\".mjs\",\n\t\".cjs\"\n]);\nconst TAMAGUI_COMPILER_CONDITION = \"tamagui-compiler\";\nfunction packageDeclaresCompilerCondition(packageDir) {\n\tconst manifest = path.join(packageDir, \"package.json\");\n\tif (!existsSync(manifest)) return false;\n\ttry {\n\t\tconst exports = JSON.parse(readFileSync(manifest, \"utf8\")).exports;\n\t\treturn JSON.stringify(exports ?? null).includes(`\"${TAMAGUI_COMPILER_CONDITION}\"`);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction mergeEvaluationNoExternal(required, userNoExternal) {\n\tif (userNoExternal === true) return true;\n\tif (!userNoExternal) return required;\n\treturn [...required, ...Array.isArray(userNoExternal) ? userNoExternal : [userNoExternal]];\n}\nfunction createEvaluationResolveId(plugin, resolveBarePackage) {\n\tconst resolveId = plugin.resolveId;\n\tif (plugin.name !== oneTsconfigPathsPluginName || !resolveId) return resolveId;\n\tconst handler = typeof resolveId === \"object\" ? resolveId.handler : resolveId;\n\tconst evaluationHandler = function(source, ...args) {\n\t\tif (bareTamaguiPackage.test(source)) {\n\t\t\tconst importer = typeof args[0] === \"string\" ? args[0] : void 0;\n\t\t\treturn resolveBarePackage?.(this.environment, source, importer);\n\t\t}\n\t\treturn Reflect.apply(handler, this, [source, ...args]);\n\t};\n\treturn typeof resolveId === \"object\" ? {\n\t\t...resolveId,\n\t\thandler: evaluationHandler\n\t} : evaluationHandler;\n}\nfunction createEvaluationPluginFacade(plugin, resolveBarePackage) {\n\treturn {\n\t\tname: plugin.name,\n\t\tenforce: plugin.enforce,\n\t\tresolveId: createEvaluationResolveId(plugin, resolveBarePackage),\n\t\tload: plugin.load,\n\t\ttransform: environmentSpecificTransformPluginNames.has(plugin.name) ? void 0 : plugin.transform\n\t};\n}\nconst tamaguiEvaluationPluginNames = /* @__PURE__ */ new Set([\n\t\"tamagui\",\n\t\"tamagui-extract\",\n\t\"tamagui-rnw-lite\"\n]);\nfunction isEvaluationUserPlugin(plugin) {\n\treturn !!(plugin.resolveId || plugin.load || plugin.transform) && plugin.name !== \"alias\" && !plugin.name.startsWith(\"native:\") && !plugin.name.startsWith(\"vite:\") && !plugin.name.startsWith(\"builtin:vite-\") && !tamaguiEvaluationPluginNames.has(plugin.name);\n}\nfunction isEvaluationCorePlugin(plugin) {\n\treturn plugin.name === \"alias\" || plugin.name.startsWith(\"vite:\") || plugin.name.startsWith(\"builtin:vite-\");\n}\nfunction isConfiguredEvaluationPackage(source, packages) {\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn [...packages].some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction getEvaluationPackageName(source) {\n\tif (!source) return;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\tif (!cleanSource || cleanSource.startsWith(\".\") || cleanSource.startsWith(\"#\") || cleanSource.startsWith(\"\\0\") || path.isAbsolute(cleanSource)) return;\n\tif (cleanSource.startsWith(\"@\")) {\n\t\tconst [scope, name2] = cleanSource.split(\"/\");\n\t\treturn scope && name2 ? `${scope}/${name2}` : void 0;\n\t}\n\tconst [name] = cleanSource.split(\"/\");\n\treturn name && !path.extname(name) ? name : void 0;\n}\nfunction scanInstalledTamaguiPackages(root, configuredEvaluationPackages) {\n\tconst packageRequire = createRequire(path.join(root, \"package.json\"));\n\tconst externalizable = /* @__PURE__ */ new Set();\n\tconst compilerCondition = /* @__PURE__ */ new Set();\n\tfor (const modulePath of packageRequire.resolve.paths(\"@tamagui/core\") || []) {\n\t\tconst scopePath = path.join(modulePath, \"@tamagui\");\n\t\tif (!existsSync(scopePath)) continue;\n\t\tfor (const entry of readdirSync(scopePath, { withFileTypes: true })) {\n\t\t\tif (!entry.isDirectory() && !entry.isSymbolicLink()) continue;\n\t\t\tconst packageName = `@tamagui/${entry.name}`;\n\t\t\tif (inlineEvaluationTamaguiPackage.test(packageName) || configuredEvaluationPackages.has(packageName)) continue;\n\t\t\tif (packageDeclaresCompilerCondition(path.join(scopePath, entry.name))) compilerCondition.add(packageName);\n\t\t\telse externalizable.add(packageName);\n\t\t}\n\t}\n\treturn {\n\t\texternalizable,\n\t\tcompilerCondition\n\t};\n}\nfunction getEvaluationResolve(resolve2, root, disableTsconfigPaths, configuredEvaluationPackages) {\n\tconst noExternal = resolve2.noExternal;\n\tconst noExternalFilter = noExternal && noExternal !== true ? createFilter(void 0, noExternal, { resolve: false }) : void 0;\n\tconst isNoExternalPackage = noExternal === true ? () => true : noExternalFilter ? (packageName) => !noExternalFilter(packageName) : () => false;\n\treturn {\n\t\t...resolve2,\n\t\texternal: resolve2.external === true ? true : [.../* @__PURE__ */ new Set([...(resolve2.external || []).filter((packageName) => !isConfiguredEvaluationPackage(packageName, configuredEvaluationPackages)), ...[...scanInstalledTamaguiPackages(root, configuredEvaluationPackages).externalizable].filter((packageName) => !isNoExternalPackage(packageName))])],\n\t\t...disableTsconfigPaths && { tsconfigPaths: false }\n\t};\n}\nfunction isConfiguredExternalPackage(source, external) {\n\tif (external === true) return true;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn external?.some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction createServeEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tlet packageResolver;\n\tconst resolveBarePackage = async (evaluationEnvironment, source, importer) => {\n\t\tconst resolved = await packageResolver?.(evaluationEnvironment, source, importer);\n\t\tif (!resolved) return;\n\t\tconst cleanResolved = resolved.split(/[?#]/, 1)[0];\n\t\tif (!inlineEvaluationTamaguiPackage.test(source) && !isConfiguredEvaluationPackage(source, configuredEvaluationPackages) && isConfiguredExternalPackage(source, evaluationEnvironment.config.resolve.external)) return {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t\tif (inlineEvaluationTamaguiPackage.test(source) || isConfiguredEvaluationPackage(source, configuredEvaluationPackages) || !normalizePath(cleanResolved).includes(\"/node_modules/\") || !externalizablePackageExtensions.has(path.extname(cleanResolved))) return resolved;\n\t\treturn {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t};\n\tconst plugins = environment.plugins.flatMap((plugin) => {\n\t\tif (isEvaluationCorePlugin(plugin)) return [plugin];\n\t\tif (isEvaluationUserPlugin(plugin)) return [createEvaluationPluginFacade(plugin, resolveBarePackage)];\n\t\treturn [];\n\t});\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst evaluationConfig = {\n\t\t...config,\n\t\tenvironments: {\n\t\t\t...config.environments,\n\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\t\t...environment,\n\t\t\t\tplugins,\n\t\t\t\tresolve: resolve2\n\t\t\t}\n\t\t}\n\t};\n\tpackageResolver = createIdResolver(evaluationConfig);\n\treturn evaluationConfig;\n}\nasync function createOwnedEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tconst plugins = environment.plugins.filter(isEvaluationUserPlugin).map((plugin) => createEvaluationPluginFacade(plugin));\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst { createEnvironment: _createEnvironment, ...dev } = environment.dev;\n\treturn resolveConfig({\n\t\tconfigFile: false,\n\t\troot: config.root,\n\t\tmode: config.mode,\n\t\tlogLevel: config.logLevel,\n\t\tplugins,\n\t\tdefine: environment.define,\n\t\tresolve: resolve2,\n\t\tenvironments: { [TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\tconsumer: environment.consumer,\n\t\t\tkeepProcessEnv: environment.keepProcessEnv,\n\t\t\tdefine: environment.define,\n\t\t\tresolve: resolve2,\n\t\t\toptimizeDeps: environment.optimizeDeps,\n\t\t\tdev: {\n\t\t\t\t...dev,\n\t\t\t\tmoduleRunnerTransform: true\n\t\t\t}\n\t\t} }\n\t}, \"serve\", config.mode);\n}\nconst _pluginRequire = createRequire(typeof __filename === \"string\" ? __filename : fileURLToPath(import.meta.url));\nconst resolve = (name) => _pluginRequire.resolve(name);\nconst normalizePath = (value) => value.replace(/\\\\/g, \"/\");\nconst PLUGIN_INSTANCE_KEY = \"__tamagui_vite_plugin_instance__\";\nfunction reportCompilerStats(root, reports) {\n\tconst report = createCompilerStatsReport(root, reports);\n\tconsole.info(formatCompilerStatsReport(report, process.env.TAMAGUI_COMPILER_STATS === \"verbose\"));\n\tif (process.env.TAMAGUI_COMPILER_STATS_FILE) {\n\t\tconst outputPath = path.resolve(root, process.env.TAMAGUI_COMPILER_STATS_FILE);\n\t\twriteFileSync(outputPath, `${JSON.stringify(report, null, 2)}\n`);\n\t\tconsole.info(`[tamagui] compiler stats JSON: ${path.relative(process.cwd(), outputPath)}`);\n\t}\n}\nfunction getNextPluginInstanceId() {\n\tconst next = (globalThis[PLUGIN_INSTANCE_KEY] || 0) + 1;\n\tglobalThis[PLUGIN_INSTANCE_KEY] = next;\n\treturn next;\n}\nfunction isInstalled(projectRoot, id) {\n\ttry {\n\t\tcreateRequire(path.join(projectRoot, \"package.json\")).resolve(id);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction addIfInstalled(userConf, projectRoot, ids) {\n\tconst root = projectRoot || process.cwd();\n\tuserConf.optimizeDeps ||= {};\n\tuserConf.optimizeDeps.include ||= [];\n\tfor (const id of ids) if (!userConf.optimizeDeps.include.includes(id) && isInstalled(root, id)) userConf.optimizeDeps.include.push(id);\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) aliases.push({\n\t\tfind: \"react-native-svg\",\n\t\treplacement: resolve(\"@tamagui/react-native-svg\")\n\t});\n\tif (options.rnwLite) {\n\t\tconst rnwlBase = path.dirname(resolve(\"@tamagui/react-native-web-lite/package.json\"));\n\t\tconst rnwl = normalizePath(path.join(rnwlBase, options.rnwLite === \"without-animated\" ? \"dist/esm/without-animated.mjs\" : \"dist/esm/index.mjs\"));\n\t\tconst rnwlFlatModules = readdirSync(path.join(rnwlBase, \"dist/esm\")).filter((file) => file.endsWith(\".mjs\")).map((file) => file.slice(0, -4)).filter((name) => /^[A-Za-z0-9_]+$/.test(name));\n\t\taliases.push({\n\t\t\tfind: new RegExp(`^react-native(?:-web)?\\\\/dist\\\\/(?:exports|modules)\\\\/(?:.*\\\\/)?(${rnwlFlatModules.join(\"|\")})$`),\n\t\t\treplacement: `${normalizePath(rnwlBase)}/dist/esm/$1.mjs`\n\t\t}, {\n\t\t\tfind: /^react-native$/,\n\t\t\treplacement: rnwl\n\t\t}, {\n\t\t\tfind: /^react-native\\/(Libraries\\/Utilities\\/codegenNativeComponent|Libraries\\/Utilities\\/codegenNativeCommand)$/,\n\t\t\treplacement: `${rnwlBase}/$1`\n\t\t}, {\n\t\t\tfind: \"react-native/package.json\",\n\t\t\treplacement: resolve(\"@tamagui/react-native-web-lite/package.json\")\n\t\t}, {\n\t\t\tfind: /^react-native-web$/,\n\t\t\treplacement: rnwl\n\t\t});\n\t}\n\treturn aliases;\n}\nfunction createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {\n\tlet compilerFrontend = new Static.CompilerFrontend();\n\tconst projectDependencies = /* @__PURE__ */ new Set();\n\tlet root = nativeContext?.root || process.cwd();\n\tlet projectPromise = null;\n\tlet rebuildProject = false;\n\tlet generation = 0;\n\tconst loadProject = async (resolveModule) => {\n\t\tif (projectPromise) return projectPromise;\n\t\tconst shouldRebuild = rebuildProject;\n\t\trebuildProject = false;\n\t\tconst guarded = (async () => {\n\t\t\tprojectDependencies.clear();\n\t\t\tconst loadedOptions = await Static.loadTamaguiBuildConfigAsync({\n\t\t\t\t...tamaguiOptionsIn,\n\t\t\t\troot,\n\t\t\t\tplatform: \"native\",\n\t\t\t\toutputCSS: void 0\n\t\t\t});\n\t\t\tconst options = {\n\t\t\t\t...loadedOptions,\n\t\t\t\troot,\n\t\t\t\toutputCSS: void 0\n\t\t\t};\n\t\t\tfor (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));\n\t\t\tif (options.disable || options.disableExtraction) return null;\n\t\t\tconst project = await Static.loadCompilerProject({\n\t\t\t\troot,\n\t\t\t\ttarget: \"native\",\n\t\t\t\toptions,\n\t\t\t\trebuild: shouldRebuild,\n\t\t\t\tgeneration: `vite-native:${generation + 1}`,\n\t\t\t\tmissingProjectMessage: \"Unable to load the Tamagui project for Vite native compilation\",\n\t\t\t\tasync resolveComponents(moduleNames) {\n\t\t\t\t\treturn Promise.all(moduleNames.map(async (moduleName) => {\n\t\t\t\t\t\tconst id = await resolveModule(moduleName);\n\t\t\t\t\t\tprojectDependencies.add(normalizePath(id.split(/[?#]/, 1)[0]));\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tmoduleName,\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t};\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (const dependency of project.projectInfo.dependencies ?? []) projectDependencies.add(normalizePath(dependency.split(/[?#]/, 1)[0]));\n\t\t\tconst configPath = options.config || \"tamagui.config.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(configPath) ? configPath : path.resolve(root, configPath)));\n\t\t\tconst buildFile = options.buildFile || \"tamagui.build.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(buildFile) ? buildFile : path.resolve(root, buildFile)));\n\t\t\tif (options.themeBuilder?.input) projectDependencies.add(normalizePath(path.isAbsolute(options.themeBuilder.input) ? options.themeBuilder.input : path.resolve(root, options.themeBuilder.input)));\n\t\t\tgeneration++;\n\t\t\treturn project;\n\t\t})().catch((error) => {\n\t\t\tif (projectPromise === guarded) projectPromise = null;\n\t\t\trebuildProject = true;\n\t\t\tthrow error;\n\t\t});\n\t\tprojectPromise = guarded;\n\t\treturn projectPromise;\n\t};\n\treturn {\n\t\tname: \"tamagui-native-compiler\",\n\t\tenforce: \"post\",\n\t\tconfigResolved(config) {\n\t\t\troot = config.root;\n\t\t},\n\t\twatchChange(id) {\n\t\t\tif (projectDependencies.has(normalizePath(id.split(/[?#]/, 1)[0]))) {\n\t\t\t\trebuildProject = true;\n\t\t\t\tprojectPromise = null;\n\t\t\t\tcompilerFrontend = new Static.CompilerFrontend();\n\t\t\t}\n\t\t},\n\t\ttransform: {\n\t\t\torder: \"pre\",\n\t\t\tasync handler(code, id) {\n\t\t\t\tconst environmentName = nativeContext?.platform || this.environment?.name;\n\t\t\t\tif (environmentName !== \"ios\" && environmentName !== \"android\") return;\n\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\tif (!validId || !/\\.[jt]sx$/.test(validId) || normalizePath(validId).split(\"/\").includes(\"node_modules\")) return;\n\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\tsource: code,\n\t\t\t\t\tpath: validId\n\t\t\t\t});\n\t\t\t\tif (shouldDisable) return;\n\t\t\t\tconst resolve2 = async (specifier, importer) => {\n\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t} : null;\n\t\t\t\t};\n\t\t\t\tconst project = await loadProject(async (specifier) => {\n\t\t\t\t\tconst resolution = await resolve2(specifier, path.join(root, \"__tamagui_native.tsx\"));\n\t\t\t\t\tif (!resolution) throw new Error(`Unable to resolve native compiler component ${specifier}`);\n\t\t\t\t\treturn resolution.id;\n\t\t\t\t});\n\t\t\t\tif (!project) return;\n\t\t\t\tfor (const dependency of projectDependencies) this.addWatchFile(dependency);\n\t\t\t\tconst result = await compilerFrontend.compile({\n\t\t\t\t\tid: validId,\n\t\t\t\t\tsource: code,\n\t\t\t\t\troot,\n\t\t\t\t\ttarget: \"native\",\n\t\t\t\t\tproject,\n\t\t\t\t\tresolve: resolve2,\n\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\tif (result.plan.css) throw new Error(`Native Tamagui compilation produced unexpected CSS for ${validId}`);\n\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\tmap: result.output.map\n\t\t\t\t} : void 0;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction tamaguiNativePlugin(tamaguiOptionsIn = {}) {\n\tconst plugin = createTamaguiNativePlugin(tamaguiOptionsIn);\n\tconst api = plugin.api && typeof plugin.api === \"object\" ? plugin.api : {};\n\treturn {\n\t\t...plugin,\n\t\tapi: {\n\t\t\t...api,\n\t\t\tvxrnNative: (context) => createTamaguiNativePlugin(tamaguiOptionsIn, context)\n\t\t}\n\t};\n}\nfunction createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) => css, zeroIslandBuild, ...tamaguiOptionsIn } = {}) {\n\tlet shouldExtract = !tamaguiOptionsIn.disableExtraction;\n\tconst enableNativeEnv = !!globalThis.__vxrnEnableNativeEnv;\n\tconst tamaguiLoader = createViteTamaguiLoader(tamaguiOptionsIn);\n\tconst compilerFrontends = /* @__PURE__ */ new WeakMap();\n\tconst getCompilerFrontend = (environment) => {\n\t\tlet frontend = compilerFrontends.get(environment);\n\t\tif (!frontend) {\n\t\t\tfrontend = new Static.CompilerFrontend();\n\t\t\tcompilerFrontends.set(environment, frontend);\n\t\t}\n\t\treturn frontend;\n\t};\n\tconst pluginInstanceId = getNextPluginInstanceId();\n\tconst configuredEvaluationPackages = /* @__PURE__ */ new Set();\n\tlet buildEnvironmentPromise = null;\n\tlet buildCleanupPromise = null;\n\tconst activeBuildEnvironments = /* @__PURE__ */ new Set();\n\tconst compilerReports = process.env.TAMAGUI_COMPILER_STATS || process.env.TAMAGUI_COMPILER_STATS_FILE ? /* @__PURE__ */ new Map() : null;\n\tconst releaseBuildEnvironment = async (environment) => {\n\t\tif (!activeBuildEnvironments.delete(environment) || activeBuildEnvironments.size) return;\n\t\tif (compilerReports?.size) reportCompilerStats(config?.root ?? process.cwd(), compilerReports);\n\t\tconst currentCleanup = Promise.resolve().then(async () => {\n\t\t\ttry {\n\t\t\t\tawait tamaguiLoader.cleanup();\n\t\t\t} finally {\n\t\t\t\tbuildEnvironmentPromise = null;\n\t\t\t}\n\t\t});\n\t\tbuildCleanupPromise = currentCleanup;\n\t\ttry {\n\t\t\tawait currentCleanup;\n\t\t} finally {\n\t\t\tif (buildCleanupPromise === currentCleanup) buildCleanupPromise = null;\n\t\t}\n\t};\n\tconst extensions = [\n\t\t`.web.mjs`,\n\t\t`.web.js`,\n\t\t`.web.jsx`,\n\t\t`.web.ts`,\n\t\t`.web.tsx`,\n\t\t\".mjs\",\n\t\t\".js\",\n\t\t\".mts\",\n\t\t\".ts\",\n\t\t\".jsx\",\n\t\t\".tsx\",\n\t\t\".json\"\n\t];\n\tconst getEvaluationEnvironmentOptions = (resolvedRoot, userNoExternal) => ({\n\t\tconsumer: \"server\",\n\t\tkeepProcessEnv: true,\n\t\tdefine: {\n\t\t\t\"process.env.IS_STATIC\": JSON.stringify(\"is_static\"),\n\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(false),\n\t\t\t\"process.env.TAMAGUI_IS_SERVER\": JSON.stringify(true),\n\t\t\t\"process.env.TAMAGUI_TARGET\": JSON.stringify(\"web\"),\n\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": JSON.stringify(TAMAGUI_EVALUATION_ENVIRONMENT),\n\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"\"),\n\t\t\t\"process.env.VITE_ENVIRONMENT\": JSON.stringify(\"ssr\"),\n\t\t\t\"process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL\": JSON.stringify(\"1\")\n\t\t},\n\t\tresolve: {\n\t\t\tconditions: [TAMAGUI_COMPILER_CONDITION, ...defaultClientConditions],\n\t\t\tmainFields: [...defaultClientMainFields],\n\t\t\tnoExternal: mergeEvaluationNoExternal([\n\t\t\t\tinlineEvaluationTamaguiPackage,\n\t\t\t\t...configuredEvaluationPackages,\n\t\t\t\t...scanInstalledTamaguiPackages(resolvedRoot, configuredEvaluationPackages).compilerCondition\n\t\t\t], userNoExternal),\n\t\t\textensions\n\t\t},\n\t\tdev: {\n\t\t\tcreateEnvironment(name, resolved) {\n\t\t\t\treturn createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages));\n\t\t\t},\n\t\t\tmoduleRunnerTransform: true\n\t\t}\n\t});\n\ttamaguiLoader.loadTamaguiBuildConfig();\n\tconst ensureLoaded = async () => {\n\t\tconst promise = tamaguiLoader.getLoadPromise();\n\t\tif (promise) await promise;\n\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\tif (options) shouldExtract = !options.disableExtraction;\n\t\treturn options;\n\t};\n\tconst getHash = (input) => createHash(\"sha1\").update(input).digest(\"base64\");\n\tconst cssMap = /* @__PURE__ */ new Map();\n\tconst transformedModuleIds = /* @__PURE__ */ new Set();\n\tconst compilerHotUpdateSignatures = /* @__PURE__ */ new Map();\n\tconst compilerHotReloadSignatures = /* @__PURE__ */ new Map();\n\tlet config;\n\tlet server;\n\tlet zero = null;\n\tlet zeroReceipt = null;\n\tlet zeroBuildFailed = false;\n\tlet globalCSS = null;\n\tlet globalCSSExpected = null;\n\tlet zeroHtmlEntries = 0;\n\tlet zeroDevIslands = Promise.resolve();\n\tconst virtualExt = `.tamagui.css`;\n\tconst getAbsoluteVirtualFileId = (filePath) => {\n\t\tif (filePath.startsWith(config.root)) return filePath;\n\t\treturn normalizePath(path.join(config.root, filePath));\n\t};\n\tconst isAppJSXSource = (filePath) => {\n\t\tif (!/\\.[jt]sx$/.test(filePath)) return false;\n\t\tconst relative = path.relative(config.root, filePath);\n\t\treturn relative !== \"\" && relative !== \"..\" && !relative.startsWith(`..${path.sep}`) && !relative.split(path.sep).includes(\"node_modules\");\n\t};\n\tconst isFrameworkAnalysisRequest = (id) => id.includes(\"__react-router-build-client-route\");\n\tfunction isNotClient(environment) {\n\t\treturn environment?.name && environment.name !== \"client\";\n\t}\n\tfunction isNative(environment) {\n\t\treturn environment?.name && (environment.name === \"ios\" || environment.name === \"android\");\n\t}\n\tfunction invalidateCompilerModules() {\n\t\tif (server) {\n\t\t\tconst ids = /* @__PURE__ */ new Set([...transformedModuleIds, ...cssMap.keys()]);\n\t\t\tfor (const environment of Object.values(server.environments)) {\n\t\t\t\tif (environment.name === TAMAGUI_EVALUATION_ENVIRONMENT) continue;\n\t\t\t\tfor (const id of ids) {\n\t\t\t\t\tconst modules = environment.moduleGraph.getModulesByFile(id);\n\t\t\t\t\tif (!modules) continue;\n\t\t\t\t\tfor (const module of modules) environment.moduleGraph.invalidateModule(module);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcssMap.clear();\n\t}\n\treturn {\n\t\tplugins: [\n\t\t\t{\n\t\t\t\tname: \"tamagui\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tconfigureServer(_server) {\n\t\t\t\t\tserver = _server;\n\t\t\t\t\tconst evaluationEnvironment = server.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\t\t\t\t\tif (!isRunnableDevEnvironment(evaluationEnvironment)) throw new Error(`The ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`);\n\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment);\n\t\t\t\t},\n\t\t\t\tasync buildEnd() {\n\t\t\t\t\tawait releaseBuildEnvironment(this.environment);\n\t\t\t\t},\n\t\t\t\tasync config(userConfig, env) {\n\t\t\t\t\tconst options = await ensureLoaded();\n\t\t\t\t\tif (!options) throw new Error(`No tamagui options loaded`);\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options.useReactNativeWebLite;\n\t\t\t\t\tfor (const source of [options.config, ...options.components || []]) {\n\t\t\t\t\t\tconst packageName = getEvaluationPackageName(source);\n\t\t\t\t\t\tif (packageName) configuredEvaluationPackages.add(packageName);\n\t\t\t\t\t}\n\t\t\t\t\tconst resolvedRoot = userConfig.root ? path.resolve(userConfig.root) : process.cwd();\n\t\t\t\t\tzero = zeroIslandBuild ? null : await createZeroRuntimeController(options, resolvedRoot, userConfig.base || \"/\");\n\t\t\t\t\tglobalCSS = zeroIslandBuild || env.command !== \"build\" ? null : Static.resolveGlobalCSSOwnership(options, resolvedRoot);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tenvPrefix: [\"TAMAGUI_\"],\n\t\t\t\t\t\tenvironments: {\n\t\t\t\t\t\t\tclient: { define: {\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(true),\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": \"\\\"client\\\"\",\n\t\t\t\t\t\t\t\t...zero?.isEnforcing && { \"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"zero\") },\n\t\t\t\t\t\t\t\t...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") }\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\tssr: { define: { ...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") } } },\n\t\t\t\t\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: getEvaluationEnvironmentOptions(resolvedRoot, userConfig.environments?.[TAMAGUI_EVALUATION_ENVIRONMENT]?.resolve?.noExternal)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefine: {\n\t\t\t\t\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\t\t\t\t_frameTimestamp: void 0,\n\t\t\t\t\t\t\t_WORKLET: false,\n\t\t\t\t\t\t\t__DEV__: `${env.mode === \"development\"}`,\n\t\t\t\t\t\t\t\"process.env.NODE_ENV\": JSON.stringify(process.env.NODE_ENV || env.mode),\n\t\t\t\t\t\t\t\"process.env.ENABLE_RSC\": JSON.stringify(process.env.ENABLE_RSC || \"\"),\n\t\t\t\t\t\t\t\"process.env.ENABLE_STEPS\": JSON.stringify(process.env.ENABLE_STEPS || \"\"),\n\t\t\t\t\t\t\t\"process.env.IS_STATIC\": JSON.stringify(false),\n\t\t\t\t\t\t\t...env.mode === \"production\" && { \"process.env.TAMAGUI_OPTIMIZE_THEMES\": JSON.stringify(true) }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tresolve: disableResolveConfig || enableNativeEnv ? {} : {\n\t\t\t\t\t\t\textensions,\n\t\t\t\t\t\t\talias: { ...options.platform !== \"native\" && {\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Renderer/shims/ReactFabric\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Utilities/codegenNativeComponent\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native-svg\": resolve(\"@tamagui/react-native-svg\"),\n\t\t\t\t\t\t\t\t...!useReactNativeWebLite && { \"react-native\": resolve(\"react-native-web\") }\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-rnw-lite\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tconfig() {\n\t\t\t\t\tif (enableNativeEnv) return {};\n\t\t\t\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options?.useReactNativeWebLite;\n\t\t\t\t\tif (!useReactNativeWebLite) return {};\n\t\t\t\t\tconst include = [];\n\t\t\t\t\tfor (const dependency of [\"memoize-one\", \"@react-native/normalize-color\"]) if (isInstalled(process.cwd(), dependency)) include.push(dependency);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresolve: { alias: tamaguiAliases({ rnwLite: useReactNativeWebLite }) },\n\t\t\t\t\t\tssr: { noExternal: [\n\t\t\t\t\t\t\t/^@tamagui\\//,\n\t\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\t\"react-native\",\n\t\t\t\t\t\t\t\"react-native-web\"\n\t\t\t\t\t\t] },\n\t\t\t\t\t\toptimizeDeps: {\n\t\t\t\t\t\t\texclude: [\"react-native-web\"],\n\t\t\t\t\t\t\tinclude\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-extract\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tasync config(userConf) {\n\t\t\t\t\tawait ensureLoaded();\n\t\t\t\t\tuserConf.optimizeDeps ||= {};\n\t\t\t\t\tuserConf.optimizeDeps.include ||= [];\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"inline-style-prefixer\");\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\"@react-native/normalize-color\"]);\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/animations-css/extras\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\",\n\t\t\t\t\t\t\"@tamagui/sheet/controller\"\n\t\t\t\t\t]);\n\t\t\t\t\tuserConf.resolve ||= {};\n\t\t\t\t\tuserConf.resolve.dedupe ||= [];\n\t\t\t\t\tfor (const id of [\n\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\"\n\t\t\t\t\t]) if (!userConf.resolve.dedupe.includes(id) && isInstalled(userConf.root || process.cwd(), id)) userConf.resolve.dedupe.push(id);\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"@tamagui/core/inject-styles\");\n\t\t\t\t},\n\t\t\t\tasync configResolved(resolvedConfig) {\n\t\t\t\t\tconfig = resolvedConfig;\n\t\t\t\t},\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tconst buildConfig = this.environment.getTopLevelConfig();\n\t\t\t\t\tif (buildConfig.command !== \"build\") return;\n\t\t\t\t\tconst pendingCleanup = buildCleanupPromise;\n\t\t\t\t\tif (pendingCleanup) await pendingCleanup;\n\t\t\t\t\tconst buildEnvironment = this.environment;\n\t\t\t\t\tactiveBuildEnvironments.add(buildEnvironment);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) {\n\t\t\t\t\t\t\tawait tamaguiLoader.loadTamaguiBuildConfig();\n\t\t\t\t\t\t\tbuildEnvironmentPromise ||= (async () => {\n\t\t\t\t\t\t\t\tconst evaluationEnvironment = createRunnableDevEnvironment(TAMAGUI_EVALUATION_ENVIRONMENT, await createOwnedEvaluationConfig(buildConfig, configuredEvaluationPackages), { hot: false });\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.init();\n\t\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.close().catch(() => void 0);\n\t\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment, { owned: true });\n\t\t\t\t\t\t\t})();\n\t\t\t\t\t\t\tawait buildEnvironmentPromise;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tawait releaseBuildEnvironment(buildEnvironment);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\thotUpdate: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\tasync handler(options) {\n\t\t\t\t\t\tif (!tamaguiLoader.isEvaluationDependency(options.file)) {\n\t\t\t\t\t\t\tif (this.environment.name !== \"client\") return;\n\t\t\t\t\t\t\tconst compilerFrontend = getCompilerFrontend(this.environment);\n\t\t\t\t\t\t\tconst source = options.type === \"delete\" ? null : await options.read();\n\t\t\t\t\t\t\tconst affectedModules = /* @__PURE__ */ new Set();\n\t\t\t\t\t\t\tconst compilerHmrRoots = new Set(compilerFrontend.dependentsOf(options.file));\n\t\t\t\t\t\t\tif (compilerHmrRoots.size || compilerFrontend.has(options.file)) compilerHmrRoots.add(options.file);\n\t\t\t\t\t\t\tif (compilerFrontend.has(options.file) || compilerHmrRoots.size > 0) {\n\t\t\t\t\t\t\t\tif (!(await ensureLoaded())?.disable) {\n\t\t\t\t\t\t\t\t\tconst invalidatedIds = options.type === \"delete\" ? (await compilerFrontend.remove(options.file)).invalidatedIds : await compilerFrontend.update({\n\t\t\t\t\t\t\t\t\t\tid: options.file,\n\t\t\t\t\t\t\t\t\t\tsource,\n\t\t\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t\t\t\t...await tamaguiLoader.getCompilerProject(),\n\t\t\t\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\t\t\t\tconst resolution = await this.environment.pluginContainer.resolveId(specifier, importer);\n\t\t\t\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tfor (const invalidatedId of invalidatedIds) {\n\t\t\t\t\t\t\t\t\t\tfor (const module of this.environment.moduleGraph.getModulesByFile(invalidatedId) ?? []) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(module);\n\t\t\t\t\t\t\t\t\t\t\tif (compilerHmrRoots.has(invalidatedId) || module.isSelfAccepting) affectedModules.add(module);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tconst cssId = getAbsoluteVirtualFileId(`${invalidatedId}${virtualExt}`);\n\t\t\t\t\t\t\t\t\t\tconst cssModule = this.environment.moduleGraph.getModuleById(cssId);\n\t\t\t\t\t\t\t\t\t\tif (cssModule) this.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn affectedModules.size ? [...affectedModules] : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst signature = await (async () => {\n\t\t\t\t\t\t\tif (options.type === \"delete\") return getHash(`${options.type}:${options.file}`);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${await options.read()}`);\n\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${options.timestamp}`);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})();\n\t\t\t\t\t\tif (compilerHotUpdateSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotUpdateSignatures.set(options.file, signature);\n\t\t\t\t\t\t\ttamaguiLoader.invalidate(options.file);\n\t\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.environment.name === \"client\" && compilerHotReloadSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotReloadSignatures.set(options.file, signature);\n\t\t\t\t\t\t\tthis.environment.hot.send({\n\t\t\t\t\t\t\t\ttype: \"full-reload\",\n\t\t\t\t\t\t\t\tpath: \"*\",\n\t\t\t\t\t\t\t\ttriggeredBy: options.file\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync watchChange(id) {\n\t\t\t\t\tif (config.command !== \"build\") return;\n\t\t\t\t\tif (tamaguiLoader.isEvaluationDependency(id)) {\n\t\t\t\t\t\ttamaguiLoader.invalidate(id);\n\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync resolveId(source) {\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId, query] = source.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tconst absoluteId = validId.startsWith(config.root) ? validId : getAbsoluteVirtualFileId(validId);\n\t\t\t\t\tif (cssMap.has(absoluteId)) return absoluteId + (query ? `?${query}` : \"\");\n\t\t\t\t},\n\t\t\t\tasync load(id) {\n\t\t\t\t\tif (tamaguiLoader.getTamaguiOptions()?.disable) return;\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\treturn cssMap.get(validId);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-compiler\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\ttransform: {\n\t\t\t\t\torder: \"pre\",\n\t\t\t\t\tasync handler(code, id) {\n\t\t\t\t\t\tif (this.environment?.name === TAMAGUI_EVALUATION_ENVIRONMENT) return;\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) return;\n\t\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\t\tif (isFrameworkAnalysisRequest(id) || !isAppJSXSource(validId) || !/\\.[jt]sx$/.test(validId)) return;\n\t\t\t\t\t\tif ((await ensureLoaded())?.disable || !shouldExtract) return;\n\t\t\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\tpath: validId\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (shouldDisable) return;\n\t\t\t\t\t\tconst evaluationDependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tfor (const dependency of evaluationDependencies) this.addWatchFile(dependency);\n\t\t\t\t\t\tconst compilerProject = await tamaguiLoader.getCompilerProject();\n\t\t\t\t\t\tconst result = await getCompilerFrontend(this.environment).compile({\n\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t...compilerProject,\n\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\t\t\tzeroRuntime: zero !== null\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttransformedModuleIds.add(validId);\n\t\t\t\t\t\tcompilerReports?.set(validId, {\n\t\t\t\t\t\t\tstats: result.plan.stats,\n\t\t\t\t\t\t\tdiagnostics: result.plan.diagnostics\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\t\t\tif (zeroIslandBuild) {\n\t\t\t\t\t\t\tzeroIslandBuild.artifact.setIslandModuleCSS(zeroIslandBuild.islandId, validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (zero) {\n\t\t\t\t\t\t\tconst zeroResult = Static.transformZeroModule({\n\t\t\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\t\tplan: result.plan,\n\t\t\t\t\t\t\t\tconfig: await tamaguiLoader.getTamaguiConfig(),\n\t\t\t\t\t\t\t\tisTamaguiSpecifier: Static.isTamaguiSpecifier,\n\t\t\t\t\t\t\t\tresolveIslandLoader: (specifier) => {\n\t\t\t\t\t\t\t\t\tconst islandId = zero.loaderIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier)));\n\t\t\t\t\t\t\t\t\treturn islandId ? { islandId } : null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tresolveIslandModule: (specifier) => zero.islandModuleIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier))) ?? null\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tzero.transformed.add(validId);\n\t\t\t\t\t\t\tif (zeroResult.erased.exports.length) zero.erasedExports.set(validId, zeroResult.erased.exports);\n\t\t\t\t\t\t\tfor (const violation of zeroResult.violations) {\n\t\t\t\t\t\t\t\tconst { line, column } = Static.offsetToLineColumn(code, violation.span.start);\n\t\t\t\t\t\t\t\tzero.violations.push({\n\t\t\t\t\t\t\t\t\tfile: path.relative(config.root, validId),\n\t\t\t\t\t\t\t\t\tline,\n\t\t\t\t\t\t\t\t\tcolumn,\n\t\t\t\t\t\t\t\t\trule: violation.rule,\n\t\t\t\t\t\t\t\t\tcode: violation.code,\n\t\t\t\t\t\t\t\t\tcomponent: violation.component,\n\t\t\t\t\t\t\t\t\tmessage: violation.message\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (zero.isEnforcing) {\n\t\t\t\t\t\t\t\tStatic.mergeIslandBridges(zero.bridges, zeroResult.bridges);\n\t\t\t\t\t\t\t\tconst moduleCSS = [wrapExtractedCSS(result.plan.css), ...[...zeroResult.bridgeCSS.values()]].filter(Boolean).join(\"\\n\");\n\t\t\t\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\t\t\t\tlet cssImport2 = \"\";\n\t\t\t\t\t\t\t\t\tif (moduleCSS) {\n\t\t\t\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\t\t\t\tcssMap.set(getAbsoluteVirtualFileId(rootRelativeId), moduleCSS);\n\t\t\t\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\t\t\t\tcssImport2 = `\nimport \"${rootRelativeId}\";`;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\tcode: `${zeroResult.output.code}${cssImport2}`,\n\t\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const [identifier, rules] of zeroResult.bridgeCSS) zero.artifact.setBridgeRules(identifier, rules);\n\t\t\t\t\t\t\t\tzero.artifact.setZeroModuleCSS(validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\t\treturn zeroResult.output.changed ? {\n\t\t\t\t\t\t\t\t\tcode: zeroResult.output.code,\n\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst isSSR = isNotClient(this.environment);\n\t\t\t\t\t\tlet cssImport = null;\n\t\t\t\t\t\tif (result.plan.css) {\n\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\tconst absoluteId = getAbsoluteVirtualFileId(rootRelativeId);\n\t\t\t\t\t\t\tcssMap.set(absoluteId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\tif (!isSSR) cssImport = `import \"${rootRelativeId}\";`;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst finalCode = cssImport ? `${result.output.code}\n${cssImport}` : result.output.code;\n\t\t\t\t\t\treturn result.output.changed || cssImport ? {\n\t\t\t\t\t\t\tcode: finalCode,\n\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-zero-runtime\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui zero-runtime] the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tzero.violations.length = 0;\n\t\t\t\t\tzero.transformed.clear();\n\t\t\t\t\tzero.erasedExports.clear();\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tStatic.assertZeroConfigDrivers(tamaguiConfig);\n\t\t\t\t\tzero.artifact.clearGraphs();\n\t\t\t\t\tzero.bridges.clear();\n\t\t\t\t\tzeroHtmlEntries = 0;\n\t\t\t\t\tzero.artifact.setConfigCSS(tamaguiConfig.getCSS());\n\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\tconst islands = zero;\n\t\t\t\t\t\tzeroDevIslands = Promise.all(islands.resolved.islands.map((island) => buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: islands,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir: zeroDevIslandDir(islands),\n\t\t\t\t\t\t\tmode: \"development\"\n\t\t\t\t\t\t})));\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync configureServer(devServer) {\n\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\tconst islandBase = `${zero.cssHref.replace(ZERO_CSS_FILENAME, \"\")}${ZERO_ISLAND_DIRNAME}/`;\n\t\t\t\t\tdevServer.middlewares.use(async (request, response, next) => {\n\t\t\t\t\t\tconst url = (request.url || \"\").split(\"?\")[0];\n\t\t\t\t\t\tif (url !== zero.cssHref && !url.startsWith(islandBase)) return next();\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t\tif (url === zero.cssHref) {\n\t\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/css; charset=utf-8\");\n\t\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\t\tresponse.end(zero.artifact.css());\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst islandId = url.slice(islandBase.length).replace(/\\.js$/, \"\");\n\t\t\t\t\t\tconst file = path.join(zeroDevIslandDir(zero), ZERO_ISLAND_DIRNAME, `${islandId}.js`);\n\t\t\t\t\t\tif (!existsSync(file)) return next();\n\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/javascript; charset=utf-8\");\n\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\tresponse.end(readFileSync(file));\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tbuildEnd(error) {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) importers.set(moduleId, this.getModuleInfo(moduleId)?.importers ?? []);\n\t\t\t\t\tconst escape = Static.erasedExportEscape({\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\ttransformed: zero.transformed,\n\t\t\t\t\t\terasedExports: zero.erasedExports,\n\t\t\t\t\t\timportersOf: importers\n\t\t\t\t\t});\n\t\t\t\t\tif (escape) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\tthrow new Error(escape);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ttransformIndexHtml: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\thandler(html) {\n\t\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\t\tzeroHtmlEntries++;\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\thtml,\n\t\t\t\t\t\t\ttags: [{\n\t\t\t\t\t\t\t\ttag: \"link\",\n\t\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\t\trel: \"stylesheet\",\n\t\t\t\t\t\t\t\t\thref: zero.cssHref\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tinjectTo: \"head\"\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgenerateBundle(_outputOptions, bundle) {\n\t\t\t\t\tif (!zero?.isEnforcing || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) for (const imported of this.getModuleInfo(moduleId)?.importedIds ?? []) {\n\t\t\t\t\t\tconst list = importers.get(imported);\n\t\t\t\t\t\tif (list) list.push(moduleId);\n\t\t\t\t\t\telse importers.set(imported, [moduleId]);\n\t\t\t\t\t}\n\t\t\t\t\tconst entries = [];\n\t\t\t\t\tconst modules = [];\n\t\t\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\t\t\tif (chunk.type !== \"chunk\") continue;\n\t\t\t\t\t\tfor (const moduleId of Object.keys(chunk.modules)) {\n\t\t\t\t\t\t\tmodules.push({\n\t\t\t\t\t\t\t\tid: moduleId,\n\t\t\t\t\t\t\t\timporters: importers.get(moduleId) ?? []\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tif (this.getModuleInfo(moduleId)?.isEntry) entries.push(moduleId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tconst checked = Static.checkZeroGraph({\n\t\t\t\t\t\tentries,\n\t\t\t\t\t\tmodules,\n\t\t\t\t\t\timporterEdges: importers,\n\t\t\t\t\t\troot: zero.resolved.root\n\t\t\t\t\t});\n\t\t\t\t\tzeroReceipt = {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tgraph: \"zero\",\n\t\t\t\t\t\tentries: entries.sort(),\n\t\t\t\t\t\tmoduleCount: modules.length,\n\t\t\t\t\t\ttamaguiModules: checked.tamaguiModules,\n\t\t\t\t\t\tforbidden: checked.forbidden,\n\t\t\t\t\t\tcssArtifact: null,\n\t\t\t\t\t\tidentity: \"\",\n\t\t\t\t\t\tgzip: Object.fromEntries(Object.values(bundle).filter((chunk) => chunk.type === \"chunk\").map((chunk) => [chunk.fileName, gzipSync(Buffer.from(chunk.code), { level: 9 }).length]))\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\tasync closeBundle() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst outDir = path.resolve(config.root, this.environment.config.build.outDir);\n\t\t\t\t\tconst receiptName = `vite-${path.basename(outDir)}`;\n\t\t\t\t\tStatic.writeZeroViolationReport(zero.resolved.outDir, receiptName, {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\tviolations: zero.violations\n\t\t\t\t\t});\n\t\t\t\t\tif (!zero.isEnforcing || zeroBuildFailed) return;\n\t\t\t\t\tif (zero.violations.length) throw new Error(Static.formatZeroViolations(zero.violations));\n\t\t\t\t\tconst islandOutputHashes = {};\n\t\t\t\t\tfor (const island of zero.resolved.islands) {\n\t\t\t\t\t\tconst built = await buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: zero,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir,\n\t\t\t\t\t\t\tmode: config.mode\n\t\t\t\t\t\t});\n\t\t\t\t\t\tislandOutputHashes[island.id] = built.hash;\n\t\t\t\t\t}\n\t\t\t\t\tif (zeroHtmlEntries === 0) throw new Error(`[tamagui zero-runtime] the zero entry graph has no HTML entry, so the one generated CSS artifact ${zero.cssHref} is never loaded. Build a zero entry through its HTML document.`);\n\t\t\t\t\tconst css = finalizeZeroCSS(zero, outDir);\n\t\t\t\t\tconst bridgeManifest = Static.canonicalizeBridgeManifest(Object.fromEntries([...zero.bridges.entries()].sort(([left], [right]) => left < right ? -1 : 1)));\n\t\t\t\t\tconst identityInputs = {\n\t\t\t\t\t\truntimeLiteral: \"zero\",\n\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\tconfigGeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\tcssHash: css.hash,\n\t\t\t\t\t\tcompilerVersion: Static.ZERO_COMPILER_VERSION,\n\t\t\t\t\t\tislandEntries: zero.resolved.islands.map((island) => island.module),\n\t\t\t\t\t\tbridgeManifestHash: Static.hashBridgeManifest(bridgeManifest),\n\t\t\t\t\t\tislandOutputHashes\n\t\t\t\t\t};\n\t\t\t\t\tconst identity = Static.hashZeroIdentity(identityInputs);\n\t\t\t\t\tif (!zeroReceipt) throw new Error(`[tamagui zero-runtime] no module graph was recorded for the zero entry`);\n\t\t\t\t\tzeroReceipt.cssArtifact = {\n\t\t\t\t\t\tpath: css.href,\n\t\t\t\t\t\thash: css.hash\n\t\t\t\t\t};\n\t\t\t\t\tzeroReceipt.identity = identity;\n\t\t\t\t\tStatic.writeZeroGraphReceipt(zero.resolved.outDir, receiptName, zeroReceipt);\n\t\t\t\t\twriteFileSync(path.join(zero.resolved.outDir, `${receiptName}.bridges.json`), `${JSON.stringify({\n\t\t\t\t\t\tidentity,\n\t\t\t\t\t\tidentityInputs,\n\t\t\t\t\t\tcssGzip: css.gzip,\n\t\t\t\t\t\tbridges: bridgeManifest\n\t\t\t\t\t}, null, 2)}\n`);\n\t\t\t\t\tassertZeroGraph(zeroReceipt);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-global-css\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tapply: \"build\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui] outputCSS is set but the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tglobalCSSExpected = tamaguiConfig.getCSS();\n\t\t\t\t},\n\t\t\t\tgenerateBundle() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst failure = Static.checkGlobalCSSArtifact({\n\t\t\t\t\t\tcssPath: globalCSS.cssPath,\n\t\t\t\t\t\texpectedCSS: globalCSSExpected ?? \"\",\n\t\t\t\t\t\tloadedModuleIds: this.getModuleIds(),\n\t\t\t\t\t\timportHint: `Import it once from your client entry: import ${JSON.stringify(relativeImportSpecifier(config.root, globalCSS.cssPath))}`\n\t\t\t\t\t});\n\t\t\t\t\tif (failure) throw new Error(failure.message);\n\t\t\t\t}\n\t\t\t},\n\t\t\ttamaguiNativePlugin(tamaguiOptionsIn)\n\t\t],\n\t\tloader: tamaguiLoader\n\t};\n}\nfunction zeroDevIslandDir(zero) {\n\treturn path.join(zero.resolved.outDir, \"dev\");\n}\nfunction relativeImportSpecifier(from, to) {\n\tconst relative = normalizePath(path.relative(from, to));\n\treturn relative.startsWith(\".\") ? relative : `./${relative}`;\n}\nfunction tamaguiPlugin(options = {}) {\n\treturn createTamaguiPlugins(options).plugins;\n}\n\nexport { createTamaguiPlugins, tamaguiAliases, tamaguiNativePlugin, tamaguiPlugin };"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,0DAA0D,IAAI,IAAI,CAAC,gBAAgB,wBAAwB,CAAC;AAClH,MAAM,6BAA6B;AACnC,MAAM,qBAAqB;AAC3B,MAAM,iCAAiC;AACvC,MAAM,kDAAkD,IAAI,IAAI;CAC/D;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,6BAA6B;AACnC,SAAS,iCAAiC,YAAY;CACrD,MAAM,WAAW,KAAK,KAAK,YAAY,cAAc;CACrD,IAAI,CAAC,WAAW,QAAQ,GAAG,OAAO;CAClC,IAAI;EACH,MAAM,UAAU,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC,CAAC,CAAC;EAC3D,OAAO,KAAK,UAAU,WAAW,IAAI,CAAC,CAAC,SAAS,IAAI,2BAA2B,EAAE;CAClF,QAAQ;EACP,OAAO;CACR;AACD;AACA,SAAS,0BAA0B,UAAU,gBAAgB;CAC5D,IAAI,mBAAmB,MAAM,OAAO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ACb,SAAS;KACV,GAAG,MAAM,CAAC,EAAE;CAChB;KACI,gBAAgB,WAAW;IAC5B;GACD;GACA;IACC,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM,aAAa;KAClB,IAAI,CAAC,aAAa,KAAK,YAAY,SAAS,UAAU;KACtD,MAAM,cAAc,uBAAuB;KAC3C,MAAM,gBAAgB,MAAM,cAAc,iBAAiB;KAC3D,IAAI,CAAC,eAAe,MAAM,IAAI,MAAM,yGAAyG;KAC7I,oBAAoB,cAAc,OAAO;IAC1C;IACA,iBAAiB;KAChB,IAAI,CAAC,aAAa,KAAK,YAAY,SAAS,UAAU;KACtD,MAAM,UAAU,OAAO,uBAAuB;MAC7C,SAAS,UAAU;MACnB,aAAa,qBAAqB;MAClC,iBAAiB,KAAK,aAAa;MACnC,YAAY,iDAAiD,KAAK,UAAU,wBAAwB,OAAO,MAAM,UAAU,OAAO,CAAC;KACpI,CAAC;KACD,IAAI,SAAS,MAAM,IAAI,MAAM,QAAQ,OAAO;IAC7C;GACD;GACA,oBAAoB,gBAAgB;EACrC;EACA,QAAQ;CACT;AACD;AACA,SAAS,iBAAiB,MAAM;CAC/B,OAAO,KAAK,KAAK,KAAK,SAAS,QAAQ,KAAK;AAC7C;AACA,SAAS,wBAAwB,MAAM,IAAI;CAC1C,MAAM,WAAW,cAAc,KAAK,SAAS,MAAM,EAAE,CAAC;CACtD,OAAO,SAAS,WAAW,GAAG,IAAI,WAAW,KAAK;AACnD;AACA,SAAS,cAAc,UAAU,CAAC,GAAG;CACpC,OAAO,qBAAqB,OAAO,CAAC,CAAC;AACtC"}
|
|
1
|
+
{"version":3,"file":"plugin.js","names":[],"sources":["esm/plugin.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync, readFileSync, readdirSync, writeFileSync } from \"node:fs\";\nimport { gzipSync } from \"node:zlib\";\nimport { readFile } from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, isRunnableDevEnvironment, resolveConfig } from \"vite\";\nimport { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from \"./loadTamagui\";\nimport { createCompilerStatsReport, formatCompilerStatsReport } from \"./compilerStats\";\nimport { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from \"./zeroRuntime\";\n\nconst environmentSpecificTransformPluginNames = /* @__PURE__ */ new Set([\"one:compiler\", \"one:compiler-css-to-js\"]);\nconst oneTsconfigPathsPluginName = \"one:tsconfig-paths\";\nconst bareTamaguiPackage = /^@tamagui\\/[^/?#]+(?:[/?#]|$)/;\nconst inlineEvaluationTamaguiPackage = /^@tamagui\\/(?:config|core|slider|web)(?:[/?#]|$)/;\nconst externalizablePackageExtensions = /* @__PURE__ */ new Set([\n\t\"\",\n\t\".js\",\n\t\".mjs\",\n\t\".cjs\"\n]);\nconst TAMAGUI_COMPILER_CONDITION = \"tamagui-compiler\";\nfunction packageDeclaresCompilerCondition(packageDir) {\n\tconst manifest = path.join(packageDir, \"package.json\");\n\tif (!existsSync(manifest)) return false;\n\ttry {\n\t\tconst exports = JSON.parse(readFileSync(manifest, \"utf8\")).exports;\n\t\treturn JSON.stringify(exports ?? null).includes(`\"${TAMAGUI_COMPILER_CONDITION}\"`);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction mergeEvaluationNoExternal(required, userNoExternal) {\n\tif (userNoExternal === true) return true;\n\tif (!userNoExternal) return required;\n\treturn [...required, ...Array.isArray(userNoExternal) ? userNoExternal : [userNoExternal]];\n}\nfunction createEvaluationResolveId(plugin, resolveBarePackage) {\n\tconst resolveId = plugin.resolveId;\n\tif (plugin.name !== oneTsconfigPathsPluginName || !resolveId) return resolveId;\n\tconst handler = typeof resolveId === \"object\" ? resolveId.handler : resolveId;\n\tconst evaluationHandler = function(source, ...args) {\n\t\tif (bareTamaguiPackage.test(source)) {\n\t\t\tconst importer = typeof args[0] === \"string\" ? args[0] : void 0;\n\t\t\treturn resolveBarePackage?.(this.environment, source, importer);\n\t\t}\n\t\treturn Reflect.apply(handler, this, [source, ...args]);\n\t};\n\treturn typeof resolveId === \"object\" ? {\n\t\t...resolveId,\n\t\thandler: evaluationHandler\n\t} : evaluationHandler;\n}\nfunction createEvaluationPluginFacade(plugin, resolveBarePackage) {\n\treturn {\n\t\tname: plugin.name,\n\t\tenforce: plugin.enforce,\n\t\tresolveId: createEvaluationResolveId(plugin, resolveBarePackage),\n\t\tload: plugin.load,\n\t\ttransform: environmentSpecificTransformPluginNames.has(plugin.name) ? void 0 : plugin.transform\n\t};\n}\nconst tamaguiEvaluationPluginNames = /* @__PURE__ */ new Set([\n\t\"tamagui\",\n\t\"tamagui-extract\",\n\t\"tamagui-rnw-lite\"\n]);\nfunction isEvaluationUserPlugin(plugin) {\n\treturn !!(plugin.resolveId || plugin.load || plugin.transform) && plugin.name !== \"alias\" && !plugin.name.startsWith(\"native:\") && !plugin.name.startsWith(\"vite:\") && !plugin.name.startsWith(\"builtin:vite-\") && !tamaguiEvaluationPluginNames.has(plugin.name);\n}\nfunction isEvaluationCorePlugin(plugin) {\n\treturn plugin.name === \"alias\" || plugin.name.startsWith(\"vite:\") || plugin.name.startsWith(\"builtin:vite-\");\n}\nfunction isConfiguredEvaluationPackage(source, packages) {\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn [...packages].some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction getEvaluationPackageName(source) {\n\tif (!source) return;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\tif (!cleanSource || cleanSource.startsWith(\".\") || cleanSource.startsWith(\"#\") || cleanSource.startsWith(\"\\0\") || path.isAbsolute(cleanSource)) return;\n\tif (cleanSource.startsWith(\"@\")) {\n\t\tconst [scope, name2] = cleanSource.split(\"/\");\n\t\treturn scope && name2 ? `${scope}/${name2}` : void 0;\n\t}\n\tconst [name] = cleanSource.split(\"/\");\n\treturn name && !path.extname(name) ? name : void 0;\n}\nfunction scanInstalledTamaguiPackages(root, configuredEvaluationPackages) {\n\tconst packageRequire = createRequire(path.join(root, \"package.json\"));\n\tconst externalizable = /* @__PURE__ */ new Set();\n\tconst compilerCondition = /* @__PURE__ */ new Set();\n\tfor (const modulePath of packageRequire.resolve.paths(\"@tamagui/core\") || []) {\n\t\tconst scopePath = path.join(modulePath, \"@tamagui\");\n\t\tif (!existsSync(scopePath)) continue;\n\t\tfor (const entry of readdirSync(scopePath, { withFileTypes: true })) {\n\t\t\tif (!entry.isDirectory() && !entry.isSymbolicLink()) continue;\n\t\t\tconst packageName = `@tamagui/${entry.name}`;\n\t\t\tif (inlineEvaluationTamaguiPackage.test(packageName) || configuredEvaluationPackages.has(packageName)) continue;\n\t\t\tif (packageDeclaresCompilerCondition(path.join(scopePath, entry.name))) compilerCondition.add(packageName);\n\t\t\telse externalizable.add(packageName);\n\t\t}\n\t}\n\treturn {\n\t\texternalizable,\n\t\tcompilerCondition\n\t};\n}\nfunction getEvaluationResolve(resolve2, root, disableTsconfigPaths, configuredEvaluationPackages) {\n\tconst noExternal = resolve2.noExternal;\n\tconst noExternalFilter = noExternal && noExternal !== true ? createFilter(void 0, noExternal, { resolve: false }) : void 0;\n\tconst isNoExternalPackage = noExternal === true ? () => true : noExternalFilter ? (packageName) => !noExternalFilter(packageName) : () => false;\n\treturn {\n\t\t...resolve2,\n\t\texternal: resolve2.external === true ? true : [.../* @__PURE__ */ new Set([...(resolve2.external || []).filter((packageName) => !isConfiguredEvaluationPackage(packageName, configuredEvaluationPackages)), ...[...scanInstalledTamaguiPackages(root, configuredEvaluationPackages).externalizable].filter((packageName) => !isNoExternalPackage(packageName))])],\n\t\t...disableTsconfigPaths && { tsconfigPaths: false }\n\t};\n}\nfunction isConfiguredExternalPackage(source, external) {\n\tif (external === true) return true;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn external?.some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction createServeEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tlet packageResolver;\n\tconst resolveBarePackage = async (evaluationEnvironment, source, importer) => {\n\t\tconst resolved = await packageResolver?.(evaluationEnvironment, source, importer);\n\t\tif (!resolved) return;\n\t\tconst cleanResolved = resolved.split(/[?#]/, 1)[0];\n\t\tif (!inlineEvaluationTamaguiPackage.test(source) && !isConfiguredEvaluationPackage(source, configuredEvaluationPackages) && isConfiguredExternalPackage(source, evaluationEnvironment.config.resolve.external)) return {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t\tif (inlineEvaluationTamaguiPackage.test(source) || isConfiguredEvaluationPackage(source, configuredEvaluationPackages) || !normalizePath(cleanResolved).includes(\"/node_modules/\") || !externalizablePackageExtensions.has(path.extname(cleanResolved))) return resolved;\n\t\treturn {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t};\n\tconst plugins = environment.plugins.flatMap((plugin) => {\n\t\tif (isEvaluationCorePlugin(plugin)) return [plugin];\n\t\tif (isEvaluationUserPlugin(plugin)) return [createEvaluationPluginFacade(plugin, resolveBarePackage)];\n\t\treturn [];\n\t});\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst evaluationConfig = {\n\t\t...config,\n\t\tenvironments: {\n\t\t\t...config.environments,\n\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\t\t...environment,\n\t\t\t\tplugins,\n\t\t\t\tresolve: resolve2\n\t\t\t}\n\t\t}\n\t};\n\tpackageResolver = createIdResolver(evaluationConfig);\n\treturn evaluationConfig;\n}\nasync function createOwnedEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tconst plugins = environment.plugins.filter(isEvaluationUserPlugin).map((plugin) => createEvaluationPluginFacade(plugin));\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst { createEnvironment: _createEnvironment, ...dev } = environment.dev;\n\treturn resolveConfig({\n\t\tconfigFile: false,\n\t\troot: config.root,\n\t\tmode: config.mode,\n\t\tlogLevel: config.logLevel,\n\t\tplugins,\n\t\tdefine: environment.define,\n\t\tresolve: resolve2,\n\t\tenvironments: { [TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\tconsumer: environment.consumer,\n\t\t\tkeepProcessEnv: environment.keepProcessEnv,\n\t\t\tdefine: environment.define,\n\t\t\tresolve: resolve2,\n\t\t\toptimizeDeps: environment.optimizeDeps,\n\t\t\tdev: {\n\t\t\t\t...dev,\n\t\t\t\tmoduleRunnerTransform: true\n\t\t\t}\n\t\t} }\n\t}, \"serve\", config.mode);\n}\nconst _pluginRequire = createRequire(typeof __filename === \"string\" ? __filename : fileURLToPath(import.meta.url));\nconst resolve = (name) => _pluginRequire.resolve(name);\nconst normalizePath = (value) => value.replace(/\\\\/g, \"/\");\nconst PLUGIN_INSTANCE_KEY = \"__tamagui_vite_plugin_instance__\";\nfunction reportCompilerStats(root, reports) {\n\tconst report = createCompilerStatsReport(root, reports);\n\tconsole.info(formatCompilerStatsReport(report, process.env.TAMAGUI_COMPILER_STATS === \"verbose\"));\n\tif (process.env.TAMAGUI_COMPILER_STATS_FILE) {\n\t\tconst outputPath = path.resolve(root, process.env.TAMAGUI_COMPILER_STATS_FILE);\n\t\twriteFileSync(outputPath, `${JSON.stringify(report, null, 2)}\n`);\n\t\tconsole.info(`[tamagui] compiler stats JSON: ${path.relative(process.cwd(), outputPath)}`);\n\t}\n}\nfunction getNextPluginInstanceId() {\n\tconst next = (globalThis[PLUGIN_INSTANCE_KEY] || 0) + 1;\n\tglobalThis[PLUGIN_INSTANCE_KEY] = next;\n\treturn next;\n}\nfunction isInstalled(projectRoot, id) {\n\ttry {\n\t\tcreateRequire(path.join(projectRoot, \"package.json\")).resolve(id);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction addIfInstalled(userConf, projectRoot, ids) {\n\tconst root = projectRoot || process.cwd();\n\tuserConf.optimizeDeps ||= {};\n\tuserConf.optimizeDeps.include ||= [];\n\tfor (const id of ids) if (!userConf.optimizeDeps.include.includes(id) && isInstalled(root, id)) userConf.optimizeDeps.include.push(id);\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) aliases.push({\n\t\tfind: \"react-native-svg\",\n\t\treplacement: resolve(\"@tamagui/react-native-svg\")\n\t});\n\tif (options.rnwLite) {\n\t\tconst rnwlBase = path.dirname(resolve(\"@tamagui/react-native-web-lite/package.json\"));\n\t\tconst rnwl = normalizePath(path.join(rnwlBase, options.rnwLite === \"without-animated\" ? \"dist/esm/without-animated.mjs\" : \"dist/esm/index.mjs\"));\n\t\tconst rnwlFlatModules = readdirSync(path.join(rnwlBase, \"dist/esm\")).filter((file) => file.endsWith(\".mjs\")).map((file) => file.slice(0, -4)).filter((name) => /^[A-Za-z0-9_]+$/.test(name));\n\t\taliases.push({\n\t\t\tfind: new RegExp(`^react-native(?:-web)?\\\\/dist\\\\/(?:exports|modules)\\\\/(?:.*\\\\/)?(${rnwlFlatModules.join(\"|\")})$`),\n\t\t\treplacement: `${normalizePath(rnwlBase)}/dist/esm/$1.mjs`\n\t\t}, {\n\t\t\tfind: /^react-native$/,\n\t\t\treplacement: rnwl\n\t\t}, {\n\t\t\tfind: /^react-native\\/(Libraries\\/Utilities\\/codegenNativeComponent|Libraries\\/Utilities\\/codegenNativeCommand)$/,\n\t\t\treplacement: `${rnwlBase}/$1`\n\t\t}, {\n\t\t\tfind: \"react-native/package.json\",\n\t\t\treplacement: resolve(\"@tamagui/react-native-web-lite/package.json\")\n\t\t}, {\n\t\t\tfind: /^react-native-web$/,\n\t\t\treplacement: rnwl\n\t\t});\n\t}\n\treturn aliases;\n}\nfunction createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {\n\tlet compilerFrontend = new Static.CompilerFrontend();\n\tconst projectDependencies = /* @__PURE__ */ new Set();\n\tlet root = nativeContext?.root || process.cwd();\n\tlet projectPromise = null;\n\tlet nativeOptions = null;\n\tlet rebuildProject = false;\n\tlet generation = 0;\n\tconst loadProject = async (resolveModule) => {\n\t\tif (projectPromise) return projectPromise;\n\t\tconst shouldRebuild = rebuildProject;\n\t\trebuildProject = false;\n\t\tconst guarded = (async () => {\n\t\t\tprojectDependencies.clear();\n\t\t\tconst loadedOptions = await Static.loadTamaguiBuildConfigAsync({\n\t\t\t\t...tamaguiOptionsIn,\n\t\t\t\troot,\n\t\t\t\tplatform: \"native\",\n\t\t\t\toutputCSS: void 0\n\t\t\t});\n\t\t\tconst options = {\n\t\t\t\t...loadedOptions,\n\t\t\t\troot,\n\t\t\t\toutputCSS: void 0\n\t\t\t};\n\t\t\tnativeOptions = options;\n\t\t\tfor (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));\n\t\t\tif (options.disable || options.disableExtraction) return null;\n\t\t\tconst project = await Static.loadCompilerProject({\n\t\t\t\troot,\n\t\t\t\ttarget: \"native\",\n\t\t\t\toptions,\n\t\t\t\trebuild: shouldRebuild,\n\t\t\t\tgeneration: `vite-native:${generation + 1}`,\n\t\t\t\tmissingProjectMessage: \"Unable to load the Tamagui project for Vite native compilation\",\n\t\t\t\tasync resolveComponents(moduleNames) {\n\t\t\t\t\treturn Promise.all(moduleNames.map(async (moduleName) => {\n\t\t\t\t\t\tconst id = await resolveModule(moduleName);\n\t\t\t\t\t\tprojectDependencies.add(normalizePath(id.split(/[?#]/, 1)[0]));\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tmoduleName,\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t};\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (const dependency of project.projectInfo.dependencies ?? []) projectDependencies.add(normalizePath(dependency.split(/[?#]/, 1)[0]));\n\t\t\tconst configPath = options.config || \"tamagui.config.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(configPath) ? configPath : path.resolve(root, configPath)));\n\t\t\tconst buildFile = options.buildFile || \"tamagui.build.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(buildFile) ? buildFile : path.resolve(root, buildFile)));\n\t\t\tif (options.themeBuilder?.input) projectDependencies.add(normalizePath(path.isAbsolute(options.themeBuilder.input) ? options.themeBuilder.input : path.resolve(root, options.themeBuilder.input)));\n\t\t\tgeneration++;\n\t\t\treturn project;\n\t\t})().catch((error) => {\n\t\t\tif (projectPromise === guarded) projectPromise = null;\n\t\t\trebuildProject = true;\n\t\t\tthrow error;\n\t\t});\n\t\tprojectPromise = guarded;\n\t\treturn projectPromise;\n\t};\n\treturn {\n\t\tname: \"tamagui-native-compiler\",\n\t\tenforce: \"post\",\n\t\tconfigResolved(config) {\n\t\t\troot = config.root;\n\t\t},\n\t\twatchChange(id) {\n\t\t\tif (projectDependencies.has(normalizePath(id.split(/[?#]/, 1)[0]))) {\n\t\t\t\trebuildProject = true;\n\t\t\t\tprojectPromise = null;\n\t\t\t\tcompilerFrontend = new Static.CompilerFrontend();\n\t\t\t}\n\t\t},\n\t\ttransform: {\n\t\t\torder: \"pre\",\n\t\t\tasync handler(code, id) {\n\t\t\t\tconst environmentName = nativeContext?.platform || this.environment?.name;\n\t\t\t\tif (environmentName !== \"ios\" && environmentName !== \"android\") return;\n\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\tif (!validId || !/\\.[jt]sx$/.test(validId) || normalizePath(validId).split(\"/\").includes(\"node_modules\")) return;\n\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\tsource: code,\n\t\t\t\t\tpath: validId\n\t\t\t\t});\n\t\t\t\tif (shouldDisable) return;\n\t\t\t\tconst resolve2 = async (specifier, importer) => {\n\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t} : null;\n\t\t\t\t};\n\t\t\t\tconst project = await loadProject(async (specifier) => {\n\t\t\t\t\tconst resolution = await resolve2(specifier, path.join(root, \"__tamagui_native.tsx\"));\n\t\t\t\t\tif (!resolution) throw new Error(`Unable to resolve native compiler component ${specifier}`);\n\t\t\t\t\treturn resolution.id;\n\t\t\t\t});\n\t\t\t\tif (!project) return;\n\t\t\t\tfor (const dependency of projectDependencies) this.addWatchFile(dependency);\n\t\t\t\tconst result = await compilerFrontend.compile({\n\t\t\t\t\tid: validId,\n\t\t\t\t\tsource: code,\n\t\t\t\t\troot,\n\t\t\t\t\ttarget: \"native\",\n\t\t\t\t\tproject,\n\t\t\t\t\tresolve: resolve2,\n\t\t\t\t\tevaluate: async ({ id: moduleId }) => nativeOptions ? Static.evaluateComponentModule(nativeOptions, moduleId) : null,\n\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\tif (result.plan.css) throw new Error(`Native Tamagui compilation produced unexpected CSS for ${validId}`);\n\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\tmap: result.output.map\n\t\t\t\t} : void 0;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction tamaguiNativePlugin(tamaguiOptionsIn = {}) {\n\tconst plugin = createTamaguiNativePlugin(tamaguiOptionsIn);\n\tconst api = plugin.api && typeof plugin.api === \"object\" ? plugin.api : {};\n\treturn {\n\t\t...plugin,\n\t\tapi: {\n\t\t\t...api,\n\t\t\tvxrnNative: (context) => createTamaguiNativePlugin(tamaguiOptionsIn, context)\n\t\t}\n\t};\n}\nfunction createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) => css, zeroIslandBuild, ...tamaguiOptionsIn } = {}) {\n\tlet shouldExtract = !tamaguiOptionsIn.disableExtraction;\n\tconst enableNativeEnv = !!globalThis.__vxrnEnableNativeEnv;\n\tconst tamaguiLoader = createViteTamaguiLoader(tamaguiOptionsIn);\n\tconst compilerFrontends = /* @__PURE__ */ new WeakMap();\n\tconst getCompilerFrontend = (environment) => {\n\t\tlet frontend = compilerFrontends.get(environment);\n\t\tif (!frontend) {\n\t\t\tfrontend = new Static.CompilerFrontend();\n\t\t\tcompilerFrontends.set(environment, frontend);\n\t\t}\n\t\treturn frontend;\n\t};\n\tconst pluginInstanceId = getNextPluginInstanceId();\n\tconst configuredEvaluationPackages = /* @__PURE__ */ new Set();\n\tlet buildEnvironmentPromise = null;\n\tlet buildCleanupPromise = null;\n\tconst activeBuildEnvironments = /* @__PURE__ */ new Set();\n\tconst compilerReports = process.env.TAMAGUI_COMPILER_STATS || process.env.TAMAGUI_COMPILER_STATS_FILE ? /* @__PURE__ */ new Map() : null;\n\tconst releaseBuildEnvironment = async (environment) => {\n\t\tif (!activeBuildEnvironments.delete(environment) || activeBuildEnvironments.size) return;\n\t\tif (compilerReports?.size) reportCompilerStats(config?.root ?? process.cwd(), compilerReports);\n\t\tconst currentCleanup = Promise.resolve().then(async () => {\n\t\t\ttry {\n\t\t\t\tawait tamaguiLoader.cleanup();\n\t\t\t} finally {\n\t\t\t\tbuildEnvironmentPromise = null;\n\t\t\t}\n\t\t});\n\t\tbuildCleanupPromise = currentCleanup;\n\t\ttry {\n\t\t\tawait currentCleanup;\n\t\t} finally {\n\t\t\tif (buildCleanupPromise === currentCleanup) buildCleanupPromise = null;\n\t\t}\n\t};\n\tconst extensions = [\n\t\t`.web.mjs`,\n\t\t`.web.js`,\n\t\t`.web.jsx`,\n\t\t`.web.ts`,\n\t\t`.web.tsx`,\n\t\t\".mjs\",\n\t\t\".js\",\n\t\t\".mts\",\n\t\t\".ts\",\n\t\t\".jsx\",\n\t\t\".tsx\",\n\t\t\".json\"\n\t];\n\tconst getEvaluationEnvironmentOptions = (resolvedRoot, userNoExternal) => ({\n\t\tconsumer: \"server\",\n\t\tkeepProcessEnv: true,\n\t\tdefine: {\n\t\t\t\"process.env.IS_STATIC\": JSON.stringify(\"is_static\"),\n\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(false),\n\t\t\t\"process.env.TAMAGUI_IS_SERVER\": JSON.stringify(true),\n\t\t\t\"process.env.TAMAGUI_TARGET\": JSON.stringify(\"web\"),\n\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": JSON.stringify(TAMAGUI_EVALUATION_ENVIRONMENT),\n\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"\"),\n\t\t\t\"process.env.VITE_ENVIRONMENT\": JSON.stringify(\"ssr\"),\n\t\t\t\"process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL\": JSON.stringify(\"1\")\n\t\t},\n\t\tresolve: {\n\t\t\tconditions: [TAMAGUI_COMPILER_CONDITION, ...defaultClientConditions],\n\t\t\tmainFields: [...defaultClientMainFields],\n\t\t\tnoExternal: mergeEvaluationNoExternal([\n\t\t\t\tinlineEvaluationTamaguiPackage,\n\t\t\t\t...configuredEvaluationPackages,\n\t\t\t\t...scanInstalledTamaguiPackages(resolvedRoot, configuredEvaluationPackages).compilerCondition\n\t\t\t], userNoExternal),\n\t\t\textensions\n\t\t},\n\t\tdev: {\n\t\t\tcreateEnvironment(name, resolved) {\n\t\t\t\treturn createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages));\n\t\t\t},\n\t\t\tmoduleRunnerTransform: true\n\t\t}\n\t});\n\ttamaguiLoader.loadTamaguiBuildConfig();\n\tconst ensureLoaded = async () => {\n\t\tconst promise = tamaguiLoader.getLoadPromise();\n\t\tif (promise) await promise;\n\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\tif (options) shouldExtract = !options.disableExtraction;\n\t\treturn options;\n\t};\n\tconst getHash = (input) => createHash(\"sha1\").update(input).digest(\"base64\");\n\tconst cssMap = /* @__PURE__ */ new Map();\n\tconst transformedModuleIds = /* @__PURE__ */ new Set();\n\tconst compilerHotUpdateSignatures = /* @__PURE__ */ new Map();\n\tconst compilerHotReloadSignatures = /* @__PURE__ */ new Map();\n\tlet config;\n\tlet server;\n\tlet zero = null;\n\tlet zeroReceipt = null;\n\tlet zeroBuildFailed = false;\n\tlet globalCSS = null;\n\tlet globalCSSExpected = null;\n\tlet zeroHtmlEntries = 0;\n\tlet zeroDevIslands = Promise.resolve();\n\tconst virtualExt = `.tamagui.css`;\n\tconst getAbsoluteVirtualFileId = (filePath) => {\n\t\tif (filePath.startsWith(config.root)) return filePath;\n\t\treturn normalizePath(path.join(config.root, filePath));\n\t};\n\tconst isAppJSXSource = (filePath) => {\n\t\tif (!/\\.[jt]sx$/.test(filePath)) return false;\n\t\tconst relative = path.relative(config.root, filePath);\n\t\treturn relative !== \"\" && relative !== \"..\" && !relative.startsWith(`..${path.sep}`) && !relative.split(path.sep).includes(\"node_modules\");\n\t};\n\tconst isFrameworkAnalysisRequest = (id) => id.includes(\"__react-router-build-client-route\");\n\tfunction isNotClient(environment) {\n\t\treturn environment?.name && environment.name !== \"client\";\n\t}\n\tfunction isNative(environment) {\n\t\treturn environment?.name && (environment.name === \"ios\" || environment.name === \"android\");\n\t}\n\tfunction invalidateCompilerModules() {\n\t\tif (server) {\n\t\t\tconst ids = /* @__PURE__ */ new Set([...transformedModuleIds, ...cssMap.keys()]);\n\t\t\tfor (const environment of Object.values(server.environments)) {\n\t\t\t\tif (environment.name === TAMAGUI_EVALUATION_ENVIRONMENT) continue;\n\t\t\t\tfor (const id of ids) {\n\t\t\t\t\tconst modules = environment.moduleGraph.getModulesByFile(id);\n\t\t\t\t\tif (!modules) continue;\n\t\t\t\t\tfor (const module of modules) environment.moduleGraph.invalidateModule(module);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcssMap.clear();\n\t}\n\treturn {\n\t\tplugins: [\n\t\t\t{\n\t\t\t\tname: \"tamagui\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tconfigureServer(_server) {\n\t\t\t\t\tserver = _server;\n\t\t\t\t\tconst evaluationEnvironment = server.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\t\t\t\t\tif (!isRunnableDevEnvironment(evaluationEnvironment)) throw new Error(`The ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`);\n\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment);\n\t\t\t\t},\n\t\t\t\tasync buildEnd() {\n\t\t\t\t\tawait releaseBuildEnvironment(this.environment);\n\t\t\t\t},\n\t\t\t\tasync config(userConfig, env) {\n\t\t\t\t\tconst options = await ensureLoaded();\n\t\t\t\t\tif (!options) throw new Error(`No tamagui options loaded`);\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options.useReactNativeWebLite;\n\t\t\t\t\tfor (const source of [options.config, ...options.components || []]) {\n\t\t\t\t\t\tconst packageName = getEvaluationPackageName(source);\n\t\t\t\t\t\tif (packageName) configuredEvaluationPackages.add(packageName);\n\t\t\t\t\t}\n\t\t\t\t\tconst resolvedRoot = userConfig.root ? path.resolve(userConfig.root) : process.cwd();\n\t\t\t\t\tzero = zeroIslandBuild ? null : await createZeroRuntimeController(options, resolvedRoot, userConfig.base || \"/\");\n\t\t\t\t\tglobalCSS = zeroIslandBuild || env.command !== \"build\" ? null : Static.resolveGlobalCSSOwnership(options, resolvedRoot);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tenvPrefix: [\"TAMAGUI_\"],\n\t\t\t\t\t\tenvironments: {\n\t\t\t\t\t\t\tclient: { define: {\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(true),\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": \"\\\"client\\\"\",\n\t\t\t\t\t\t\t\t...zero?.isEnforcing && { \"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"zero\") },\n\t\t\t\t\t\t\t\t...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") }\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\tssr: { define: { ...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") } } },\n\t\t\t\t\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: getEvaluationEnvironmentOptions(resolvedRoot, userConfig.environments?.[TAMAGUI_EVALUATION_ENVIRONMENT]?.resolve?.noExternal)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefine: {\n\t\t\t\t\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\t\t\t\t_frameTimestamp: void 0,\n\t\t\t\t\t\t\t_WORKLET: false,\n\t\t\t\t\t\t\t__DEV__: `${env.mode === \"development\"}`,\n\t\t\t\t\t\t\t\"process.env.NODE_ENV\": JSON.stringify(process.env.NODE_ENV || env.mode),\n\t\t\t\t\t\t\t\"process.env.ENABLE_RSC\": JSON.stringify(process.env.ENABLE_RSC || \"\"),\n\t\t\t\t\t\t\t\"process.env.ENABLE_STEPS\": JSON.stringify(process.env.ENABLE_STEPS || \"\"),\n\t\t\t\t\t\t\t\"process.env.IS_STATIC\": JSON.stringify(false),\n\t\t\t\t\t\t\t...env.mode === \"production\" && { \"process.env.TAMAGUI_OPTIMIZE_THEMES\": JSON.stringify(true) }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tresolve: disableResolveConfig || enableNativeEnv ? {} : {\n\t\t\t\t\t\t\textensions,\n\t\t\t\t\t\t\talias: { ...options.platform !== \"native\" && {\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Renderer/shims/ReactFabric\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Utilities/codegenNativeComponent\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native-svg\": resolve(\"@tamagui/react-native-svg\"),\n\t\t\t\t\t\t\t\t...!useReactNativeWebLite && { \"react-native\": resolve(\"react-native-web\") }\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-rnw-lite\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tconfig() {\n\t\t\t\t\tif (enableNativeEnv) return {};\n\t\t\t\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options?.useReactNativeWebLite;\n\t\t\t\t\tif (!useReactNativeWebLite) return {};\n\t\t\t\t\tconst include = [];\n\t\t\t\t\tfor (const dependency of [\"memoize-one\", \"@react-native/normalize-color\"]) if (isInstalled(process.cwd(), dependency)) include.push(dependency);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresolve: { alias: tamaguiAliases({ rnwLite: useReactNativeWebLite }) },\n\t\t\t\t\t\tssr: { noExternal: [\n\t\t\t\t\t\t\t/^@tamagui\\//,\n\t\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\t\"react-native\",\n\t\t\t\t\t\t\t\"react-native-web\"\n\t\t\t\t\t\t] },\n\t\t\t\t\t\toptimizeDeps: {\n\t\t\t\t\t\t\texclude: [\"react-native-web\"],\n\t\t\t\t\t\t\tinclude\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-extract\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tasync config(userConf) {\n\t\t\t\t\tawait ensureLoaded();\n\t\t\t\t\tuserConf.optimizeDeps ||= {};\n\t\t\t\t\tuserConf.optimizeDeps.include ||= [];\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"inline-style-prefixer\");\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\"@react-native/normalize-color\"]);\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/animations-css/extras\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\",\n\t\t\t\t\t\t\"@tamagui/sheet/controller\"\n\t\t\t\t\t]);\n\t\t\t\t\tuserConf.resolve ||= {};\n\t\t\t\t\tuserConf.resolve.dedupe ||= [];\n\t\t\t\t\tfor (const id of [\n\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\"\n\t\t\t\t\t]) if (!userConf.resolve.dedupe.includes(id) && isInstalled(userConf.root || process.cwd(), id)) userConf.resolve.dedupe.push(id);\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"@tamagui/core/inject-styles\");\n\t\t\t\t},\n\t\t\t\tasync configResolved(resolvedConfig) {\n\t\t\t\t\tconfig = resolvedConfig;\n\t\t\t\t},\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tconst buildConfig = this.environment.getTopLevelConfig();\n\t\t\t\t\tif (buildConfig.command !== \"build\") return;\n\t\t\t\t\tconst pendingCleanup = buildCleanupPromise;\n\t\t\t\t\tif (pendingCleanup) await pendingCleanup;\n\t\t\t\t\tconst buildEnvironment = this.environment;\n\t\t\t\t\tactiveBuildEnvironments.add(buildEnvironment);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) {\n\t\t\t\t\t\t\tawait tamaguiLoader.loadTamaguiBuildConfig();\n\t\t\t\t\t\t\tbuildEnvironmentPromise ||= (async () => {\n\t\t\t\t\t\t\t\tconst evaluationEnvironment = createRunnableDevEnvironment(TAMAGUI_EVALUATION_ENVIRONMENT, await createOwnedEvaluationConfig(buildConfig, configuredEvaluationPackages), { hot: false });\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.init();\n\t\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.close().catch(() => void 0);\n\t\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment, { owned: true });\n\t\t\t\t\t\t\t})();\n\t\t\t\t\t\t\tawait buildEnvironmentPromise;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tawait releaseBuildEnvironment(buildEnvironment);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\thotUpdate: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\tasync handler(options) {\n\t\t\t\t\t\tif (!tamaguiLoader.isEvaluationDependency(options.file)) {\n\t\t\t\t\t\t\tif (this.environment.name !== \"client\") return;\n\t\t\t\t\t\t\tconst compilerFrontend = getCompilerFrontend(this.environment);\n\t\t\t\t\t\t\tconst source = options.type === \"delete\" ? null : await options.read();\n\t\t\t\t\t\t\tconst affectedModules = /* @__PURE__ */ new Set();\n\t\t\t\t\t\t\tconst compilerHmrRoots = new Set(compilerFrontend.dependentsOf(options.file));\n\t\t\t\t\t\t\tif (compilerHmrRoots.size || compilerFrontend.has(options.file)) compilerHmrRoots.add(options.file);\n\t\t\t\t\t\t\tif (compilerFrontend.has(options.file) || compilerHmrRoots.size > 0) {\n\t\t\t\t\t\t\t\tif (!(await ensureLoaded())?.disable) {\n\t\t\t\t\t\t\t\t\tconst invalidatedIds = options.type === \"delete\" ? (await compilerFrontend.remove(options.file)).invalidatedIds : await compilerFrontend.update({\n\t\t\t\t\t\t\t\t\t\tid: options.file,\n\t\t\t\t\t\t\t\t\t\tsource,\n\t\t\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t\t\t\t...await tamaguiLoader.getCompilerProject(),\n\t\t\t\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\t\t\t\tconst resolution = await this.environment.pluginContainer.resolveId(specifier, importer);\n\t\t\t\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tfor (const invalidatedId of invalidatedIds) {\n\t\t\t\t\t\t\t\t\t\tfor (const module of this.environment.moduleGraph.getModulesByFile(invalidatedId) ?? []) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(module);\n\t\t\t\t\t\t\t\t\t\t\tif (compilerHmrRoots.has(invalidatedId) || module.isSelfAccepting) affectedModules.add(module);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tconst cssId = getAbsoluteVirtualFileId(`${invalidatedId}${virtualExt}`);\n\t\t\t\t\t\t\t\t\t\tconst cssModule = this.environment.moduleGraph.getModuleById(cssId);\n\t\t\t\t\t\t\t\t\t\tif (cssModule) this.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn affectedModules.size ? [...affectedModules] : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst signature = await (async () => {\n\t\t\t\t\t\t\tif (options.type === \"delete\") return getHash(`${options.type}:${options.file}`);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${await options.read()}`);\n\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${options.timestamp}`);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})();\n\t\t\t\t\t\tif (compilerHotUpdateSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotUpdateSignatures.set(options.file, signature);\n\t\t\t\t\t\t\ttamaguiLoader.invalidate(options.file);\n\t\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.environment.name === \"client\" && compilerHotReloadSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotReloadSignatures.set(options.file, signature);\n\t\t\t\t\t\t\tthis.environment.hot.send({\n\t\t\t\t\t\t\t\ttype: \"full-reload\",\n\t\t\t\t\t\t\t\tpath: \"*\",\n\t\t\t\t\t\t\t\ttriggeredBy: options.file\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync watchChange(id) {\n\t\t\t\t\tif (config.command !== \"build\") return;\n\t\t\t\t\tif (tamaguiLoader.isEvaluationDependency(id)) {\n\t\t\t\t\t\ttamaguiLoader.invalidate(id);\n\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync resolveId(source) {\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId, query] = source.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tconst absoluteId = validId.startsWith(config.root) ? validId : getAbsoluteVirtualFileId(validId);\n\t\t\t\t\tif (cssMap.has(absoluteId)) return absoluteId + (query ? `?${query}` : \"\");\n\t\t\t\t},\n\t\t\t\tasync load(id) {\n\t\t\t\t\tif (tamaguiLoader.getTamaguiOptions()?.disable) return;\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\treturn cssMap.get(validId);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-compiler\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\ttransform: {\n\t\t\t\t\torder: \"pre\",\n\t\t\t\t\tasync handler(code, id) {\n\t\t\t\t\t\tif (this.environment?.name === TAMAGUI_EVALUATION_ENVIRONMENT) return;\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) return;\n\t\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\t\tif (isFrameworkAnalysisRequest(id) || !isAppJSXSource(validId) || !/\\.[jt]sx$/.test(validId)) return;\n\t\t\t\t\t\tif ((await ensureLoaded())?.disable || !shouldExtract) return;\n\t\t\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\tpath: validId\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (shouldDisable) return;\n\t\t\t\t\t\tconst evaluationDependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tfor (const dependency of evaluationDependencies) this.addWatchFile(dependency);\n\t\t\t\t\t\tconst compilerProject = await tamaguiLoader.getCompilerProject();\n\t\t\t\t\t\tconst result = await getCompilerFrontend(this.environment).compile({\n\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t...compilerProject,\n\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\t\t\tzeroRuntime: zero !== null\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tevaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),\n\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttransformedModuleIds.add(validId);\n\t\t\t\t\t\tcompilerReports?.set(validId, {\n\t\t\t\t\t\t\tstats: result.plan.stats,\n\t\t\t\t\t\t\tdiagnostics: result.plan.diagnostics\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\t\t\tif (zeroIslandBuild) {\n\t\t\t\t\t\t\tzeroIslandBuild.artifact.setIslandModuleCSS(zeroIslandBuild.islandId, validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (zero) {\n\t\t\t\t\t\t\tconst zeroResult = Static.transformZeroModule({\n\t\t\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\t\tplan: result.plan,\n\t\t\t\t\t\t\t\tconfig: await tamaguiLoader.getTamaguiConfig(),\n\t\t\t\t\t\t\t\tisTamaguiSpecifier: Static.isTamaguiSpecifier,\n\t\t\t\t\t\t\t\tresolveIslandLoader: (specifier) => {\n\t\t\t\t\t\t\t\t\tconst islandId = zero.loaderIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier)));\n\t\t\t\t\t\t\t\t\treturn islandId ? { islandId } : null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tresolveIslandModule: (specifier) => zero.islandModuleIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier))) ?? null\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tzero.transformed.add(validId);\n\t\t\t\t\t\t\tif (zeroResult.erased.exports.length) zero.erasedExports.set(validId, zeroResult.erased.exports);\n\t\t\t\t\t\t\tfor (const violation of zeroResult.violations) {\n\t\t\t\t\t\t\t\tconst { line, column } = Static.offsetToLineColumn(code, violation.span.start);\n\t\t\t\t\t\t\t\tzero.violations.push({\n\t\t\t\t\t\t\t\t\tfile: path.relative(config.root, validId),\n\t\t\t\t\t\t\t\t\tline,\n\t\t\t\t\t\t\t\t\tcolumn,\n\t\t\t\t\t\t\t\t\trule: violation.rule,\n\t\t\t\t\t\t\t\t\tcode: violation.code,\n\t\t\t\t\t\t\t\t\tcomponent: violation.component,\n\t\t\t\t\t\t\t\t\tmessage: violation.message\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (zero.isEnforcing) {\n\t\t\t\t\t\t\t\tStatic.mergeIslandBridges(zero.bridges, zeroResult.bridges);\n\t\t\t\t\t\t\t\tconst moduleCSS = [wrapExtractedCSS(result.plan.css), ...[...zeroResult.bridgeCSS.values()]].filter(Boolean).join(\"\\n\");\n\t\t\t\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\t\t\t\tlet cssImport2 = \"\";\n\t\t\t\t\t\t\t\t\tif (moduleCSS) {\n\t\t\t\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\t\t\t\tcssMap.set(getAbsoluteVirtualFileId(rootRelativeId), moduleCSS);\n\t\t\t\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\t\t\t\tcssImport2 = `\nimport \"${rootRelativeId}\";`;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\tcode: `${zeroResult.output.code}${cssImport2}`,\n\t\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const [identifier, rules] of zeroResult.bridgeCSS) zero.artifact.setBridgeRules(identifier, rules);\n\t\t\t\t\t\t\t\tzero.artifact.setZeroModuleCSS(validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\t\treturn zeroResult.output.changed ? {\n\t\t\t\t\t\t\t\t\tcode: zeroResult.output.code,\n\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst isSSR = isNotClient(this.environment);\n\t\t\t\t\t\tlet cssImport = null;\n\t\t\t\t\t\tif (result.plan.css) {\n\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\tconst absoluteId = getAbsoluteVirtualFileId(rootRelativeId);\n\t\t\t\t\t\t\tcssMap.set(absoluteId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\tif (!isSSR) cssImport = `import \"${rootRelativeId}\";`;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst finalCode = cssImport ? `${result.output.code}\n${cssImport}` : result.output.code;\n\t\t\t\t\t\treturn result.output.changed || cssImport ? {\n\t\t\t\t\t\t\tcode: finalCode,\n\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-zero-runtime\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui zero-runtime] the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tzero.violations.length = 0;\n\t\t\t\t\tzero.transformed.clear();\n\t\t\t\t\tzero.erasedExports.clear();\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tStatic.assertZeroConfigDrivers(tamaguiConfig);\n\t\t\t\t\tzero.artifact.clearGraphs();\n\t\t\t\t\tzero.bridges.clear();\n\t\t\t\t\tzeroHtmlEntries = 0;\n\t\t\t\t\tzero.artifact.setConfigCSS(tamaguiConfig.getCSS());\n\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\tconst islands = zero;\n\t\t\t\t\t\tzeroDevIslands = Promise.all(islands.resolved.islands.map((island) => buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: islands,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir: zeroDevIslandDir(islands),\n\t\t\t\t\t\t\tmode: \"development\"\n\t\t\t\t\t\t})));\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync configureServer(devServer) {\n\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\tconst islandBase = `${zero.cssHref.replace(ZERO_CSS_FILENAME, \"\")}${ZERO_ISLAND_DIRNAME}/`;\n\t\t\t\t\tdevServer.middlewares.use(async (request, response, next) => {\n\t\t\t\t\t\tconst url = (request.url || \"\").split(\"?\")[0];\n\t\t\t\t\t\tif (url !== zero.cssHref && !url.startsWith(islandBase)) return next();\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t\tif (url === zero.cssHref) {\n\t\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/css; charset=utf-8\");\n\t\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\t\tresponse.end(zero.artifact.css());\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst islandId = url.slice(islandBase.length).replace(/\\.js$/, \"\");\n\t\t\t\t\t\tconst file = path.join(zeroDevIslandDir(zero), ZERO_ISLAND_DIRNAME, `${islandId}.js`);\n\t\t\t\t\t\tif (!existsSync(file)) return next();\n\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/javascript; charset=utf-8\");\n\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\tresponse.end(readFileSync(file));\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tbuildEnd(error) {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) importers.set(moduleId, this.getModuleInfo(moduleId)?.importers ?? []);\n\t\t\t\t\tconst escape = Static.erasedExportEscape({\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\ttransformed: zero.transformed,\n\t\t\t\t\t\terasedExports: zero.erasedExports,\n\t\t\t\t\t\timportersOf: importers\n\t\t\t\t\t});\n\t\t\t\t\tif (escape) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\tthrow new Error(escape);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ttransformIndexHtml: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\thandler(html) {\n\t\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\t\tzeroHtmlEntries++;\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\thtml,\n\t\t\t\t\t\t\ttags: [{\n\t\t\t\t\t\t\t\ttag: \"link\",\n\t\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\t\trel: \"stylesheet\",\n\t\t\t\t\t\t\t\t\thref: zero.cssHref\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tinjectTo: \"head\"\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgenerateBundle(_outputOptions, bundle) {\n\t\t\t\t\tif (!zero?.isEnforcing || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) for (const imported of this.getModuleInfo(moduleId)?.importedIds ?? []) {\n\t\t\t\t\t\tconst list = importers.get(imported);\n\t\t\t\t\t\tif (list) list.push(moduleId);\n\t\t\t\t\t\telse importers.set(imported, [moduleId]);\n\t\t\t\t\t}\n\t\t\t\t\tconst entries = [];\n\t\t\t\t\tconst modules = [];\n\t\t\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\t\t\tif (chunk.type !== \"chunk\") continue;\n\t\t\t\t\t\tfor (const moduleId of Object.keys(chunk.modules)) {\n\t\t\t\t\t\t\tmodules.push({\n\t\t\t\t\t\t\t\tid: moduleId,\n\t\t\t\t\t\t\t\timporters: importers.get(moduleId) ?? []\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tif (this.getModuleInfo(moduleId)?.isEntry) entries.push(moduleId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tconst checked = Static.checkZeroGraph({\n\t\t\t\t\t\tentries,\n\t\t\t\t\t\tmodules,\n\t\t\t\t\t\timporterEdges: importers,\n\t\t\t\t\t\troot: zero.resolved.root\n\t\t\t\t\t});\n\t\t\t\t\tzeroReceipt = {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tgraph: \"zero\",\n\t\t\t\t\t\tentries: entries.sort(),\n\t\t\t\t\t\tmoduleCount: modules.length,\n\t\t\t\t\t\ttamaguiModules: checked.tamaguiModules,\n\t\t\t\t\t\tforbidden: checked.forbidden,\n\t\t\t\t\t\tcssArtifact: null,\n\t\t\t\t\t\tidentity: \"\",\n\t\t\t\t\t\tgzip: Object.fromEntries(Object.values(bundle).filter((chunk) => chunk.type === \"chunk\").map((chunk) => [chunk.fileName, gzipSync(Buffer.from(chunk.code), { level: 9 }).length]))\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\tasync closeBundle() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst outDir = path.resolve(config.root, this.environment.config.build.outDir);\n\t\t\t\t\tconst receiptName = `vite-${path.basename(outDir)}`;\n\t\t\t\t\tStatic.writeZeroViolationReport(zero.resolved.outDir, receiptName, {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\tviolations: zero.violations\n\t\t\t\t\t});\n\t\t\t\t\tif (!zero.isEnforcing || zeroBuildFailed) return;\n\t\t\t\t\tif (zero.violations.length) throw new Error(Static.formatZeroViolations(zero.violations));\n\t\t\t\t\tconst islandOutputHashes = {};\n\t\t\t\t\tfor (const island of zero.resolved.islands) {\n\t\t\t\t\t\tconst built = await buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: zero,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir,\n\t\t\t\t\t\t\tmode: config.mode\n\t\t\t\t\t\t});\n\t\t\t\t\t\tislandOutputHashes[island.id] = built.hash;\n\t\t\t\t\t}\n\t\t\t\t\tif (zeroHtmlEntries === 0) throw new Error(`[tamagui zero-runtime] the zero entry graph has no HTML entry, so the one generated CSS artifact ${zero.cssHref} is never loaded. Build a zero entry through its HTML document.`);\n\t\t\t\t\tconst css = finalizeZeroCSS(zero, outDir);\n\t\t\t\t\tconst bridgeManifest = Static.canonicalizeBridgeManifest(Object.fromEntries([...zero.bridges.entries()].sort(([left], [right]) => left < right ? -1 : 1)));\n\t\t\t\t\tconst identityInputs = {\n\t\t\t\t\t\truntimeLiteral: \"zero\",\n\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\tconfigGeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\tcssHash: css.hash,\n\t\t\t\t\t\tcompilerVersion: Static.ZERO_COMPILER_VERSION,\n\t\t\t\t\t\tislandEntries: zero.resolved.islands.map((island) => island.module),\n\t\t\t\t\t\tbridgeManifestHash: Static.hashBridgeManifest(bridgeManifest),\n\t\t\t\t\t\tislandOutputHashes\n\t\t\t\t\t};\n\t\t\t\t\tconst identity = Static.hashZeroIdentity(identityInputs);\n\t\t\t\t\tif (!zeroReceipt) throw new Error(`[tamagui zero-runtime] no module graph was recorded for the zero entry`);\n\t\t\t\t\tzeroReceipt.cssArtifact = {\n\t\t\t\t\t\tpath: css.href,\n\t\t\t\t\t\thash: css.hash\n\t\t\t\t\t};\n\t\t\t\t\tzeroReceipt.identity = identity;\n\t\t\t\t\tStatic.writeZeroGraphReceipt(zero.resolved.outDir, receiptName, zeroReceipt);\n\t\t\t\t\twriteFileSync(path.join(zero.resolved.outDir, `${receiptName}.bridges.json`), `${JSON.stringify({\n\t\t\t\t\t\tidentity,\n\t\t\t\t\t\tidentityInputs,\n\t\t\t\t\t\tcssGzip: css.gzip,\n\t\t\t\t\t\tbridges: bridgeManifest\n\t\t\t\t\t}, null, 2)}\n`);\n\t\t\t\t\tassertZeroGraph(zeroReceipt);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-global-css\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tapply: \"build\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui] outputCSS is set but the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tglobalCSSExpected = tamaguiConfig.getCSS();\n\t\t\t\t},\n\t\t\t\tgenerateBundle() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst failure = Static.checkGlobalCSSArtifact({\n\t\t\t\t\t\tcssPath: globalCSS.cssPath,\n\t\t\t\t\t\texpectedCSS: globalCSSExpected ?? \"\",\n\t\t\t\t\t\tloadedModuleIds: this.getModuleIds(),\n\t\t\t\t\t\timportHint: `Import it once from your client entry: import ${JSON.stringify(relativeImportSpecifier(config.root, globalCSS.cssPath))}`\n\t\t\t\t\t});\n\t\t\t\t\tif (failure) throw new Error(failure.message);\n\t\t\t\t}\n\t\t\t},\n\t\t\ttamaguiNativePlugin(tamaguiOptionsIn)\n\t\t],\n\t\tloader: tamaguiLoader\n\t};\n}\nfunction zeroDevIslandDir(zero) {\n\treturn path.join(zero.resolved.outDir, \"dev\");\n}\nfunction relativeImportSpecifier(from, to) {\n\tconst relative = normalizePath(path.relative(from, to));\n\treturn relative.startsWith(\".\") ? relative : `./${relative}`;\n}\nfunction tamaguiPlugin(options = {}) {\n\treturn createTamaguiPlugins(options).plugins;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AU,OAAO,uBAAuB;MAC7C,SAAS,UAAU;MACnB,aAAa,qBAAqB;MAClC,iBAAiB,KAAK,aAAa;MACnC,YAAY,iDAAiD,KAAK,UAAU,wBAAwB,OAAO,MAAM,UAAU,OAAO,CAAC;KACpI,CAAC;KACD,IAAI,SAAS,MAAM,IAAI,MAAM,QAAQ,OAAO;IAC7C;GACD;GACA,oBAAoB,gBAAgB;EACrC;EACA,QAAQ;CACT;AACD;AACA,SAAS,iBAAiB,MAAM;CAC/B,OAAO,KAAK,KAAK,KAAK,SAAS,QAAQ,KAAK;AAC7C;AACA,SAAS,wBAAwB,MAAM,IAAI;CAC1C,MAAM,WAAW,cAAc,KAAK,SAAS,MAAM,EAAE,CAAC;CACtD,OAAO,SAAS,WAAW,GAAG,IAAI,WAAW,KAAK;AACnD;AACA,SAAS,cAAc,UAAU,CAAC,GAAG;CACpC,OAAO,qBAAqB,OAAO,CAAC,CAAC;AACtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/vite-plugin",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.881.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"clean:build": "tamagui-build clean:build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tamagui/fake-react-native": "3.0.0-beta.
|
|
45
|
-
"@tamagui/proxy-worm": "3.0.0-beta.
|
|
46
|
-
"@tamagui/react-native-svg": "3.0.0-beta.
|
|
47
|
-
"@tamagui/react-native-web-lite": "3.0.0-beta.
|
|
48
|
-
"@tamagui/static": "3.0.0-beta.
|
|
49
|
-
"@tamagui/types": "3.0.0-beta.
|
|
44
|
+
"@tamagui/fake-react-native": "3.0.0-beta.881.1",
|
|
45
|
+
"@tamagui/proxy-worm": "3.0.0-beta.881.1",
|
|
46
|
+
"@tamagui/react-native-svg": "3.0.0-beta.881.1",
|
|
47
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.881.1",
|
|
48
|
+
"@tamagui/static": "3.0.0-beta.881.1",
|
|
49
|
+
"@tamagui/types": "3.0.0-beta.881.1",
|
|
50
50
|
"esm-resolve": "^1.0.8",
|
|
51
51
|
"fs-extra": "^11.2.0",
|
|
52
52
|
"outdent": "^0.8.0",
|
|
53
53
|
"react-native-web": "~0.21.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@tamagui/build": "3.0.0-beta.
|
|
56
|
+
"@tamagui/build": "3.0.0-beta.881.1",
|
|
57
57
|
"vite": "^8.2.2",
|
|
58
58
|
"vitest": "4.1.0"
|
|
59
59
|
},
|
package/src/loadTamagui.ts
CHANGED
|
@@ -38,6 +38,12 @@ export type ViteTamaguiLoader = {
|
|
|
38
38
|
getEvaluationDependencies(): string[]
|
|
39
39
|
isEvaluationDependency(id: string): boolean
|
|
40
40
|
evaluateProjectModules(options: TamaguiOptions): Promise<EvaluatedProjectModules>
|
|
41
|
+
/**
|
|
42
|
+
* Evaluate one host-resolved module in the evaluation environment for the
|
|
43
|
+
* compiler's component discovery. Null when the environment is not ready or
|
|
44
|
+
* the module cannot run in node; the compiler then leaves its elements alone.
|
|
45
|
+
*/
|
|
46
|
+
evaluateModule(id: string): Promise<Record<string, unknown> | null>
|
|
41
47
|
loadTamaguiBuildConfig(): Promise<TamaguiOptions>
|
|
42
48
|
setEnvironment(next: RunnableDevEnvironment, options?: { owned?: boolean }): void
|
|
43
49
|
invalidate(file?: string): void
|
|
@@ -228,6 +234,17 @@ export function createViteTamaguiLoader(
|
|
|
228
234
|
isEvaluationDependency: (id: string) =>
|
|
229
235
|
evaluationDependencies.has(normalizeDependency(id)),
|
|
230
236
|
evaluateProjectModules,
|
|
237
|
+
async evaluateModule(id) {
|
|
238
|
+
if (!environment) return null
|
|
239
|
+
try {
|
|
240
|
+
return (await environment.runner.import(id)) as Record<string, unknown>
|
|
241
|
+
} catch (error) {
|
|
242
|
+
if (process.env.DEBUG === 'tamagui') {
|
|
243
|
+
console.info(`[tamagui] component discovery skipped ${id}:`, error)
|
|
244
|
+
}
|
|
245
|
+
return null
|
|
246
|
+
}
|
|
247
|
+
},
|
|
231
248
|
loadTamaguiBuildConfig,
|
|
232
249
|
|
|
233
250
|
setEnvironment(next: RunnableDevEnvironment, options?: { owned?: boolean }) {
|
package/src/plugin.ts
CHANGED
|
@@ -539,6 +539,7 @@ function createTamaguiNativePlugin(
|
|
|
539
539
|
const projectDependencies = new Set<string>()
|
|
540
540
|
let root = nativeContext?.root || process.cwd()
|
|
541
541
|
let projectPromise: Promise<Static.CompilerProject | null> | null = null
|
|
542
|
+
let nativeOptions: TamaguiOptions | null = null
|
|
542
543
|
let rebuildProject = false
|
|
543
544
|
let generation = 0
|
|
544
545
|
|
|
@@ -555,6 +556,7 @@ function createTamaguiNativePlugin(
|
|
|
555
556
|
outputCSS: undefined,
|
|
556
557
|
})
|
|
557
558
|
const options = { ...loadedOptions, root, outputCSS: undefined }
|
|
559
|
+
nativeOptions = options
|
|
558
560
|
for (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) {
|
|
559
561
|
projectDependencies.add(normalizePath(dependency))
|
|
560
562
|
}
|
|
@@ -671,6 +673,10 @@ function createTamaguiNativePlugin(
|
|
|
671
673
|
target: 'native',
|
|
672
674
|
project,
|
|
673
675
|
resolve,
|
|
676
|
+
evaluate: async ({ id: moduleId }) =>
|
|
677
|
+
nativeOptions
|
|
678
|
+
? Static.evaluateComponentModule(nativeOptions, moduleId)
|
|
679
|
+
: null,
|
|
674
680
|
load: async (dependencyId) => {
|
|
675
681
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0]
|
|
676
682
|
if (!path.isAbsolute(cleanDependencyId)) return null
|
|
@@ -1455,6 +1461,7 @@ export function createTamaguiPlugins({
|
|
|
1455
1461
|
? { id: resolution.id, external: resolution.external === true }
|
|
1456
1462
|
: null
|
|
1457
1463
|
},
|
|
1464
|
+
evaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),
|
|
1458
1465
|
load: async (dependencyId) => {
|
|
1459
1466
|
const cleanDependencyId = dependencyId.split(/[?#]/, 1)[0]
|
|
1460
1467
|
if (!path.isAbsolute(cleanDependencyId)) return null
|
package/types/loadTamagui.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export type ViteTamaguiLoader = {
|
|
|
22
22
|
getEvaluationDependencies(): string[];
|
|
23
23
|
isEvaluationDependency(id: string): boolean;
|
|
24
24
|
evaluateProjectModules(options: TamaguiOptions): Promise<EvaluatedProjectModules>;
|
|
25
|
+
/**
|
|
26
|
+
* Evaluate one host-resolved module in the evaluation environment for the
|
|
27
|
+
* compiler's component discovery. Null when the environment is not ready or
|
|
28
|
+
* the module cannot run in node; the compiler then leaves its elements alone.
|
|
29
|
+
*/
|
|
30
|
+
evaluateModule(id: string): Promise<Record<string, unknown> | null>;
|
|
25
31
|
loadTamaguiBuildConfig(): Promise<TamaguiOptions>;
|
|
26
32
|
setEnvironment(next: RunnableDevEnvironment, options?: {
|
|
27
33
|
owned?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../src/loadTamagui.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,MAAM,CAAA;AAElD,eAAO,MAAM,8BAA8B,YAAY,CAAA;AAYvD,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA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AAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IACjF,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,sBAAsB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB,CAAA;AAED,wBAAgB,uBAAuB,CACrC,SAAS,GAAE,OAAO,CAAC,cAAc,CAAM,GACtC,iBAAiB,CAwOnB"}
|
package/types/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAA;AAiBvE,OAAO,KAAK,EAGV,MAAM,EACN,YAAY,EAGb,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAOtD,OAAO,EAQL,KAAK,sBAAsB,EAE5B,MAAM,eAAe,CAAA;AA2ZtB,KAAK,YAAY,GAAG;IAClB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAA;IACtC,0DAA0D;IAC1D,GAAG,CAAC,EAAE,OAAO,CAAA;CACd,CAAA;AAED,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,YAAiB,GAAG,UAAU,EAAE,CAyDvE;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAA;AAiBvE,OAAO,KAAK,EAGV,MAAM,EACN,YAAY,EAGb,MAAM,MAAM,CAAA;AAEb,OA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