@tamagui/static 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/compilerHost.cjs +3 -0
- package/dist/cjs/extractor/bundle.cjs +17 -1
- package/dist/cjs/extractor/bundleConfig.cjs +18 -4
- package/dist/cjs/extractor/loadTamagui.cjs +4 -1
- package/dist/cjs/registerRequire.cjs +18 -1
- package/dist/esm/compilerHost.mjs +3 -0
- package/dist/esm/compilerHost.mjs.map +1 -1
- package/dist/esm/extractor/bundle.mjs +17 -1
- package/dist/esm/extractor/bundle.mjs.map +1 -1
- package/dist/esm/extractor/bundleConfig.mjs +18 -4
- package/dist/esm/extractor/bundleConfig.mjs.map +1 -1
- package/dist/esm/extractor/loadTamagui.mjs +4 -1
- package/dist/esm/extractor/loadTamagui.mjs.map +1 -1
- package/dist/esm/registerRequire.mjs +18 -2
- package/dist/esm/registerRequire.mjs.map +1 -1
- package/package.json +19 -19
- package/src/compilerHost.ts +6 -0
- package/src/extractor/bundle.ts +19 -0
- package/src/extractor/bundleConfig.ts +12 -1
- package/src/extractor/loadTamagui.ts +1 -0
- package/src/registerRequire.ts +31 -1
- package/types/compilerHost.d.ts.map +1 -1
- package/types/extractor/bundle.d.ts +1 -0
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/bundleConfig.d.ts.map +1 -1
- package/types/extractor/loadTamagui.d.ts.map +1 -1
- package/types/registerRequire.d.ts +3 -1
- package/types/registerRequire.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRequire.js","names":[],"sources":["esm/registerRequire.js"],"sourcesContent":["import { dirname } from \"node:path\";\nimport { buildSync } from \"esbuild\";\nimport { register } from \"esbuild-register/dist/node\";\nimport { createRequire } from \"node:module\";\nimport { esbuildIgnoreFilesRegex } from \"./extractor/bundle\";\nimport { requireTamaguiCore } from \"./helpers/requireTamaguiCore\";\nimport {\n getStaticEvaluationModuleReplacement,\n isIgnoredStaticEvaluationModule\n} from \"./staticEvaluationIgnoredModules\";\nconst nameToPaths = {};\nconst nodeRequire = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst getNameToPaths = () => nameToPaths;\nconst Module = nodeRequire(\"node:module\");\nlet isRegistered = false;\nlet og;\nclass StaticEvaluationError extends Error {\n constructor(moduleName, importer, failedModule, reason, options) {\n super(\n `[tamagui] Failed to evaluate module \"${failedModule}\" imported from \"${importer}\" while loading the Tamagui config and configured components.\nReason: ${reason}\nFix the module so it can run in Node during the build. If it is runtime-only and none of its exports create your Tamagui config or components, add \"${moduleName}\" to dangerouslyIgnoreStaticEvaluationModules in tamagui.build.ts.`,\n options\n );\n this.moduleName = moduleName;\n this.importer = importer;\n this.failedModule = failedModule;\n this.reason = reason;\n }\n moduleName;\n importer;\n failedModule;\n reason;\n code = \"TAMAGUI_STATIC_EVALUATION_ERROR\";\n}\nconst compiled = {};\nfunction setRequireResult(name, result) {\n compiled[name] = result;\n}\nfunction getStaticExtractionStub(path) {\n switch (path) {\n case \"expo-constants\":\n return {\n __esModule: true,\n default: {\n executionEnvironment: null\n },\n ExecutionEnvironment: {\n Bare: \"bare\",\n Standalone: \"standalone\",\n StoreClient: \"storeClient\"\n }\n };\n case \"expo-updates\":\n return {\n __esModule: true,\n default: {\n isEnabled: false,\n isUsingEmbeddedAssets: true\n },\n checkForUpdateAsync: async () => ({ isAvailable: false }),\n fetchUpdateAsync: async () => ({ isNew: false }),\n reloadAsync: async () => {\n }\n };\n case \"react-native-reanimated\": {\n const identity = (value) => value;\n const sharedValue = (value) => ({\n value,\n get: () => value,\n set: (next) => {\n value = typeof next === \"function\" ? next(value) : next;\n }\n });\n const Animated = {\n createAnimatedComponent: identity,\n View: () => null,\n Text: () => null\n };\n return {\n __esModule: true,\n default: Animated,\n cancelAnimation: () => {\n },\n runOnJS: identity,\n runOnUI: identity,\n useAnimatedReaction: () => {\n },\n useAnimatedStyle: (callback) => callback(),\n useDerivedValue: (callback) => sharedValue(callback()),\n useSharedValue: sharedValue,\n withDelay: (_delay, animation) => animation,\n withSpring: identity,\n withTiming: identity\n };\n }\n default:\n return null;\n }\n}\nfunction registerRequire(platform, { ignoredModules = [] } = {\n ignoredModules: []\n}) {\n if (isRegistered) {\n return {\n tamaguiRequire: nodeRequire,\n unregister: () => {\n }\n };\n }\n const originalResolveFilename = Module._resolveFilename;\n const { unregister } = register({\n hookIgnoreNodeModules: false,\n // don't transform @tamagui packages - they have pre-built dist files\n hookMatcher: (filename) => {\n if (filename.includes(\"@tamagui\") || /\\/tamagui\\/code\\/(core|ui|packages)\\//.test(filename)) {\n return false;\n }\n return true;\n }\n });\n const tsconfigPatchedResolve = Module._resolveFilename;\n Module._resolveFilename = function(request, ...args) {\n if (request.startsWith(\"@tamagui/\")) {\n return originalResolveFilename.call(this, request, ...args);\n }\n return tsconfigPatchedResolve.call(this, request, ...args);\n };\n if (!og) {\n og = Module.prototype.require;\n }\n isRegistered = true;\n Module.prototype.require = tamaguiRequire;\n function tamaguiRequire(path) {\n const staticExtractionStub = getStaticExtractionStub(path);\n if (staticExtractionStub) {\n return staticExtractionStub;\n }\n if (path === \"tamagui\" && platform === \"native\") {\n return og.apply(this, [\"tamagui/native\"]);\n }\n if (path === \"@tamagui/core\") {\n return requireTamaguiCore(platform, (path2) => {\n return og.apply(this, [path2]);\n });\n }\n const staticEvaluationReplacement = getStaticEvaluationModuleReplacement(path);\n if (staticEvaluationReplacement) {\n if (!(path in compiled)) {\n const replacementPath = nodeRequire.resolve(staticEvaluationReplacement);\n const output = buildSync({\n entryPoints: [replacementPath],\n bundle: true,\n format: \"cjs\",\n platform: \"node\",\n write: false\n }).outputFiles[0].text;\n const replacementModule = new Module(replacementPath, this);\n replacementModule.filename = replacementPath;\n replacementModule.paths = Module._nodeModulePaths(dirname(replacementPath));\n replacementModule._compile(output, replacementPath);\n compiled[path] = replacementModule.exports;\n }\n return compiled[path];\n }\n if (staticEvaluationReplacement === null || isIgnoredStaticEvaluationModule(path, ignoredModules)) {\n return {};\n }\n if (esbuildIgnoreFilesRegex.test(path)) {\n return {};\n }\n if (path in compiled) {\n return compiled[path];\n }\n if (path === \"react-native-svg\") {\n return og.apply(this, [\"@tamagui/react-native-svg\"]);\n }\n if (path === \"react-native/package.json\") {\n return og.apply(this, [\"react-native-web/package.json\"]);\n }\n if (path === \"@tamagui/react-native-web-lite\" || path === \"react-native\" || path.startsWith(\"react-native/\") || path === \"react-native-web\" || path.startsWith(\"react-native-web/\")) {\n try {\n return og.apply(\"react-native\");\n } catch {\n return og.apply(this, [\"@tamagui/react-native-web-lite\"]);\n }\n }\n try {\n const out = og.apply(this, arguments);\n return out;\n } catch (err) {\n if (err?.code === \"TAMAGUI_STATIC_EVALUATION_ERROR\") {\n throw err;\n }\n const importer = this?.filename || this?.id || \"<unknown module>\";\n const reason = err instanceof Error ? err.message : String(err);\n const failedModule = reason.match(/Cannot find native module ['\"]([^'\"]+)['\"]/)?.[1] || path;\n throw new StaticEvaluationError(path, importer, failedModule, reason, {\n cause: err\n });\n }\n }\n return {\n tamaguiRequire,\n unregister: () => {\n unregister();\n isRegistered = false;\n Module.prototype.require = og;\n }\n };\n}\nexport {\n getNameToPaths,\n registerRequire,\n setRequireResult\n};\n//# sourceMappingURL=registerRequire.js.map\n"],"mappings":";;;;;;;;;AAUA,MAAM,cAAc,CAAC;AACrB,MAAM,cAAc,cAClB,OAAO,eAAe,WAAW,aAAa,YAAY,GAC5D;AACA,MAAM,uBAAuB;AAC7B,MAAM,SAAS,YAAY,aAAa;AACxC,IAAI,eAAe;AACnB,IAAI;AACJ,IAAM,wBAAN,cAAoC,MAAM;CACxC,YAAY,YAAY,UAAU,cAAc,QAAQ,SAAS;EAC/D,MACE,wCAAwC,aAAa,mBAAmB,SAAS;UAC7E,OAAO;sJACqI,WAAW,qEAC3J,OACF;EACA,KAAK,aAAa;EAClB,KAAK,WAAW;EAChB,KAAK,eAAe;EACpB,KAAK,SAAS;CAChB;CAC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jG,OAAO,CAAC;EACV;EACA,IAAI,wBAAwB,KAAK,IAAI,GAAG;GACtC,OAAO,CAAC;EACV;EACA,IAAI,QAAQ,UAAU;GACpB,OAAO,SAAS;EAClB;EACA,IAAI,SAAS,oBAAoB;GAC/B,OAAO,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC;EACrD;EACA,IAAI,SAAS,6BAA6B;GACxC,OAAO,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC;EACzD;EACA,IAAI,SAAS,oCAAoC,SAAS,kBAAkB,KAAK,WAAW,eAAe,KAAK,SAAS,sBAAsB,KAAK,WAAW,mBAAmB,GAAG;GACnL,IAAI;IACF,OAAO,GAAG,MAAM,cAAc;GAChC,QAAQ;IACN,OAAO,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC;GAC1D;EACF;EACA,IAAI;GACF,MAAM,MAAM,GAAG,MAAM,MAAM,SAAS;GACpC,OAAO;EACT,SAAS,KAAK;GACZ,IAAI,KAAK,SAAS,mCAAmC;IACnD,MAAM;GACR;GACA,MAAM,WAAW,MAAM,YAAY,MAAM,MAAM;GAC/C,MAAM,SAAS,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GAC9D,MAAM,eAAe,OAAO,MAAM,4CAA4C,CAAC,GAAG,MAAM;GACxF,MAAM,IAAI,sBAAsB,MAAM,UAAU,cAAc,QAAQ,EACpE,OAAO,IACT,CAAC;EACH;CACF;CACA,OAAO;EACL;EACA,kBAAkB;GAChB,WAAW;GACX,eAAe;GACf,OAAO,UAAU,UAAU;EAC7B;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"registerRequire.js","names":[],"sources":["esm/registerRequire.js"],"sourcesContent":["import { dirname } from \"node:path\";\nimport { buildSync } from \"esbuild\";\nimport { register } from \"esbuild-register/dist/node\";\nimport { createRequire } from \"node:module\";\nimport { esbuildIgnoreFilesRegex } from \"./extractor/bundle\";\nimport { requireTamaguiCore } from \"./helpers/requireTamaguiCore\";\nimport { getNativeColorFactories } from \"@tamagui/react-native-web-lite/nativeColors\";\nimport {\n getStaticEvaluationModuleReplacement,\n isIgnoredStaticEvaluationModule\n} from \"./staticEvaluationIgnoredModules\";\nconst nameToPaths = {};\nconst nodeRequire = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst getNameToPaths = () => nameToPaths;\nconst Module = nodeRequire(\"node:module\");\nlet isRegistered = false;\nlet og;\nclass StaticEvaluationError extends Error {\n constructor(moduleName, importer, failedModule, reason, options) {\n super(\n `[tamagui] Failed to evaluate module \"${failedModule}\" imported from \"${importer}\" while loading the Tamagui config and configured components.\nReason: ${reason}\nFix the module so it can run in Node during the build. If it is runtime-only and none of its exports create your Tamagui config or components, add \"${moduleName}\" to dangerouslyIgnoreStaticEvaluationModules in tamagui.build.ts.`,\n options\n );\n this.moduleName = moduleName;\n this.importer = importer;\n this.failedModule = failedModule;\n this.reason = reason;\n }\n moduleName;\n importer;\n failedModule;\n reason;\n code = \"TAMAGUI_STATIC_EVALUATION_ERROR\";\n}\nconst compiled = {};\nfunction setRequireResult(name, result) {\n compiled[name] = result;\n}\nfunction requireNativeEvaluationModule(modulePath, nativePlatform) {\n const registration = registerRequire(\"native\", { nativePlatform });\n try {\n return nodeRequire(modulePath);\n } finally {\n registration.unregister();\n }\n}\nfunction getStaticExtractionStub(path) {\n switch (path) {\n case \"expo-constants\":\n return {\n __esModule: true,\n default: {\n executionEnvironment: null\n },\n ExecutionEnvironment: {\n Bare: \"bare\",\n Standalone: \"standalone\",\n StoreClient: \"storeClient\"\n }\n };\n case \"expo-updates\":\n return {\n __esModule: true,\n default: {\n isEnabled: false,\n isUsingEmbeddedAssets: true\n },\n checkForUpdateAsync: async () => ({ isAvailable: false }),\n fetchUpdateAsync: async () => ({ isNew: false }),\n reloadAsync: async () => {\n }\n };\n case \"react-native-reanimated\": {\n const identity = (value) => value;\n const sharedValue = (value) => ({\n value,\n get: () => value,\n set: (next) => {\n value = typeof next === \"function\" ? next(value) : next;\n }\n });\n const Animated = {\n createAnimatedComponent: identity,\n View: () => null,\n Text: () => null\n };\n return {\n __esModule: true,\n default: Animated,\n cancelAnimation: () => {\n },\n runOnJS: identity,\n runOnUI: identity,\n useAnimatedReaction: () => {\n },\n useAnimatedStyle: (callback) => callback(),\n useDerivedValue: (callback) => sharedValue(callback()),\n useSharedValue: sharedValue,\n withDelay: (_delay, animation) => animation,\n withSpring: identity,\n withTiming: identity\n };\n }\n default:\n return null;\n }\n}\nfunction registerRequire(platform, {\n ignoredModules = [],\n nativePlatform\n} = {\n ignoredModules: []\n}) {\n if (isRegistered) {\n return {\n tamaguiRequire: nodeRequire,\n unregister: () => {\n }\n };\n }\n const originalResolveFilename = Module._resolveFilename;\n const { unregister } = register({\n hookIgnoreNodeModules: false,\n // don't transform @tamagui packages - they have pre-built dist files\n hookMatcher: (filename) => {\n if (filename.includes(\"@tamagui\") || /\\/tamagui\\/code\\/(core|ui|packages)\\//.test(filename)) {\n return false;\n }\n return true;\n }\n });\n const tsconfigPatchedResolve = Module._resolveFilename;\n Module._resolveFilename = function(request, ...args) {\n if (request.startsWith(\"@tamagui/\")) {\n return originalResolveFilename.call(this, request, ...args);\n }\n return tsconfigPatchedResolve.call(this, request, ...args);\n };\n if (!og) {\n og = Module.prototype.require;\n }\n isRegistered = true;\n Module.prototype.require = tamaguiRequire;\n let nativeModule;\n function tamaguiRequire(path) {\n const staticExtractionStub = getStaticExtractionStub(path);\n if (staticExtractionStub) {\n return staticExtractionStub;\n }\n if (path === \"tamagui\" && platform === \"native\") {\n return og.apply(this, [\"tamagui/native\"]);\n }\n if (path === \"@tamagui/core\") {\n return requireTamaguiCore(platform, (path2) => {\n return og.apply(this, [path2]);\n });\n }\n const staticEvaluationReplacement = getStaticEvaluationModuleReplacement(path);\n if (staticEvaluationReplacement) {\n if (!(path in compiled)) {\n const replacementPath = nodeRequire.resolve(staticEvaluationReplacement);\n const output = buildSync({\n entryPoints: [replacementPath],\n bundle: true,\n format: \"cjs\",\n platform: \"node\",\n write: false\n }).outputFiles[0].text;\n const replacementModule = new Module(replacementPath, this);\n replacementModule.filename = replacementPath;\n replacementModule.paths = Module._nodeModulePaths(dirname(replacementPath));\n replacementModule._compile(output, replacementPath);\n compiled[path] = replacementModule.exports;\n }\n return compiled[path];\n }\n if (staticEvaluationReplacement === null || isIgnoredStaticEvaluationModule(path, ignoredModules)) {\n return {};\n }\n if (esbuildIgnoreFilesRegex.test(path)) {\n return {};\n }\n if (path in compiled) {\n return compiled[path];\n }\n if (path === \"react-native-svg\") {\n return og.apply(this, [\"@tamagui/react-native-svg\"]);\n }\n if (path === \"react-native/package.json\") {\n return og.apply(this, [\"react-native-web/package.json\"]);\n }\n if (platform === \"native\" && path === \"react-native\") {\n return nativeModule ||= {\n ...og.apply(this, [\"@tamagui/react-native-web-lite\"]),\n ...getNativeColorFactories(nativePlatform || process.env.EXPO_OS || \"ios\")\n };\n }\n if (path === \"@tamagui/react-native-web-lite\" || path === \"react-native\" || path.startsWith(\"react-native/\") || path === \"react-native-web\" || path.startsWith(\"react-native-web/\")) {\n try {\n return og.apply(\"react-native\");\n } catch {\n return og.apply(this, [\"@tamagui/react-native-web-lite\"]);\n }\n }\n try {\n const out = og.apply(this, arguments);\n return out;\n } catch (err) {\n if (err?.code === \"TAMAGUI_STATIC_EVALUATION_ERROR\") {\n throw err;\n }\n const importer = this?.filename || this?.id || \"<unknown module>\";\n const reason = err instanceof Error ? err.message : String(err);\n const failedModule = reason.match(/Cannot find native module ['\"]([^'\"]+)['\"]/)?.[1] || path;\n throw new StaticEvaluationError(path, importer, failedModule, reason, {\n cause: err\n });\n }\n }\n return {\n tamaguiRequire,\n unregister: () => {\n unregister();\n isRegistered = false;\n Module.prototype.require = og;\n }\n };\n}\nexport {\n getNameToPaths,\n registerRequire,\n requireNativeEvaluationModule,\n setRequireResult\n};\n//# sourceMappingURL=registerRequire.js.map\n"],"mappings":";;;;;;;;;;AAWA,MAAM,cAAc,CAAC;AACrB,MAAM,cAAc,cAClB,OAAO,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M,MAAM,GAAG,MAAM,MAAM,SAAS;GACpC,OAAO;EACT,SAAS,KAAK;GACZ,IAAI,KAAK,SAAS,mCAAmC;IACnD,MAAM;GACR;GACA,MAAM,WAAW,MAAM,YAAY,MAAM,MAAM;GAC/C,MAAM,SAAS,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GAC9D,MAAM,eAAe,OAAO,MAAM,4CAA4C,CAAC,GAAG,MAAM;GACxF,MAAM,IAAI,sBAAsB,MAAM,UAAU,cAAc,QAAQ,EACpE,OAAO,IACT,CAAC;EACH;CACF;CACA,OAAO;EACL;EACA,kBAAkB;GAChB,WAAW;GACX,eAAe;GACf,OAAO,UAAU,UAAU;EAC7B;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"clean:build": "tamagui-build clean:build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@tamagui/animation-helpers": "3.1.
|
|
49
|
-
"@tamagui/cli-color": "3.1.
|
|
50
|
-
"@tamagui/compiler-core": "3.1.
|
|
51
|
-
"@tamagui/config-default": "3.1.
|
|
52
|
-
"@tamagui/core": "3.1.
|
|
53
|
-
"@tamagui/dom": "3.1.
|
|
54
|
-
"@tamagui/fake-react-native": "3.1.
|
|
55
|
-
"@tamagui/generate-themes": "3.1.
|
|
56
|
-
"@tamagui/helpers": "3.1.
|
|
57
|
-
"@tamagui/helpers-node": "3.1.
|
|
58
|
-
"@tamagui/react-native-web-internals": "3.1.
|
|
59
|
-
"@tamagui/react-native-web-lite": "3.1.
|
|
60
|
-
"@tamagui/shorthands": "3.1.
|
|
61
|
-
"@tamagui/style-grammar": "3.1.
|
|
62
|
-
"@tamagui/types": "3.1.
|
|
63
|
-
"@tamagui/web": "3.1.
|
|
48
|
+
"@tamagui/animation-helpers": "3.1.4",
|
|
49
|
+
"@tamagui/cli-color": "3.1.4",
|
|
50
|
+
"@tamagui/compiler-core": "3.1.4",
|
|
51
|
+
"@tamagui/config-default": "3.1.4",
|
|
52
|
+
"@tamagui/core": "3.1.4",
|
|
53
|
+
"@tamagui/dom": "3.1.4",
|
|
54
|
+
"@tamagui/fake-react-native": "3.1.4",
|
|
55
|
+
"@tamagui/generate-themes": "3.1.4",
|
|
56
|
+
"@tamagui/helpers": "3.1.4",
|
|
57
|
+
"@tamagui/helpers-node": "3.1.4",
|
|
58
|
+
"@tamagui/react-native-web-internals": "3.1.4",
|
|
59
|
+
"@tamagui/react-native-web-lite": "3.1.4",
|
|
60
|
+
"@tamagui/shorthands": "3.1.4",
|
|
61
|
+
"@tamagui/style-grammar": "3.1.4",
|
|
62
|
+
"@tamagui/types": "3.1.4",
|
|
63
|
+
"@tamagui/web": "3.1.4",
|
|
64
64
|
"browserslist": "^4.28.1",
|
|
65
65
|
"check-dependency-version-consistency": "^4.1.0",
|
|
66
66
|
"esbuild": "0.28.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"react-native-web": "~0.21.4"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@tamagui/build": "3.1.
|
|
76
|
+
"@tamagui/build": "3.1.4",
|
|
77
77
|
"@types/find-root": "^1.1.2",
|
|
78
78
|
"@types/node": "^22.1.0",
|
|
79
79
|
"@types/webpack": "^4.41.26",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
95
95
|
"directory": "code/compiler/static"
|
|
96
96
|
},
|
|
97
|
-
"releaseSourceCommit": "
|
|
97
|
+
"releaseSourceCommit": "7ea8fdab519a1477311f2d882403e7926aba59df"
|
|
98
98
|
}
|
package/src/compilerHost.ts
CHANGED
|
@@ -1455,6 +1455,11 @@ export function createTamaguiCompilerHost(
|
|
|
1455
1455
|
}
|
|
1456
1456
|
const row = TAGS[tag]
|
|
1457
1457
|
const textLike = row.backing === 'text' || row.backing === 'textinput'
|
|
1458
|
+
const moduleName = modulesById.get(identity.resolvedId)
|
|
1459
|
+
const frontend = moduleName
|
|
1460
|
+
? componentsByModule.get(moduleName)?.nameToInfo[textLike ? 'Text' : 'View']
|
|
1461
|
+
?.staticConfig.styleFrontend
|
|
1462
|
+
: undefined
|
|
1458
1463
|
const base = (textLike ? core.Text : core.View)?.staticConfig as
|
|
1459
1464
|
| StaticConfig
|
|
1460
1465
|
| undefined
|
|
@@ -1481,6 +1486,7 @@ export function createTamaguiCompilerHost(
|
|
|
1481
1486
|
displayName: tag,
|
|
1482
1487
|
staticConfig: normalizeStaticConfig({
|
|
1483
1488
|
...base,
|
|
1489
|
+
styleFrontend: frontend,
|
|
1484
1490
|
isDOM: true,
|
|
1485
1491
|
isInput: row.backing === 'textinput',
|
|
1486
1492
|
// CSS text properties may be authored on any element and inherited by
|
package/src/extractor/bundle.ts
CHANGED
|
@@ -57,6 +57,7 @@ type Props = Omit<Partial<esbuild.BuildOptions>, 'entryPoints'> & {
|
|
|
57
57
|
entryPoints: string[]
|
|
58
58
|
resolvePlatformSpecificEntries?: boolean
|
|
59
59
|
dangerouslyIgnoreStaticEvaluationModules?: string[]
|
|
60
|
+
nativePlatform?: 'ios' | 'android' | 'macos'
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
function getESBuildConfig(
|
|
@@ -64,6 +65,7 @@ function getESBuildConfig(
|
|
|
64
65
|
entryPoints,
|
|
65
66
|
resolvePlatformSpecificEntries,
|
|
66
67
|
dangerouslyIgnoreStaticEvaluationModules = [],
|
|
68
|
+
nativePlatform,
|
|
67
69
|
define: callerDefine,
|
|
68
70
|
conditions: callerConditions = [],
|
|
69
71
|
...options
|
|
@@ -216,6 +218,23 @@ function getESBuildConfig(
|
|
|
216
218
|
{
|
|
217
219
|
name: 'external',
|
|
218
220
|
setup(build) {
|
|
221
|
+
if (platform === 'native') {
|
|
222
|
+
build.onResolve({ filter: /^react-native$/ }, () => ({
|
|
223
|
+
path: 'react-native',
|
|
224
|
+
namespace: 'tamagui-native-evaluation',
|
|
225
|
+
}))
|
|
226
|
+
build.onLoad(
|
|
227
|
+
{ filter: /.*/, namespace: 'tamagui-native-evaluation' },
|
|
228
|
+
() => ({
|
|
229
|
+
// resolve from the compiler and bundle only the pure native color helper.
|
|
230
|
+
contents: `export * from ${JSON.stringify(nodeRequire.resolve('@tamagui/react-native-web-lite'))}
|
|
231
|
+
import { getNativeColorFactories } from ${JSON.stringify(nodeRequire.resolve('@tamagui/react-native-web-lite/nativeColors'))}
|
|
232
|
+
export const { PlatformColor, DynamicColorIOS } = getNativeColorFactories(${JSON.stringify(nativePlatform || process.env.EXPO_OS || 'ios')})`,
|
|
233
|
+
loader: 'js',
|
|
234
|
+
resolveDir: build.initialOptions.absWorkingDir || process.cwd(),
|
|
235
|
+
})
|
|
236
|
+
)
|
|
237
|
+
}
|
|
219
238
|
// only externalize @tamagui/core and @tamagui/web - these are provided at runtime
|
|
220
239
|
// other @tamagui/* packages (like @tamagui/config/v6) must be bundled in to avoid
|
|
221
240
|
// ESM race conditions when multiple threads require() them concurrently
|
|
@@ -249,6 +249,7 @@ function getBundleKey(props: TamaguiOptions) {
|
|
|
249
249
|
components: props.components,
|
|
250
250
|
config: props.config,
|
|
251
251
|
platform: props.platform,
|
|
252
|
+
nativePlatform: props.nativePlatform,
|
|
252
253
|
dangerouslyIgnoreStaticEvaluationModules:
|
|
253
254
|
props.dangerouslyIgnoreStaticEvaluationModules,
|
|
254
255
|
})
|
|
@@ -402,7 +403,10 @@ export async function bundleConfig(props: TamaguiOptions, rebuild = false) {
|
|
|
402
403
|
// so their contents are platform-specific. keep web and native on separate paths:
|
|
403
404
|
// sharing one path let a native bundle be picked up as the web config (and vice
|
|
404
405
|
// versa) by the mtime reuse check below, emitting web classes with no CSS variables.
|
|
405
|
-
const platformSuffix =
|
|
406
|
+
const platformSuffix =
|
|
407
|
+
props.platform === 'native'
|
|
408
|
+
? `.native${props.nativePlatform ? `.${props.nativePlatform}` : ''}`
|
|
409
|
+
: '.web'
|
|
406
410
|
// detect module format from config entry point
|
|
407
411
|
const configFormat = configEntry ? detectModuleFormat(configEntry) : 'cjs'
|
|
408
412
|
const configExt = configFormat === 'esm' ? '.mjs' : '.cjs'
|
|
@@ -489,6 +493,7 @@ export async function bundleConfig(props: TamaguiOptions, rebuild = false) {
|
|
|
489
493
|
metafile: true,
|
|
490
494
|
dangerouslyIgnoreStaticEvaluationModules:
|
|
491
495
|
props.dangerouslyIgnoreStaticEvaluationModules,
|
|
496
|
+
nativePlatform: props.nativePlatform,
|
|
492
497
|
...esbuildExtraOptions,
|
|
493
498
|
},
|
|
494
499
|
props.platform || 'web'
|
|
@@ -512,6 +517,7 @@ export async function bundleConfig(props: TamaguiOptions, rebuild = false) {
|
|
|
512
517
|
metafile: true,
|
|
513
518
|
dangerouslyIgnoreStaticEvaluationModules:
|
|
514
519
|
props.dangerouslyIgnoreStaticEvaluationModules,
|
|
520
|
+
nativePlatform: props.nativePlatform,
|
|
515
521
|
...esbuildExtraOptions,
|
|
516
522
|
},
|
|
517
523
|
props.platform || 'web'
|
|
@@ -763,6 +769,7 @@ export async function evaluateComponentModule(
|
|
|
763
769
|
process.env.TAMAGUI_IS_SERVER = 'true'
|
|
764
770
|
const { unregister } = registerRequire(props.platform || 'web', {
|
|
765
771
|
ignoredModules: props.dangerouslyIgnoreStaticEvaluationModules,
|
|
772
|
+
nativePlatform: props.nativePlatform,
|
|
766
773
|
})
|
|
767
774
|
try {
|
|
768
775
|
try {
|
|
@@ -814,6 +821,7 @@ export async function loadComponentsInner(
|
|
|
814
821
|
|
|
815
822
|
const key = JSON.stringify([
|
|
816
823
|
props.platform,
|
|
824
|
+
props.nativePlatform,
|
|
817
825
|
componentsModules,
|
|
818
826
|
props.dangerouslyIgnoreStaticEvaluationModules,
|
|
819
827
|
])
|
|
@@ -824,6 +832,7 @@ export async function loadComponentsInner(
|
|
|
824
832
|
|
|
825
833
|
const { unregister } = registerRequire(props.platform || 'web', {
|
|
826
834
|
ignoredModules: props.dangerouslyIgnoreStaticEvaluationModules,
|
|
835
|
+
nativePlatform: props.nativePlatform,
|
|
827
836
|
})
|
|
828
837
|
|
|
829
838
|
try {
|
|
@@ -974,6 +983,7 @@ export function loadComponentsInnerSync(
|
|
|
974
983
|
|
|
975
984
|
const key = JSON.stringify([
|
|
976
985
|
props.platform,
|
|
986
|
+
props.nativePlatform,
|
|
977
987
|
componentsModules,
|
|
978
988
|
props.dangerouslyIgnoreStaticEvaluationModules,
|
|
979
989
|
])
|
|
@@ -984,6 +994,7 @@ export function loadComponentsInnerSync(
|
|
|
984
994
|
|
|
985
995
|
const { unregister } = registerRequire(props.platform || 'web', {
|
|
986
996
|
ignoredModules: props.dangerouslyIgnoreStaticEvaluationModules,
|
|
997
|
+
nativePlatform: props.nativePlatform,
|
|
987
998
|
})
|
|
988
999
|
|
|
989
1000
|
try {
|
package/src/registerRequire.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { createRequire } from 'node:module'
|
|
|
5
5
|
|
|
6
6
|
import { esbuildIgnoreFilesRegex } from './extractor/bundle'
|
|
7
7
|
import { requireTamaguiCore } from './helpers/requireTamaguiCore'
|
|
8
|
+
import { getNativeColorFactories } from '@tamagui/react-native-web-lite/nativeColors'
|
|
8
9
|
import {
|
|
9
10
|
getStaticEvaluationModuleReplacement,
|
|
10
11
|
isIgnoredStaticEvaluationModule,
|
|
@@ -45,6 +46,20 @@ export function setRequireResult(name: string, result: any) {
|
|
|
45
46
|
compiled[name] = result
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
// evaluate the whole native dependency graph under the compiler's require hook.
|
|
50
|
+
// both export discovery and generated vite facades use this boundary.
|
|
51
|
+
export function requireNativeEvaluationModule(
|
|
52
|
+
modulePath: string,
|
|
53
|
+
nativePlatform?: 'ios' | 'android' | 'macos'
|
|
54
|
+
) {
|
|
55
|
+
const registration = registerRequire('native', { nativePlatform })
|
|
56
|
+
try {
|
|
57
|
+
return nodeRequire(modulePath)
|
|
58
|
+
} finally {
|
|
59
|
+
registration.unregister()
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
48
63
|
function getStaticExtractionStub(path: string) {
|
|
49
64
|
switch (path) {
|
|
50
65
|
case 'expo-constants':
|
|
@@ -106,7 +121,13 @@ function getStaticExtractionStub(path: string) {
|
|
|
106
121
|
|
|
107
122
|
export function registerRequire(
|
|
108
123
|
platform: TamaguiPlatform,
|
|
109
|
-
{
|
|
124
|
+
{
|
|
125
|
+
ignoredModules = [],
|
|
126
|
+
nativePlatform,
|
|
127
|
+
}: {
|
|
128
|
+
ignoredModules?: string[]
|
|
129
|
+
nativePlatform?: 'ios' | 'android' | 'macos'
|
|
130
|
+
} = {
|
|
110
131
|
ignoredModules: [],
|
|
111
132
|
}
|
|
112
133
|
) {
|
|
@@ -157,6 +178,8 @@ export function registerRequire(
|
|
|
157
178
|
|
|
158
179
|
Module.prototype.require = tamaguiRequire
|
|
159
180
|
|
|
181
|
+
let nativeModule: Record<string, unknown> | undefined
|
|
182
|
+
|
|
160
183
|
function tamaguiRequire(this: any, path: string) {
|
|
161
184
|
const staticExtractionStub = getStaticExtractionStub(path)
|
|
162
185
|
if (staticExtractionStub) {
|
|
@@ -216,6 +239,13 @@ export function registerRequire(
|
|
|
216
239
|
return og.apply(this, ['react-native-web/package.json'])
|
|
217
240
|
}
|
|
218
241
|
|
|
242
|
+
if (platform === 'native' && path === 'react-native') {
|
|
243
|
+
return (nativeModule ||= {
|
|
244
|
+
...og.apply(this, ['@tamagui/react-native-web-lite']),
|
|
245
|
+
...getNativeColorFactories(nativePlatform || process.env.EXPO_OS || 'ios'),
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
|
|
219
249
|
if (
|
|
220
250
|
path === '@tamagui/react-native-web-lite' ||
|
|
221
251
|
path === 'react-native' ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compilerHost.d.ts","sourceRoot":"","sources":["../src/compilerHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,cAAc,EASf,MAAM,wBAAwB,CAAA;AA0C/B,OAAO,KAAK,EAAiC,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAExF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAIhE,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAClD;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,SAAS,gBAAgB,EAAE,EACvC,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,GACnD,yBAAyB,CAS3B;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,qBAAqB,CAAA;IACpC,UAAU,EAAE,gBAAgB,EAAE,CAAA;IAC9B,gBAAgB,EAAE,uBAAuB,EAAE,CAAA;IAC3C,qFAAqF;IACrF,QAAQ,CAAC,EAAE,yBAAyB,CAAA;IACpC,wEAAwE;IACxE,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,mEAAmE;IACnE,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAmoCD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,0BAA0B,GAClC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"compilerHost.d.ts","sourceRoot":"","sources":["../src/compilerHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,cAAc,EASf,MAAM,wBAAwB,CAAA;AA0C/B,OAAO,KAAK,EAAiC,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAExF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAIhE,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,+EAA+E;IAC/E,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAClD;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,SAAS,gBAAgB,EAAE,EACvC,gBAAgB,EAAE,SAAS,uBAAuB,EAAE,GACnD,yBAAyB,CAS3B;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,qBAAqB,CAAA;IACpC,UAAU,EAAE,gBAAgB,EAAE,CAAA;IAC9B,gBAAgB,EAAE,uBAAuB,EAAE,CAAA;IAC3C,qFAAqF;IACrF,QAAQ,CAAC,EAAE,yBAAyB,CAAA;IACpC,wEAAwE;IACxE,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,mEAAmE;IACnE,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAmoCD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,0BAA0B,GAClC,oBAAoB,CAk9FtB"}
|
|
@@ -34,6 +34,7 @@ type Props = Omit<Partial<esbuild.BuildOptions>, 'entryPoints'> & {
|
|
|
34
34
|
entryPoints: string[];
|
|
35
35
|
resolvePlatformSpecificEntries?: boolean;
|
|
36
36
|
dangerouslyIgnoreStaticEvaluationModules?: string[];
|
|
37
|
+
nativePlatform?: 'ios' | 'android' | 'macos';
|
|
37
38
|
};
|
|
38
39
|
export declare function esbundleTamaguiConfig(props: Props, platform: TamaguiPlatform, aliases?: Record<string, string>): Promise<esbuild.BuildResult<{
|
|
39
40
|
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AAGA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAW/C,eAAO,MAAM,mBAAmB;aAC9B,KAAK,EAAE,KAAK;aACZ,MAAM,EAAE,SAAS;aACjB,MAAM,EAAE,SAAS;aACjB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,SAAS;aACjB,MAAM,EAAE,SAAS;aACjB,OAAO,EAAE,SAAS;aAClB,QAAQ,EAAE,SAAS;aACnB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,SAAS;aACjB,MAAM,EAAE,SAAS;aACjB,MAAM,EAAE,SAAS;aACjB,MAAM,EAAE,MAAM;aACd,QAAQ,EAAE,MAAM;aAChB,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM;aACf,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM;aACf,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,MAAM;aACd,OAAO,EAAE,MAAM;aACf,OAAO,EAAE,OAAO;CACR,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAqD,CAAA;AAEzF;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAA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AAM,UAY/E;AA0BD,YAAY,EAAE,kBAAkB,EAAE,CAAA;AAElC,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,uBAwD3E"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { TamaguiPlatform } from './types';
|
|
2
2
|
export declare const getNameToPaths: () => {};
|
|
3
3
|
export declare function setRequireResult(name: string, result: any): void;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function requireNativeEvaluationModule(modulePath: string, nativePlatform?: 'ios' | 'android' | 'macos'): any;
|
|
5
|
+
export declare function registerRequire(platform: TamaguiPlatform, { ignoredModules, nativePlatform, }?: {
|
|
5
6
|
ignoredModules?: string[];
|
|
7
|
+
nativePlatform?: 'ios' | 'android' | 'macos';
|
|
6
8
|
}): {
|
|
7
9
|
tamaguiRequire: (this: any, path: string) => any;
|
|
8
10
|
unregister: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registerRequire.d.ts","sourceRoot":"","sources":["../src/registerRequire.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAO9C,eAAO,MAAM,cAAc,UAAoB,CAAA;AAyB/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAEzD;AAID,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,EAClB,cAAc,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,OAQ7C;AA6DD,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,eAAe,EACzB,EACE,cAAmB,EACnB,cAAc,GACf,GAAE;IACD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,cAAc,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAA;CAG7C;2BAmD6B,GAAG,QAAQ,MAAM;;EAyGhD"}
|