@tamagui/vite-plugin 3.0.0-beta.1213.1 → 3.0.0-beta.1216.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 +17 -4
- package/dist/cjs/plugin.cjs +9 -4
- package/dist/esm/loadTamagui.mjs +16 -4
- package/dist/esm/loadTamagui.mjs.map +1 -1
- package/dist/esm/plugin.mjs +10 -5
- package/dist/esm/plugin.mjs.map +1 -1
- package/package.json +8 -8
- package/src/loadTamagui.ts +48 -9
- package/src/plugin.ts +29 -10
- package/types/loadTamagui.d.ts +17 -1
- package/types/loadTamagui.d.ts.map +1 -1
- package/types/plugin.d.ts.map +1 -1
package/dist/cjs/loadTamagui.cjs
CHANGED
|
@@ -27,14 +27,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
27
27
|
var loadTamagui_exports = {};
|
|
28
28
|
__export(loadTamagui_exports, {
|
|
29
29
|
TAMAGUI_EVALUATION_ENVIRONMENT: () => TAMAGUI_EVALUATION_ENVIRONMENT,
|
|
30
|
-
createViteTamaguiLoader: () => createViteTamaguiLoader
|
|
30
|
+
createViteTamaguiLoader: () => createViteTamaguiLoader,
|
|
31
|
+
viteBuildConfigLoader: () => viteBuildConfigLoader
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(loadTamagui_exports);
|
|
33
34
|
var import_static = __toESM(require("@tamagui/static"), 1);
|
|
34
35
|
var import_node_module = require("node:module");
|
|
35
36
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
37
|
+
var import_vite = require("vite");
|
|
36
38
|
const import_meta = {};
|
|
37
39
|
const TAMAGUI_EVALUATION_ENVIRONMENT = "tamagui";
|
|
40
|
+
const viteBuildConfigLoader = async (absolutePath, root) => {
|
|
41
|
+
const { module: module2, dependencies } = await (0, import_vite.runnerImport)(absolutePath, { root });
|
|
42
|
+
return {
|
|
43
|
+
exports: module2,
|
|
44
|
+
dependencies: [absolutePath, ...dependencies]
|
|
45
|
+
};
|
|
46
|
+
};
|
|
38
47
|
const requireFromLoader = (0, import_node_module.createRequire)(typeof __filename === "string" ? __filename : import_meta.url);
|
|
39
48
|
const vitePluginVersions = [`@tamagui/vite-plugin@${requireFromLoader("@tamagui/vite-plugin/package.json").version}`];
|
|
40
49
|
function createViteTamaguiLoader(optionsIn = {}) {
|
|
@@ -73,14 +82,18 @@ function createViteTamaguiLoader(optionsIn = {}) {
|
|
|
73
82
|
const loadTamaguiBuildConfig = async () => {
|
|
74
83
|
if (loadedOptions) return loadedOptions;
|
|
75
84
|
if (loadPromise) return loadPromise;
|
|
76
|
-
|
|
85
|
+
const pending = import_static.default.loadTamaguiBuildConfigAsync({
|
|
77
86
|
...optionsIn,
|
|
78
87
|
platform: "web"
|
|
79
|
-
}).then((options) => {
|
|
88
|
+
}, viteBuildConfigLoader).then((options) => {
|
|
80
89
|
loadedOptions = options;
|
|
81
90
|
return options;
|
|
91
|
+
}, (error) => {
|
|
92
|
+
if (loadPromise === pending) loadPromise = null;
|
|
93
|
+
throw error;
|
|
82
94
|
});
|
|
83
|
-
|
|
95
|
+
loadPromise = pending;
|
|
96
|
+
return pending;
|
|
84
97
|
};
|
|
85
98
|
const resolveAndImport = async (moduleName, root, kind) => {
|
|
86
99
|
if (!environment) {
|
package/dist/cjs/plugin.cjs
CHANGED
|
@@ -311,7 +311,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
311
311
|
root,
|
|
312
312
|
platform: "native",
|
|
313
313
|
outputCSS: void 0
|
|
314
|
-
});
|
|
314
|
+
}, import_loadTamagui.viteBuildConfigLoader);
|
|
315
315
|
const options = {
|
|
316
316
|
...loadedOptions,
|
|
317
317
|
root,
|
|
@@ -516,7 +516,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
516
516
|
moduleRunnerTransform: true
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
|
-
tamaguiLoader.loadTamaguiBuildConfig();
|
|
519
|
+
tamaguiLoader.loadTamaguiBuildConfig().catch(() => {});
|
|
520
520
|
const ensureLoaded = async () => {
|
|
521
521
|
const promise = tamaguiLoader.getLoadPromise();
|
|
522
522
|
if (promise) await promise;
|
|
@@ -529,6 +529,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
529
529
|
const transformedModuleIds = /* @__PURE__ */ new Set();
|
|
530
530
|
const compilerHotUpdateSignatures = /* @__PURE__ */ new Map();
|
|
531
531
|
const compilerHotReloadSignatures = /* @__PURE__ */ new Map();
|
|
532
|
+
let watchedDependencies = /* @__PURE__ */ new Set();
|
|
532
533
|
let config;
|
|
533
534
|
let server;
|
|
534
535
|
let zero = null;
|
|
@@ -577,6 +578,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
577
578
|
enforce: "pre",
|
|
578
579
|
configureServer(_server) {
|
|
579
580
|
server = _server;
|
|
581
|
+
watchedDependencies = /* @__PURE__ */ new Set();
|
|
580
582
|
},
|
|
581
583
|
async buildEnd() {
|
|
582
584
|
await releaseBuildEnvironment(this.environment);
|
|
@@ -793,8 +795,11 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
793
795
|
tamaguiLoader.invalidate(options.file);
|
|
794
796
|
invalidateCompilerModules();
|
|
795
797
|
}
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
+
const unwatched = (await tamaguiLoader.ensureFullConfigLoaded()).filter((file) => !watchedDependencies.has(file));
|
|
799
|
+
if (unwatched.length) {
|
|
800
|
+
for (const file of unwatched) watchedDependencies.add(file);
|
|
801
|
+
server.watcher.add(unwatched);
|
|
802
|
+
}
|
|
798
803
|
if (this.environment.name === "client" && compilerHotReloadSignatures.get(options.file) !== signature) {
|
|
799
804
|
compilerHotReloadSignatures.set(options.file, signature);
|
|
800
805
|
this.environment.hot.send({
|
package/dist/esm/loadTamagui.mjs
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import Static from "@tamagui/static";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { runnerImport } from "vite";
|
|
4
5
|
|
|
5
6
|
const TAMAGUI_EVALUATION_ENVIRONMENT = "tamagui";
|
|
7
|
+
const viteBuildConfigLoader = async (absolutePath, root) => {
|
|
8
|
+
const { module, dependencies } = await runnerImport(absolutePath, { root });
|
|
9
|
+
return {
|
|
10
|
+
exports: module,
|
|
11
|
+
dependencies: [absolutePath, ...dependencies]
|
|
12
|
+
};
|
|
13
|
+
};
|
|
6
14
|
const requireFromLoader = createRequire(typeof __filename === "string" ? __filename : import.meta.url);
|
|
7
15
|
const vitePluginVersions = [`@tamagui/vite-plugin@${requireFromLoader("@tamagui/vite-plugin/package.json").version}`];
|
|
8
16
|
function createViteTamaguiLoader(optionsIn = {}) {
|
|
@@ -41,14 +49,18 @@ function createViteTamaguiLoader(optionsIn = {}) {
|
|
|
41
49
|
const loadTamaguiBuildConfig = async () => {
|
|
42
50
|
if (loadedOptions) return loadedOptions;
|
|
43
51
|
if (loadPromise) return loadPromise;
|
|
44
|
-
|
|
52
|
+
const pending = Static.loadTamaguiBuildConfigAsync({
|
|
45
53
|
...optionsIn,
|
|
46
54
|
platform: "web"
|
|
47
|
-
}).then((options) => {
|
|
55
|
+
}, viteBuildConfigLoader).then((options) => {
|
|
48
56
|
loadedOptions = options;
|
|
49
57
|
return options;
|
|
58
|
+
}, (error) => {
|
|
59
|
+
if (loadPromise === pending) loadPromise = null;
|
|
60
|
+
throw error;
|
|
50
61
|
});
|
|
51
|
-
|
|
62
|
+
loadPromise = pending;
|
|
63
|
+
return pending;
|
|
52
64
|
};
|
|
53
65
|
const resolveAndImport = async (moduleName, root, kind) => {
|
|
54
66
|
if (!environment) {
|
|
@@ -220,5 +232,5 @@ function createViteTamaguiLoader(optionsIn = {}) {
|
|
|
220
232
|
};
|
|
221
233
|
}
|
|
222
234
|
|
|
223
|
-
export { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader };
|
|
235
|
+
export { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader, viteBuildConfigLoader };
|
|
224
236
|
//# sourceMappingURL=loadTamagui.mjs.map
|
|
@@ -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 let loadingProject = null;\n const invalidatedFiles = /* @__PURE__ */ new Set();\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 evaluationDependencies.clear();\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 const previous = loadingProject;\n const projectGeneration = generation;\n const changedFiles = [...invalidatedFiles];\n invalidatedFiles.clear();\n projectPromise = (async () => {\n try {\n await previous;\n } catch {\n }\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n for (const file of changedFiles) {\n const evaluated2 = environment.runner.evaluatedModules;\n const affected = new Set(evaluated2.getModulesByFile(file));\n for (const module of affected) {\n for (const importer of module.importers) {\n const parent = evaluated2.getModuleById(importer);\n if (parent) affected.add(parent);\n }\n evaluated2.invalidateModule(module);\n }\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${projectGeneration}`,\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 loadingProject = projectPromise;\n const pending = projectPromise;\n try {\n return await pending;\n } catch (error) {\n if (projectPromise === pending) projectPromise = null;\n throw error;\n } finally {\n if (loadingProject === pending) loadingProject = null;\n }\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) invalidatedFiles.add(normalizeDependency(file));\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 await loadingProject?.catch(() => {\n });\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 loadingProject = null;\n invalidatedFiles.clear();\n evaluationDependencies.clear();\n stampSources.clear();\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,MAAM,qBAAqB,CACzB,wBAAwB,kBAAkB,mCAAmC,CAAC,CAAC,SACjF;AACA,SAAS,wBAAwB,YAAY,CAAC,GAAG;CAC/C,IAAI,cAAc;CAClB,IAAI,kBAAkB;CACtB,IAAI,cAAc;CAClB,IAAI,gBAAgB;CACpB,IAAI,iBAAiB;CACrB,IAAI,iBAAiB;CACrB,MAAM,mCAAmC,IAAI,IAAI;CACjD,MAAM,yCAAyC,IAAI,IAAI;CACvD,MAAM,+BAA+B,IAAI,IAAI;CAC7C,IAAI,aAAa;CACjB,MAAM,uBAAuB,OAAO,GAAG,MAAM,GAAG,CAAC,CAAC;CAClD,MAAM,iCAAiC,YAAY;EACjD,uBAAuB,MAAM;EAC7B,aAAa,MAAM;EACnB,KAAK,MAAM,EAAE,QAAQ,SAAS;GAC5B,MAAM,aAAa,oBAAoB,EAAE;GACzC,IAAI,KAAK,WAAW,UAAU,GAAG;IAC/B,uBAAuB,IAAI,UAAU;IACrC,aAAa,IAAI,UAAU;GAC7B;EACF;EACA,IAAI,aAAa;GACf,KAAK,MAAM,UAAU,YAAY,OAAO,iBAAiB,iBAAi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iB;EACnB;EACA,WAAW,MAAM;GACf,IAAI,MAAM,iBAAiB,IAAI,oBAAoB,IAAI,CAAC;GACxD;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,MAAM,gBAAgB,YAAY,CAClC,CAAC;IACD,IAAI,mBAAmB,aAAa;KAClC,MAAM,YAAY,MAAM;IAC1B;GACF,UAAU;IACR,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB,MAAM;IACvB,uBAAuB,MAAM;IAC7B,aAAa,MAAM;GACrB;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\";\nimport { runnerImport } from \"vite\";\nconst TAMAGUI_EVALUATION_ENVIRONMENT = \"tamagui\";\nconst viteBuildConfigLoader = async (absolutePath, root) => {\n const { module, dependencies } = await runnerImport(\n absolutePath,\n { root }\n );\n return { exports: module, dependencies: [absolutePath, ...dependencies] };\n};\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 let loadingProject = null;\n const invalidatedFiles = /* @__PURE__ */ new Set();\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 evaluationDependencies.clear();\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 const pending = Static.loadTamaguiBuildConfigAsync(\n { ...optionsIn, platform: \"web\" },\n viteBuildConfigLoader\n ).then(\n (options) => {\n loadedOptions = options;\n return options;\n },\n (error) => {\n if (loadPromise === pending) loadPromise = null;\n throw error;\n }\n );\n loadPromise = pending;\n return pending;\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 const previous = loadingProject;\n const projectGeneration = generation;\n const changedFiles = [...invalidatedFiles];\n invalidatedFiles.clear();\n projectPromise = (async () => {\n try {\n await previous;\n } catch {\n }\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n for (const file of changedFiles) {\n const evaluated2 = environment.runner.evaluatedModules;\n const affected = new Set(evaluated2.getModulesByFile(file));\n for (const module of affected) {\n for (const importer of module.importers) {\n const parent = evaluated2.getModuleById(importer);\n if (parent) affected.add(parent);\n }\n evaluated2.invalidateModule(module);\n }\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${projectGeneration}`,\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 loadingProject = projectPromise;\n const pending = projectPromise;\n try {\n return await pending;\n } catch (error) {\n if (projectPromise === pending) projectPromise = null;\n throw error;\n } finally {\n if (loadingProject === pending) loadingProject = null;\n }\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) invalidatedFiles.add(normalizeDependency(file));\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 await loadingProject?.catch(() => {\n });\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 loadingProject = null;\n invalidatedFiles.clear();\n evaluationDependencies.clear();\n stampSources.clear();\n }\n }\n };\n}\nexport {\n TAMAGUI_EVALUATION_ENVIRONMENT,\n createViteTamaguiLoader,\n viteBuildConfigLoader\n};\n//# sourceMappingURL=loadTamagui.js.map\n"],"mappings":";;;;;;AAIA,MAAM,iCAAiC;AACvC,MAAM,wBAAwB,OAAO,cAAc,SAAS;CAC1D,MAAM,EAAE,QAAQ,iBAAiB,MAAM,aACrC,cACA,EAAE,KAAK,CACT;CACA,OAAO;EAAE,SAAS;EAAQ,cAAc,CAAC,cAAc,GAAG,YAAY;CAAE;AAC1E;AACA,MAAM,oBAAoB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AAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB,MAAM;IACvB,uBAAuB,MAAM;IAC7B,aAAa,MAAM;GACrB;EACF;CACF;AACF"}
|
package/dist/esm/plugin.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { createRequire } from "node:module";
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, resolveConfig } from "vite";
|
|
10
|
-
import { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from "./loadTamagui.mjs";
|
|
10
|
+
import { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader, viteBuildConfigLoader } from "./loadTamagui.mjs";
|
|
11
11
|
import { createCompilerStatsReport, formatCompilerStatsReport } from "./compilerStats.mjs";
|
|
12
12
|
import { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from "./zeroRuntime.mjs";
|
|
13
13
|
|
|
@@ -277,7 +277,7 @@ function createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {
|
|
|
277
277
|
root,
|
|
278
278
|
platform: "native",
|
|
279
279
|
outputCSS: void 0
|
|
280
|
-
});
|
|
280
|
+
}, viteBuildConfigLoader);
|
|
281
281
|
const options = {
|
|
282
282
|
...loadedOptions,
|
|
283
283
|
root,
|
|
@@ -481,7 +481,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
481
481
|
moduleRunnerTransform: true
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
tamaguiLoader.loadTamaguiBuildConfig();
|
|
484
|
+
tamaguiLoader.loadTamaguiBuildConfig().catch(() => {});
|
|
485
485
|
const ensureLoaded = async () => {
|
|
486
486
|
const promise = tamaguiLoader.getLoadPromise();
|
|
487
487
|
if (promise) await promise;
|
|
@@ -494,6 +494,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
494
494
|
const transformedModuleIds = /* @__PURE__ */ new Set();
|
|
495
495
|
const compilerHotUpdateSignatures = /* @__PURE__ */ new Map();
|
|
496
496
|
const compilerHotReloadSignatures = /* @__PURE__ */ new Map();
|
|
497
|
+
let watchedDependencies = /* @__PURE__ */ new Set();
|
|
497
498
|
let config;
|
|
498
499
|
let server;
|
|
499
500
|
let zero = null;
|
|
@@ -542,6 +543,7 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
542
543
|
enforce: "pre",
|
|
543
544
|
configureServer(_server) {
|
|
544
545
|
server = _server;
|
|
546
|
+
watchedDependencies = /* @__PURE__ */ new Set();
|
|
545
547
|
},
|
|
546
548
|
async buildEnd() {
|
|
547
549
|
await releaseBuildEnvironment(this.environment);
|
|
@@ -757,8 +759,11 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
|
|
|
757
759
|
tamaguiLoader.invalidate(options.file);
|
|
758
760
|
invalidateCompilerModules();
|
|
759
761
|
}
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
+
const unwatched = (await tamaguiLoader.ensureFullConfigLoaded()).filter((file) => !watchedDependencies.has(file));
|
|
763
|
+
if (unwatched.length) {
|
|
764
|
+
for (const file of unwatched) watchedDependencies.add(file);
|
|
765
|
+
server.watcher.add(unwatched);
|
|
766
|
+
}
|
|
762
767
|
if (this.environment.name === "client" && compilerHotReloadSignatures.get(options.file) !== signature) {
|
|
763
768
|
compilerHotReloadSignatures.set(options.file, signature);
|
|
764
769
|
this.environment.hot.send({
|
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, 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\tconst { esbuildOptions: _esbuildOptions, ...optimizeDeps } = environment.optimizeDeps;\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,\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 svgWebEntry() {\n\treturn normalizePath(path.join(path.dirname(resolve(\"@tamagui/react-native-svg/package.json\")), \"dist/esm/index.mjs\"));\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) {\n\t\tconst svg = svgWebEntry();\n\t\taliases.push({\n\t\t\tfind: \"react-native-svg\",\n\t\t\treplacement: svg\n\t\t}, {\n\t\t\tfind: \"@tamagui/react-native-svg\",\n\t\t\treplacement: svg\n\t\t});\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\tconst environment = createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages), { hot: false });\n\t\t\t\ttamaguiLoader.setEnvironment(environment);\n\t\t\t\treturn environment;\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\tconst isDevEnvironment = (environment) => environment.mode === \"dev\";\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},\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(zeroIslandBuild ? \"island\" : \"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\": svgWebEntry(),\n\t\t\t\t\t\t\t\t\"@tamagui/react-native-svg\": svgWebEntry(),\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\") {\n\t\t\t\t\t\tif (this.environment.name === \"client\") {\n\t\t\t\t\t\t\tconst dependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\t\tfor (const dependency of dependencies) this.addWatchFile(dependency);\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\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) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t\t\taffectedModules.add(cssModule);\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}\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\tconst dependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tserver.watcher.add(dependencies);\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\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tif (isDevEnvironment(this.environment)) {\n\t\t\t\t\t\tconst importer = this.environment.moduleGraph.getModuleById(validId.slice(0, -virtualExt.length));\n\t\t\t\t\t\tif (importer && importer.transformResult == null) await this.environment.transformRequest(importer.url);\n\t\t\t\t\t}\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;\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,IAA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,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, resolveConfig } from \"vite\";\nimport { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader, viteBuildConfigLoader } 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\tconst { esbuildOptions: _esbuildOptions, ...optimizeDeps } = environment.optimizeDeps;\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,\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 svgWebEntry() {\n\treturn normalizePath(path.join(path.dirname(resolve(\"@tamagui/react-native-svg/package.json\")), \"dist/esm/index.mjs\"));\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) {\n\t\tconst svg = svgWebEntry();\n\t\taliases.push({\n\t\t\tfind: \"react-native-svg\",\n\t\t\treplacement: svg\n\t\t}, {\n\t\t\tfind: \"@tamagui/react-native-svg\",\n\t\t\treplacement: svg\n\t\t});\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}, viteBuildConfigLoader);\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\tconst environment = createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages), { hot: false });\n\t\t\t\ttamaguiLoader.setEnvironment(environment);\n\t\t\t\treturn environment;\n\t\t\t},\n\t\t\tmoduleRunnerTransform: true\n\t\t}\n\t});\n\ttamaguiLoader.loadTamaguiBuildConfig().catch(() => {});\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 watchedDependencies = /* @__PURE__ */ new Set();\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\tconst isDevEnvironment = (environment) => environment.mode === \"dev\";\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\twatchedDependencies = /* @__PURE__ */ new Set();\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(zeroIslandBuild ? \"island\" : \"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\": svgWebEntry(),\n\t\t\t\t\t\t\t\t\"@tamagui/react-native-svg\": svgWebEntry(),\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\") {\n\t\t\t\t\t\tif (this.environment.name === \"client\") {\n\t\t\t\t\t\t\tconst dependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\t\tfor (const dependency of dependencies) this.addWatchFile(dependency);\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\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) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t\t\taffectedModules.add(cssModule);\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}\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\tconst unwatched = (await tamaguiLoader.ensureFullConfigLoaded()).filter((file) => !watchedDependencies.has(file));\n\t\t\t\t\t\tif (unwatched.length) {\n\t\t\t\t\t\t\tfor (const file of unwatched) watchedDependencies.add(file);\n\t\t\t\t\t\t\tserver.watcher.add(unwatched);\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\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tif (isDevEnvironment(this.environment)) {\n\t\t\t\t\t\tconst importer = this.environment.moduleGraph.getModuleById(validId.slice(0, -virtualExt.length));\n\t\t\t\t\t\tif (importer && importer.transformResult == null) await this.environment.transformRequest(importer.url);\n\t\t\t\t\t}\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;\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,CAA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3
|
+
"version": "3.0.0-beta.1216.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.1216.1",
|
|
45
|
+
"@tamagui/proxy-worm": "3.0.0-beta.1216.1",
|
|
46
|
+
"@tamagui/react-native-svg": "3.0.0-beta.1216.1",
|
|
47
|
+
"@tamagui/react-native-web-lite": "3.0.0-beta.1216.1",
|
|
48
|
+
"@tamagui/static": "3.0.0-beta.1216.1",
|
|
49
|
+
"@tamagui/types": "3.0.0-beta.1216.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.1216.1",
|
|
57
57
|
"vite": "^8.2.2",
|
|
58
58
|
"vitest": "4.1.0"
|
|
59
59
|
},
|
package/src/loadTamagui.ts
CHANGED
|
@@ -3,10 +3,39 @@ import type { TamaguiProjectInfo } from '@tamagui/static'
|
|
|
3
3
|
import type { TamaguiOptions } from '@tamagui/types'
|
|
4
4
|
import { createRequire } from 'node:module'
|
|
5
5
|
import path from 'node:path'
|
|
6
|
-
import type
|
|
6
|
+
import { runnerImport, type RunnableDevEnvironment } from 'vite'
|
|
7
7
|
|
|
8
8
|
export const TAMAGUI_EVALUATION_ENVIRONMENT = 'tamagui'
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Evaluate tamagui.build.ts through Vite instead of esbuild.
|
|
12
|
+
*
|
|
13
|
+
* The esbuild path spawns a long-lived service process, and that process does
|
|
14
|
+
* not survive a Vite dev server restart: the next `tamaguiPlugin()` call, which
|
|
15
|
+
* happens while Vite is rebuilding its config, hits `write EPIPE` and takes the
|
|
16
|
+
* restart down with it. Vite is already running here and already evaluates
|
|
17
|
+
* tamagui.config.ts and every component package through its own module runner,
|
|
18
|
+
* so the build file has no reason to need a second toolchain.
|
|
19
|
+
*
|
|
20
|
+
* `runnerImport` forces `configFile: false`, so loading the build file from
|
|
21
|
+
* inside a plugin that the config file itself creates cannot recurse. Bare
|
|
22
|
+
* imports stay external, matching esbuild's `packages: 'external'`, and the
|
|
23
|
+
* returned dependency list replaces the metafile's inputs for watching.
|
|
24
|
+
*/
|
|
25
|
+
export const viteBuildConfigLoader: Static.BuildConfigLoader = async (
|
|
26
|
+
absolutePath,
|
|
27
|
+
root
|
|
28
|
+
) => {
|
|
29
|
+
const { module, dependencies } = await runnerImport<Record<string, unknown>>(
|
|
30
|
+
absolutePath,
|
|
31
|
+
{ root }
|
|
32
|
+
)
|
|
33
|
+
// runnerImport reports what the entry pulled in but not the entry itself,
|
|
34
|
+
// where esbuild's metafile listed it. the build file is the one thing that
|
|
35
|
+
// must invalidate the config, so put it back.
|
|
36
|
+
return { exports: module, dependencies: [absolutePath, ...dependencies] }
|
|
37
|
+
}
|
|
38
|
+
|
|
10
39
|
const requireFromLoader = createRequire(
|
|
11
40
|
typeof __filename === 'string' ? __filename : import.meta.url
|
|
12
41
|
)
|
|
@@ -96,15 +125,25 @@ export function createViteTamaguiLoader(
|
|
|
96
125
|
if (loadedOptions) return loadedOptions
|
|
97
126
|
if (loadPromise) return loadPromise
|
|
98
127
|
|
|
99
|
-
|
|
100
|
-
...optionsIn,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
128
|
+
const pending = Static.loadTamaguiBuildConfigAsync(
|
|
129
|
+
{ ...optionsIn, platform: 'web' },
|
|
130
|
+
viteBuildConfigLoader
|
|
131
|
+
).then(
|
|
132
|
+
(options) => {
|
|
133
|
+
loadedOptions = options
|
|
134
|
+
return options
|
|
135
|
+
},
|
|
136
|
+
(error) => {
|
|
137
|
+
// a build file that failed to evaluate is usually mid-edit. dropping the
|
|
138
|
+
// promise lets the next caller try again instead of every later load in
|
|
139
|
+
// this process replaying the first failure.
|
|
140
|
+
if (loadPromise === pending) loadPromise = null
|
|
141
|
+
throw error
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
loadPromise = pending
|
|
106
145
|
|
|
107
|
-
return
|
|
146
|
+
return pending
|
|
108
147
|
}
|
|
109
148
|
|
|
110
149
|
const resolveAndImport = async (
|
package/src/plugin.ts
CHANGED
|
@@ -26,7 +26,11 @@ import type {
|
|
|
26
26
|
} from 'vite'
|
|
27
27
|
import type { Environment } from 'vite'
|
|
28
28
|
import type { ViteTamaguiLoader } from './loadTamagui'
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
createViteTamaguiLoader,
|
|
31
|
+
TAMAGUI_EVALUATION_ENVIRONMENT,
|
|
32
|
+
viteBuildConfigLoader,
|
|
33
|
+
} from './loadTamagui'
|
|
30
34
|
import {
|
|
31
35
|
createCompilerStatsReport,
|
|
32
36
|
formatCompilerStatsReport,
|
|
@@ -568,12 +572,10 @@ function createTamaguiNativePlugin(
|
|
|
568
572
|
rebuildProject = false
|
|
569
573
|
const pending = (async () => {
|
|
570
574
|
projectDependencies.clear()
|
|
571
|
-
const loadedOptions = await Static.loadTamaguiBuildConfigAsync(
|
|
572
|
-
...tamaguiOptionsIn,
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
outputCSS: undefined,
|
|
576
|
-
})
|
|
575
|
+
const loadedOptions = await Static.loadTamaguiBuildConfigAsync(
|
|
576
|
+
{ ...tamaguiOptionsIn, root, platform: 'native', outputCSS: undefined },
|
|
577
|
+
viteBuildConfigLoader
|
|
578
|
+
)
|
|
577
579
|
const options = { ...loadedOptions, root, outputCSS: undefined }
|
|
578
580
|
nativeOptions = options
|
|
579
581
|
for (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) {
|
|
@@ -900,8 +902,10 @@ export function createTamaguiPlugins({
|
|
|
900
902
|
},
|
|
901
903
|
})
|
|
902
904
|
|
|
903
|
-
// start loading immediately but don't block
|
|
904
|
-
|
|
905
|
+
// start loading immediately but don't block. the rejection is swallowed here
|
|
906
|
+
// only so node does not call it unhandled: the loader drops a failed promise,
|
|
907
|
+
// so the first real caller re-runs the load and reports the error itself.
|
|
908
|
+
void tamaguiLoader.loadTamaguiBuildConfig().catch(() => {})
|
|
905
909
|
|
|
906
910
|
// helper to await load when needed
|
|
907
911
|
const ensureLoaded = async () => {
|
|
@@ -922,6 +926,15 @@ export function createTamaguiPlugins({
|
|
|
922
926
|
const transformedModuleIds = new Set<string>()
|
|
923
927
|
const compilerHotUpdateSignatures = new Map<string, string>()
|
|
924
928
|
const compilerHotReloadSignatures = new Map<string, string>()
|
|
929
|
+
// what has already been handed to `server.watcher.add`. chokidar's fsevents
|
|
930
|
+
// backend has no dedupe: every add() of a path builds a fresh listener
|
|
931
|
+
// closure and drops it in one Set per watch root, and nothing ever removes
|
|
932
|
+
// it. re-adding the config's dependencies on each hot update therefore grows
|
|
933
|
+
// that Set forever, and since the root consolidates to the whole project,
|
|
934
|
+
// every filesystem event under it runs the entire Set. measured on a real app
|
|
935
|
+
// after three hours: ~300 dependency files had become 45,228 listeners, each
|
|
936
|
+
// doing a string concat and an indexOf per event, which pinned one core.
|
|
937
|
+
let watchedDependencies = new Set<string>()
|
|
925
938
|
let config: ResolvedConfig
|
|
926
939
|
let server: ViteDevServer
|
|
927
940
|
let zero: ZeroRuntimeController | null = null
|
|
@@ -996,6 +1009,8 @@ export function createTamaguiPlugins({
|
|
|
996
1009
|
|
|
997
1010
|
configureServer(_server) {
|
|
998
1011
|
server = _server
|
|
1012
|
+
// a new server owns a new watcher, so what the last one knew about is gone
|
|
1013
|
+
watchedDependencies = new Set()
|
|
999
1014
|
},
|
|
1000
1015
|
|
|
1001
1016
|
async buildEnd() {
|
|
@@ -1376,7 +1391,11 @@ export function createTamaguiPlugins({
|
|
|
1376
1391
|
invalidateCompilerModules()
|
|
1377
1392
|
}
|
|
1378
1393
|
const dependencies = await tamaguiLoader.ensureFullConfigLoaded()
|
|
1379
|
-
|
|
1394
|
+
const unwatched = dependencies.filter((file) => !watchedDependencies.has(file))
|
|
1395
|
+
if (unwatched.length) {
|
|
1396
|
+
for (const file of unwatched) watchedDependencies.add(file)
|
|
1397
|
+
server.watcher.add(unwatched)
|
|
1398
|
+
}
|
|
1380
1399
|
if (
|
|
1381
1400
|
this.environment.name === 'client' &&
|
|
1382
1401
|
compilerHotReloadSignatures.get(options.file) !== signature
|
package/types/loadTamagui.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import Static from '@tamagui/static';
|
|
2
2
|
import type { TamaguiProjectInfo } from '@tamagui/static';
|
|
3
3
|
import type { TamaguiOptions } from '@tamagui/types';
|
|
4
|
-
import type
|
|
4
|
+
import { type RunnableDevEnvironment } from 'vite';
|
|
5
5
|
export declare const TAMAGUI_EVALUATION_ENVIRONMENT = "tamagui";
|
|
6
|
+
/**
|
|
7
|
+
* Evaluate tamagui.build.ts through Vite instead of esbuild.
|
|
8
|
+
*
|
|
9
|
+
* The esbuild path spawns a long-lived service process, and that process does
|
|
10
|
+
* not survive a Vite dev server restart: the next `tamaguiPlugin()` call, which
|
|
11
|
+
* happens while Vite is rebuilding its config, hits `write EPIPE` and takes the
|
|
12
|
+
* restart down with it. Vite is already running here and already evaluates
|
|
13
|
+
* tamagui.config.ts and every component package through its own module runner,
|
|
14
|
+
* so the build file has no reason to need a second toolchain.
|
|
15
|
+
*
|
|
16
|
+
* `runnerImport` forces `configFile: false`, so loading the build file from
|
|
17
|
+
* inside a plugin that the config file itself creates cannot recurse. Bare
|
|
18
|
+
* imports stay external, matching esbuild's `packages: 'external'`, and the
|
|
19
|
+
* returned dependency list replaces the metafile's inputs for watching.
|
|
20
|
+
*/
|
|
21
|
+
export declare const viteBuildConfigLoader: Static.BuildConfigLoader;
|
|
6
22
|
type ResolvedEvaluationModule = {
|
|
7
23
|
moduleName: string;
|
|
8
24
|
id: string;
|
|
@@ -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,
|
|
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,EAAgB,KAAK,sBAAsB,EAAE,MAAM,MAAM,CAAA;AAEhE,eAAO,MAAM,8BAA8B,YAAY,CAAA;AAEvD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,iBAY1C,CAAA;AAYD,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAA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in.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAA;AAgBvE,OAAO,KAAK,EAIV,MAAM,EACN,YAAY,EAGb,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAA;AAgBvE,OAAO,KAAK,EAIV,MAAM,EACN,YAAY,EAGb,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAWtD,OAAO,EAQL,KAAK,sBAAsB,EAE5B,MAAM,eAAe,CAAA;AAgatB,KAAK,YAAY,GAAG;IAClB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAA;IACtC,sEAAsE;IACtE,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;AAahE;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,YAAiB,GAAG,UAAU,EAAE,CA4DvE;AAkLD,wBAAgB,mBAAmB,CAAC,gBAAgB,GAAE,cAAmB,GAAG,MAAM,CAejF;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,GAAG;IACtD,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,GAAG;IACpE;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1C;;;;OAIG;IACH,eAAe,CAAC,EAAE,sBAAs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