@tamagui/static 1.89.26 → 1.89.27-1708113113238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/cjs/constants.native.js +4 -4
  2. package/dist/cjs/constants.native.js.map +3 -3
  3. package/dist/cjs/extractor/accessSafe.native.js +1 -5
  4. package/dist/cjs/extractor/accessSafe.native.js.map +3 -3
  5. package/dist/cjs/extractor/babelParse.native.js +5 -8
  6. package/dist/cjs/extractor/babelParse.native.js.map +3 -3
  7. package/dist/cjs/extractor/buildClassName.native.js +31 -42
  8. package/dist/cjs/extractor/buildClassName.native.js.map +3 -3
  9. package/dist/cjs/extractor/bundle.js +6 -4
  10. package/dist/cjs/extractor/bundle.js.map +1 -1
  11. package/dist/cjs/extractor/bundle.native.js +321 -56
  12. package/dist/cjs/extractor/bundle.native.js.map +3 -3
  13. package/dist/cjs/extractor/bundleConfig.native.js +499 -187
  14. package/dist/cjs/extractor/bundleConfig.native.js.map +3 -3
  15. package/dist/cjs/extractor/createEvaluator.native.js +9 -11
  16. package/dist/cjs/extractor/createEvaluator.native.js.map +3 -3
  17. package/dist/cjs/extractor/createExtractor.native.js +1240 -906
  18. package/dist/cjs/extractor/createExtractor.native.js.map +3 -3
  19. package/dist/cjs/extractor/ensureImportingConcat.native.js +11 -17
  20. package/dist/cjs/extractor/ensureImportingConcat.native.js.map +3 -3
  21. package/dist/cjs/extractor/esbuildAliasPlugin.native.js +22 -11
  22. package/dist/cjs/extractor/esbuildAliasPlugin.native.js.map +3 -3
  23. package/dist/cjs/extractor/evaluateAstNode.native.js +15 -21
  24. package/dist/cjs/extractor/evaluateAstNode.native.js.map +3 -3
  25. package/dist/cjs/extractor/extractHelpers.native.js +146 -38
  26. package/dist/cjs/extractor/extractHelpers.native.js.map +3 -3
  27. package/dist/cjs/extractor/extractMediaStyle.native.js +127 -54
  28. package/dist/cjs/extractor/extractMediaStyle.native.js.map +3 -3
  29. package/dist/cjs/extractor/extractToClassNames.native.js +449 -252
  30. package/dist/cjs/extractor/extractToClassNames.native.js.map +3 -3
  31. package/dist/cjs/extractor/findTopmostFunction.native.js +4 -4
  32. package/dist/cjs/extractor/findTopmostFunction.native.js.map +3 -3
  33. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +415 -54
  34. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
  35. package/dist/cjs/extractor/generatedUid.native.js +2 -2
  36. package/dist/cjs/extractor/generatedUid.native.js.map +3 -3
  37. package/dist/cjs/extractor/getPrefixLogs.native.js +2 -1
  38. package/dist/cjs/extractor/getPrefixLogs.native.js.map +3 -3
  39. package/dist/cjs/extractor/getPropValueFromAttributes.native.js +16 -19
  40. package/dist/cjs/extractor/getPropValueFromAttributes.native.js.map +3 -3
  41. package/dist/cjs/extractor/getSourceModule.native.js +20 -7
  42. package/dist/cjs/extractor/getSourceModule.native.js.map +3 -3
  43. package/dist/cjs/extractor/getStaticBindingsForScope.native.js +336 -94
  44. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +3 -3
  45. package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
  46. package/dist/cjs/extractor/hoistClassNames.native.js +8 -10
  47. package/dist/cjs/extractor/hoistClassNames.native.js.map +3 -3
  48. package/dist/cjs/extractor/literalToAst.native.js +89 -19
  49. package/dist/cjs/extractor/literalToAst.native.js.map +3 -3
  50. package/dist/cjs/extractor/loadFile.native.js +16 -8
  51. package/dist/cjs/extractor/loadFile.native.js.map +3 -3
  52. package/dist/cjs/extractor/loadTamagui.js +3 -3
  53. package/dist/cjs/extractor/loadTamagui.js.map +1 -1
  54. package/dist/cjs/extractor/loadTamagui.native.js +667 -192
  55. package/dist/cjs/extractor/loadTamagui.native.js.map +3 -3
  56. package/dist/cjs/extractor/logLines.native.js +24 -6
  57. package/dist/cjs/extractor/logLines.native.js.map +3 -3
  58. package/dist/cjs/extractor/normalizeTernaries.native.js +71 -20
  59. package/dist/cjs/extractor/normalizeTernaries.native.js.map +3 -3
  60. package/dist/cjs/extractor/propsToFontFamilyCache.native.js +3 -3
  61. package/dist/cjs/extractor/propsToFontFamilyCache.native.js.map +3 -3
  62. package/dist/cjs/extractor/removeUnusedHooks.native.js +69 -36
  63. package/dist/cjs/extractor/removeUnusedHooks.native.js.map +3 -3
  64. package/dist/cjs/extractor/timer.native.js +10 -9
  65. package/dist/cjs/extractor/timer.native.js.map +3 -3
  66. package/dist/cjs/extractor/validHTMLAttributes.native.js +1 -1
  67. package/dist/cjs/extractor/validHTMLAttributes.native.js.map +3 -3
  68. package/dist/cjs/getPragmaOptions.native.js +4 -9
  69. package/dist/cjs/getPragmaOptions.native.js.map +3 -3
  70. package/dist/cjs/helpers/memoize.native.js +5 -3
  71. package/dist/cjs/helpers/memoize.native.js.map +3 -3
  72. package/dist/cjs/helpers/requireTamaguiCore.native.js +2 -1
  73. package/dist/cjs/helpers/requireTamaguiCore.native.js.map +3 -3
  74. package/dist/cjs/index.native.js.map +2 -2
  75. package/dist/cjs/minifyCSS.native.js.map +3 -3
  76. package/dist/cjs/registerRequire.native.js +56 -28
  77. package/dist/cjs/registerRequire.native.js.map +3 -3
  78. package/dist/cjs/server.native.js +175 -21
  79. package/dist/cjs/server.native.js.map +3 -3
  80. package/dist/cjs/setup.native.js.map +3 -3
  81. package/dist/cjs/static.native.js.map +2 -2
  82. package/dist/cjs/types.native.js.map +2 -2
  83. package/dist/cjs/webpackPlugin.native.js +26 -5
  84. package/dist/cjs/webpackPlugin.native.js.map +3 -3
  85. package/dist/esm/constants.native.js +4 -3
  86. package/dist/esm/constants.native.js.map +3 -3
  87. package/dist/esm/extractor/accessSafe.native.js +1 -5
  88. package/dist/esm/extractor/accessSafe.native.js.map +3 -3
  89. package/dist/esm/extractor/babelParse.native.js +5 -7
  90. package/dist/esm/extractor/babelParse.native.js.map +3 -3
  91. package/dist/esm/extractor/buildClassName.native.js +31 -41
  92. package/dist/esm/extractor/buildClassName.native.js.map +3 -3
  93. package/dist/esm/extractor/bundle.js +6 -4
  94. package/dist/esm/extractor/bundle.js.map +1 -1
  95. package/dist/esm/extractor/bundle.mjs +7 -5
  96. package/dist/esm/extractor/bundle.native.js +321 -56
  97. package/dist/esm/extractor/bundle.native.js.map +3 -3
  98. package/dist/esm/extractor/bundleConfig.native.js +499 -187
  99. package/dist/esm/extractor/bundleConfig.native.js.map +3 -3
  100. package/dist/esm/extractor/createEvaluator.native.js +9 -11
  101. package/dist/esm/extractor/createEvaluator.native.js.map +3 -3
  102. package/dist/esm/extractor/createExtractor.native.js +1241 -916
  103. package/dist/esm/extractor/createExtractor.native.js.map +3 -3
  104. package/dist/esm/extractor/ensureImportingConcat.native.js +11 -16
  105. package/dist/esm/extractor/ensureImportingConcat.native.js.map +3 -3
  106. package/dist/esm/extractor/esbuildAliasPlugin.native.js +22 -11
  107. package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +3 -3
  108. package/dist/esm/extractor/evaluateAstNode.native.js +15 -21
  109. package/dist/esm/extractor/evaluateAstNode.native.js.map +3 -3
  110. package/dist/esm/extractor/extractHelpers.native.js +146 -38
  111. package/dist/esm/extractor/extractHelpers.native.js.map +3 -3
  112. package/dist/esm/extractor/extractMediaStyle.native.js +127 -54
  113. package/dist/esm/extractor/extractMediaStyle.native.js.map +3 -3
  114. package/dist/esm/extractor/extractToClassNames.native.js +449 -252
  115. package/dist/esm/extractor/extractToClassNames.native.js.map +3 -3
  116. package/dist/esm/extractor/findTopmostFunction.native.js +4 -4
  117. package/dist/esm/extractor/findTopmostFunction.native.js.map +3 -3
  118. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +415 -54
  119. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
  120. package/dist/esm/extractor/generatedUid.native.js +2 -2
  121. package/dist/esm/extractor/generatedUid.native.js.map +3 -3
  122. package/dist/esm/extractor/getPrefixLogs.native.js +2 -1
  123. package/dist/esm/extractor/getPrefixLogs.native.js.map +3 -3
  124. package/dist/esm/extractor/getPropValueFromAttributes.native.js +16 -19
  125. package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +3 -3
  126. package/dist/esm/extractor/getSourceModule.native.js +20 -7
  127. package/dist/esm/extractor/getSourceModule.native.js.map +3 -3
  128. package/dist/esm/extractor/getStaticBindingsForScope.native.js +336 -94
  129. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +3 -3
  130. package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
  131. package/dist/esm/extractor/hoistClassNames.native.js +8 -10
  132. package/dist/esm/extractor/hoistClassNames.native.js.map +3 -3
  133. package/dist/esm/extractor/literalToAst.native.js +89 -19
  134. package/dist/esm/extractor/literalToAst.native.js.map +3 -3
  135. package/dist/esm/extractor/loadFile.native.js +16 -8
  136. package/dist/esm/extractor/loadFile.native.js.map +3 -3
  137. package/dist/esm/extractor/loadTamagui.js +1 -2
  138. package/dist/esm/extractor/loadTamagui.js.map +1 -1
  139. package/dist/esm/extractor/loadTamagui.mjs +5 -3
  140. package/dist/esm/extractor/loadTamagui.native.js +668 -203
  141. package/dist/esm/extractor/loadTamagui.native.js.map +3 -3
  142. package/dist/esm/extractor/logLines.native.js +24 -6
  143. package/dist/esm/extractor/logLines.native.js.map +3 -3
  144. package/dist/esm/extractor/normalizeTernaries.native.js +71 -20
  145. package/dist/esm/extractor/normalizeTernaries.native.js.map +3 -3
  146. package/dist/esm/extractor/propsToFontFamilyCache.native.js +3 -3
  147. package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +3 -3
  148. package/dist/esm/extractor/removeUnusedHooks.native.js +69 -35
  149. package/dist/esm/extractor/removeUnusedHooks.native.js.map +3 -3
  150. package/dist/esm/extractor/timer.native.js +10 -9
  151. package/dist/esm/extractor/timer.native.js.map +3 -3
  152. package/dist/esm/extractor/validHTMLAttributes.native.js +1 -1
  153. package/dist/esm/extractor/validHTMLAttributes.native.js.map +3 -3
  154. package/dist/esm/getPragmaOptions.native.js +4 -9
  155. package/dist/esm/getPragmaOptions.native.js.map +3 -3
  156. package/dist/esm/helpers/memoize.native.js +5 -3
  157. package/dist/esm/helpers/memoize.native.js.map +3 -3
  158. package/dist/esm/helpers/requireTamaguiCore.native.js +2 -1
  159. package/dist/esm/helpers/requireTamaguiCore.native.js.map +3 -3
  160. package/dist/esm/index.native.js.map +1 -1
  161. package/dist/esm/minifyCSS.native.js.map +3 -3
  162. package/dist/esm/registerRequire.native.js +56 -28
  163. package/dist/esm/registerRequire.native.js.map +3 -3
  164. package/dist/esm/server.native.js +175 -21
  165. package/dist/esm/server.native.js.map +3 -3
  166. package/dist/esm/setup.native.js.map +3 -3
  167. package/dist/esm/static.native.js.map +3 -3
  168. package/dist/esm/webpackPlugin.native.js +26 -5
  169. package/dist/esm/webpackPlugin.native.js.map +3 -3
  170. package/package.json +14 -15
  171. package/src/extractor/bundle.ts +5 -2
  172. package/src/extractor/loadTamagui.ts +3 -2
  173. package/types/extractor/bundle.d.ts.map +1 -1
  174. package/types/extractor/loadTamagui.d.ts.map +1 -1
  175. package/tamagui.tsconfig.json +0 -5
@@ -1,4 +1,5 @@
1
- function requireTamaguiCore(platform, ogRequire = require) {
1
+ function requireTamaguiCore(platform) {
2
+ var ogRequire = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : require;
2
3
  if (!platform)
3
4
  throw new Error("No platform given to requireTamaguiCore");
4
5
  return ogRequire(platform === "native" ? "@tamagui/core/native" : "@tamagui/core");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/helpers/requireTamaguiCore.ts"],
4
- "mappings": "AAIO,SAAS,mBACd,UACA,YAAsB,SACU;AAChC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO,UAAU,aAAa,WAAW,yBAAyB,eAAe;AACnF;",
5
- "names": []
3
+ "sources": ["../../../src/helpers/Users/n8/tamagui/packages/static/src/helpers/requireTamaguiCore.ts"],
4
+ "mappings": "AAIO,SAASA,mBACdC,UAAyB;MACzBC,YAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAsBC;AAEtB,MAAI,CAACF;AACH,UAAM,IAAIG,MAAO,yCAAA;AAEnB,SAAOF,UAAUD,aAAa,WAAW,yBAAyB,eAAA;AACpE;",
5
+ "names": ["requireTamaguiCore", "platform", "ogRequire", "require", "Error"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts"],
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/index.ts"],
4
4
  "mappings": "AAAA,OAAO;AACP,cAAc;AACd,cAAc;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/minifyCSS.ts"],
4
- "mappings": "AAAA,OAAO,kBAAkB;AACzB,SAAS,uBAAuB,iBAAiB;AAE1C,SAAS,UAAU,OAAe;AACvC,SAAO,UAAU;AAAA,IACf,UAAU;AAAA,IACV,MAAM,OAAO,KAAK,KAAK;AAAA,IACvB,QAAQ;AAAA,IACR,SAAS,sBAAsB,aAAa,SAAS,CAAC;AAAA,IACtD,WAAW;AAAA,EACb,CAAC;AACH;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/minifyCSS.ts"],
4
+ "mappings": "AAAA,OAAOA,kBAAkB;AACzB,SAASC,uBAAuBC,iBAAiB;AAE1C,SAASC,UAAUC,OAAa;AACrC,SAAOF,UAAU;IACfG,UAAU;IACVC,MAAMC,OAAOC,KAAKJ,KAAAA;IAClBK,QAAQ;IACRC,SAAST,sBAAsBD,aAAa,SAAA,CAAA;IAC5CW,WAAW;EACb,CAAA;AACF;",
5
+ "names": ["browserslist", "browserslistToTargets", "transform", "minifyCSS", "input", "filename", "code", "Buffer", "from", "minify", "targets", "sourceMap"]
6
6
  }
@@ -1,32 +1,59 @@
1
1
  import { register } from "esbuild-register/dist/node";
2
2
  import { requireTamaguiCore } from "./helpers/requireTamaguiCore";
3
3
  import { esbuildIgnoreFilesRegex } from "./extractor/bundle";
4
- const nameToPaths = {}, Module = require("module"), getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web");
5
- let isRegistered = !1, og;
6
- const whitelisted = {
4
+ function _define_property(obj, key, value) {
5
+ return key in obj ? Object.defineProperty(obj, key, {
6
+ value,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : obj[key] = value, obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
15
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
16
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
17
+ }))), ownKeys.forEach(function(key) {
18
+ _define_property(target, key, source[key]);
19
+ });
20
+ }
21
+ return target;
22
+ }
23
+ var _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS, nameToPaths = {}, Module = require("module"), getNameToPaths = function() {
24
+ return nameToPaths;
25
+ }, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), isRegistered = !1, og, whitelisted = {
7
26
  react: !0
8
27
  }, compiled = {};
9
28
  function setRequireResult(name, result) {
10
29
  compiled[name] = result;
11
30
  }
12
- function registerRequire(platform, { proxyWormImports } = {
13
- proxyWormImports: !1
14
- }) {
31
+ function registerRequire(platform) {
32
+ var proxyWormImports = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
33
+ proxyWormImports: !1
34
+ }).proxyWormImports;
15
35
  if (isRegistered)
16
36
  return {
17
37
  tamaguiRequire: require,
18
- unregister: () => {
38
+ unregister: function() {
19
39
  }
20
40
  };
21
- const { unregister } = register({
41
+ var unregister = register({
22
42
  hookIgnoreNodeModules: !1
23
- });
43
+ }).unregister;
24
44
  og || (og = Module.prototype.require), isRegistered = !0, Module.prototype.require = tamaguiRequire;
25
45
  function tamaguiRequire(path) {
46
+ var _this = this;
26
47
  if (path === "tamagui" && platform === "native")
27
- return og.apply(this, ["tamagui/native"]);
48
+ return og.apply(this, [
49
+ "tamagui/native"
50
+ ]);
28
51
  if (path === "@tamagui/core" || path === "@tamagui/web")
29
- return requireTamaguiCore(platform, (path2) => og.apply(this, [path2]));
52
+ return requireTamaguiCore(platform, function(path2) {
53
+ return og.apply(_this, [
54
+ path2
55
+ ]);
56
+ });
30
57
  if (path in compiled)
31
58
  return compiled[path];
32
59
  if (esbuildIgnoreFilesRegex.test(path))
@@ -40,36 +67,37 @@ function registerRequire(platform, { proxyWormImports } = {
40
67
  if (path in knownIgnorableModules)
41
68
  return proxyWorm;
42
69
  if (!whitelisted[path] && proxyWormImports && !path.includes(".tamagui-dynamic-eval"))
43
- return path === "tamagui" ? og.apply(this, [path]) : proxyWorm;
70
+ return path === "tamagui" ? og.apply(this, [
71
+ path
72
+ ]) : proxyWorm;
44
73
  try {
45
- return og.apply(this, arguments);
74
+ var out = og.apply(this, arguments);
75
+ return out;
46
76
  } catch (err) {
47
- return !process.env.TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD && path.includes("tamagui-dynamic-eval") ? void 0 : (allowedIgnores[path] || IGNORES === "true" || (!process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS && !process.env.DEBUG ? hasWarnedForModules.has(path) || (hasWarnedForModules.add(path), console.info(
48
- ` tamagui: skipping ${path} tamagui.dev/docs/intro/errors#warning-001`
49
- )) : console.error(
50
- `Tamagui failed loading "${path}"
77
+ return !process.env.TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD && path.includes("tamagui-dynamic-eval") ? void 0 : (allowedIgnores[path] || IGNORES === "true" || (!process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS && !process.env.DEBUG ? hasWarnedForModules.has(path) || (hasWarnedForModules.add(path), console.info(" tamagui: skipping ".concat(path, " tamagui.dev/docs/intro/errors#warning-001"))) : console.error('Tamagui failed loading "'.concat(path, `"
51
78
 
52
- ${err.message}
53
- ${err.stack}
79
+ `).concat(err.message, `
80
+ `).concat(err.stack, `
54
81
 
55
- `
56
- )), proxyWorm);
82
+ `))), proxyWorm);
57
83
  }
58
84
  }
59
85
  return {
60
86
  tamaguiRequire,
61
- unregister: () => {
87
+ unregister: function() {
62
88
  unregister(), isRegistered = !1, Module.prototype.require = og;
63
89
  }
64
90
  };
65
91
  }
66
- const packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS;
67
- var _a;
68
- const extraIgnores = IGNORES === "true" ? [] : (_a = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) == null ? void 0 : _a.split(","), knownIgnorableModules = {
92
+ var packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : (_process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) === null || _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS === void 0 ? void 0 : _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS.split(","), knownIgnorableModules = _object_spread({
69
93
  "expo-modules": !0,
70
- solito: !0,
71
- ...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map((k) => [k, !0])) || [])
72
- }, hasWarnedForModules = /* @__PURE__ */ new Set(), allowedIgnores = {
94
+ solito: !0
95
+ }, Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map(function(k) {
96
+ return [
97
+ k,
98
+ !0
99
+ ];
100
+ })) || [])), hasWarnedForModules = /* @__PURE__ */ new Set(), allowedIgnores = {
73
101
  "expo-constants": !0,
74
102
  "./ExpoHaptics": !0,
75
103
  "./js/MaskedView": !0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/registerRequire.ts"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AAEzB,SAAS,0B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AACrB;",
5
+ "names": ["register", "requireTamaguiCore", "esbuildIgnoreFilesRegex", "process", "nameToPaths", "Module", "require", "getNameToPaths", "proxyWorm", "rnw", "isRegistered", "og", "whitelisted", "react", "compiled", "setRequireResult", "name", "result", "registerRequire", "platform", "proxyWormImports", "tamaguiRequire", "unregister", "hookIgnoreNodeModules", "prototype", "path", "apply", "test", "startsWith", "packageJson", "knownIgnorableModules", "includes", "out", "arguments", "err", "env", "TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD", "allowedIgnores", "IGNORES", "TAMAGUI_SHOW_FULL_BUNDLE_ERRORS", "DEBUG", "hasWarnedForModules", "has", "add", "console", "info", "error", "message", "stack", "TAMAGUI_IGNORE_BUNDLE_ERRORS", "extraIgnores", "split", "solito", "Object", "fromEntries", "map", "k", "Set"]
6
6
  }
@@ -1,29 +1,183 @@
1
1
  import net from "node:net";
2
- async function startServer(options) {
3
- const port = await getAvailablePort(), server = net.createServer();
4
- server.unref(), await new Promise((resolve, reject) => {
5
- server.on("error", reject), server.on("connection", (conn) => {
6
- conn.on("data", (data) => {
7
- console.info("got", data.toString());
8
- });
9
- }), server.listen({ port }, () => {
10
- const { port: port2 } = server.address();
11
- server.close(() => {
12
- resolve(port2);
13
- });
2
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3
+ try {
4
+ var info = gen[key](arg), value = info.value;
5
+ } catch (error) {
6
+ reject(error);
7
+ return;
8
+ }
9
+ info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
10
+ }
11
+ function _async_to_generator(fn) {
12
+ return function() {
13
+ var self = this, args = arguments;
14
+ return new Promise(function(resolve, reject) {
15
+ var gen = fn.apply(self, args);
16
+ function _next(value) {
17
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
18
+ }
19
+ function _throw(err) {
20
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
21
+ }
22
+ _next(void 0);
14
23
  });
15
- });
24
+ };
25
+ }
26
+ function _ts_generator(thisArg, body) {
27
+ var f, y, t, g, _ = {
28
+ label: 0,
29
+ sent: function() {
30
+ if (t[0] & 1)
31
+ throw t[1];
32
+ return t[1];
33
+ },
34
+ trys: [],
35
+ ops: []
36
+ };
37
+ return g = {
38
+ next: verb(0),
39
+ throw: verb(1),
40
+ return: verb(2)
41
+ }, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
42
+ return this;
43
+ }), g;
44
+ function verb(n) {
45
+ return function(v) {
46
+ return step([
47
+ n,
48
+ v
49
+ ]);
50
+ };
51
+ }
52
+ function step(op) {
53
+ if (f)
54
+ throw new TypeError("Generator is already executing.");
55
+ for (; _; )
56
+ try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
58
+ return t;
59
+ switch (y = 0, t && (op = [
60
+ op[0] & 2,
61
+ t.value
62
+ ]), op[0]) {
63
+ case 0:
64
+ case 1:
65
+ t = op;
66
+ break;
67
+ case 4:
68
+ return _.label++, {
69
+ value: op[1],
70
+ done: !1
71
+ };
72
+ case 5:
73
+ _.label++, y = op[1], op = [
74
+ 0
75
+ ];
76
+ continue;
77
+ case 7:
78
+ op = _.ops.pop(), _.trys.pop();
79
+ continue;
80
+ default:
81
+ if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
82
+ _ = 0;
83
+ continue;
84
+ }
85
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
86
+ _.label = op[1];
87
+ break;
88
+ }
89
+ if (op[0] === 6 && _.label < t[1]) {
90
+ _.label = t[1], t = op;
91
+ break;
92
+ }
93
+ if (t && _.label < t[2]) {
94
+ _.label = t[2], _.ops.push(op);
95
+ break;
96
+ }
97
+ t[2] && _.ops.pop(), _.trys.pop();
98
+ continue;
99
+ }
100
+ op = body.call(thisArg, _);
101
+ } catch (e) {
102
+ op = [
103
+ 6,
104
+ e
105
+ ], y = 0;
106
+ } finally {
107
+ f = t = 0;
108
+ }
109
+ if (op[0] & 5)
110
+ throw op[1];
111
+ return {
112
+ value: op[0] ? op[1] : void 0,
113
+ done: !0
114
+ };
115
+ }
16
116
  }
17
- async function getAvailablePort(port = 8089) {
18
- return checkAvailablePort(port).catch(() => getAvailablePort(port + 1));
117
+ function startServer(options) {
118
+ return _startServer.apply(this, arguments);
119
+ }
120
+ function _startServer() {
121
+ return _startServer = _async_to_generator(function(options) {
122
+ var port, server;
123
+ return _ts_generator(this, function(_state) {
124
+ switch (_state.label) {
125
+ case 0:
126
+ return [
127
+ 4,
128
+ getAvailablePort()
129
+ ];
130
+ case 1:
131
+ return port = _state.sent(), server = net.createServer(), server.unref(), [
132
+ 4,
133
+ new Promise(function(resolve, reject) {
134
+ server.on("error", reject), server.on("connection", function(conn) {
135
+ conn.on("data", function(data) {
136
+ console.info("got", data.toString());
137
+ });
138
+ }), server.listen({
139
+ port
140
+ }, function() {
141
+ var port2 = server.address().port;
142
+ server.close(function() {
143
+ resolve(port2);
144
+ });
145
+ });
146
+ })
147
+ ];
148
+ case 2:
149
+ return _state.sent(), [
150
+ 2
151
+ ];
152
+ }
153
+ });
154
+ }), _startServer.apply(this, arguments);
155
+ }
156
+ function getAvailablePort() {
157
+ return _getAvailablePort.apply(this, arguments);
158
+ }
159
+ function _getAvailablePort() {
160
+ return _getAvailablePort = _async_to_generator(function() {
161
+ var port, _arguments = arguments;
162
+ return _ts_generator(this, function(_state) {
163
+ return port = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : 8089, [
164
+ 2,
165
+ checkAvailablePort(port).catch(function() {
166
+ return getAvailablePort(port + 1);
167
+ })
168
+ ];
169
+ });
170
+ }), _getAvailablePort.apply(this, arguments);
19
171
  }
20
172
  function checkAvailablePort(port) {
21
- return new Promise((resolve, reject) => {
22
- const server = net.createServer();
23
- server.unref(), server.on("error", reject), server.listen({ port }, () => {
24
- const { port: port2 } = server.address();
25
- server.close(() => {
26
- resolve(port2);
173
+ return new Promise(function(resolve, reject) {
174
+ var server = net.createServer();
175
+ server.unref(), server.on("error", reject), server.listen({
176
+ port
177
+ }, function() {
178
+ var _$port = server.address().port;
179
+ server.close(function() {
180
+ resolve(_$port);
27
181
  });
28
182
  });
29
183
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/server.ts"],
4
- "mappings": "AAEA,OAAO,SAAS;AAEhB,eAAsB,YAAY,SAAyB;AACzD,QAAM,OAAO,MAAM,iBAAiB,GAC9B,SAAS,IAAI,aAAa;AAChC,SAAO,MAAM,GAEb,MAAM,IAAI,QAAQ,CAAC,SAAS,WAAW;AACrC,WAAO,GAAG,SAAS,MAAM,GACzB,OAAO,GAAG,cAAc,CAAC,SAAS;AAChC,WAAK,GAAG,QAAQ,CAAC,SAAS;AACxB,gBAAQ,KAAK,OAAO,KAAK,SAAS,CAAC;AAAA,MACrC,CAAC;AAAA,IACH,CAAC,GACD,OAAO,OAAO,EAAE,KAAK,GAAG,MAAM;AAC5B,YAAM,EAAE,MAAAA,MAAK,IAAI,OAAO,QAAQ;AAChC,aAAO,MAAM,MAAM;AACjB,gBAAQA,KAAI;AAAA,MACd,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH;AAEA,eAAe,iBAAiB,OAAO,MAAuB;AAC5D,SAAO,mBAAmB,IAAI,EAAE,MAAM,MAAM,iBAAiB,OAAO,CAAC,CAAC;AACxE;AAEA,SAAS,mBAAmB,MAAc;AACxC,SAAO,IAAI,QAAgB,CAAC,SAAS,WAAW;AAC9C,UAAM,SAAS,IAAI,aAAa;AAChC,WAAO,MAAM,GACb,OAAO,GAAG,SAAS,MAAM,GAEzB,OAAO,OAAO,EAAE,KAAK,GAAG,MAAM;AAC5B,YAAM,EAAE,MAAAA,MAAK,IAAI,OAAO,QAAQ;AAChC,aAAO,MAAM,MAAM;AACjB,gBAAQA,KAAI;AAAA,MACd,CAAC;AAAA,IACH,CAAC;AAAA,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AMhB,iBAAiBF,OAAO,CAAA;;;;EACtE,CAAA,GAFeE,kBAAAA,MAAAA,MAAAA,SAAAA;;AAIf,SAASe,mBAAmBjB,MAAY;AACtC,SAAO,IAAIK,QAAgB,SAACC,SAASC,QAAAA;AACnC,QAAMN,SAASJ,IAAIM,aAAY;AAC/BF,WAAOG,MAAK,GACZH,OAAOO,GAAG,SAASD,MAAAA,GAEnBN,OAAOa,OAAO;MAAEd;IAAK,GAAG,WAAA;AACtB,UAAQA,SAASC,OAAOc,QAAO,EAAvBf;AACRC,aAAOe,MAAM,WAAA;AACXV,gBAAQN,MAAAA;MACV,CAAA;IACF,CAAA;EACF,CAAA;AACF;",
5
+ "names": ["net", "startServer", "options", "port", "server", "getAvailablePort", "createServer", "unref", "Promise", "resolve", "reject", "on", "conn", "data", "console", "info", "toString", "listen", "address", "close", "checkAvailablePort", "catch"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/setup.ts"],
4
- "mappings": "AAAA,QAAQ,IAAI,YAAY;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/setup.ts"],
4
+ "mappings": "AAAAA,QAAQC,IAAIC,YAAY;",
5
+ "names": ["process", "env", "IS_STATIC"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/static.ts"],
4
- "mappings": "AAAA,cAAc;AACd,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/static.ts"],
4
+ "mappings": "AAAA,cAAc;AACd,SAASA,uBAAuB;AAChC,SAASC,oBAAoB;AAC7B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
+ "names": ["createExtractor", "literalToAst"]
6
6
  }
@@ -1,10 +1,31 @@
1
- const pluginName = "TamaguiWebpackPlugin";
2
- class TamaguiWebpackPlugin {
3
- apply(compiler) {
4
- compiler.hooks.run.tap(pluginName, (compilation) => {
5
- });
1
+ function _class_call_check(instance, Constructor) {
2
+ if (!(instance instanceof Constructor))
3
+ throw new TypeError("Cannot call a class as a function");
4
+ }
5
+ function _defineProperties(target, props) {
6
+ for (var i = 0; i < props.length; i++) {
7
+ var descriptor = props[i];
8
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
6
9
  }
7
10
  }
11
+ function _create_class(Constructor, protoProps, staticProps) {
12
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
13
+ }
14
+ var pluginName = "TamaguiWebpackPlugin", TamaguiWebpackPlugin = /* @__PURE__ */ function() {
15
+ "use strict";
16
+ function TamaguiWebpackPlugin2() {
17
+ _class_call_check(this, TamaguiWebpackPlugin2);
18
+ }
19
+ return _create_class(TamaguiWebpackPlugin2, [
20
+ {
21
+ key: "apply",
22
+ value: function(compiler) {
23
+ compiler.hooks.run.tap(pluginName, function(compilation) {
24
+ });
25
+ }
26
+ }
27
+ ]), TamaguiWebpackPlugin2;
28
+ }();
8
29
  export {
9
30
  TamaguiWebpackPlugin
10
31
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/webpackPlugin.ts"],
4
- "mappings": "AAAA,MAAM,aAAa;AAEZ,MAAM,qBAAqB;AAAA,EAChC,MAAM,UAAU;AACd,aAAS,MAAM,IAAI,IAAI,YAAY,CAAC,gBAAgB;AAAA,IAEpD,CAAC;AAAA,EACH;AACF;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/webpackPlugin.ts"],
4
+ "mappings": ";;;;;;;;;;;;;AAAA,IAAMA,aAAa,wBAENC,uBAAN,2BAAA;;WAAMA,wBAAAA;4BAAAA,qBAAAA;;uBAAAA,uBAAAA;;MACXC,KAAAA;aAAAA,SAAMC,UAAQ;AACZA,iBAASC,MAAMC,IAAIC,IAAIN,YAAY,SAACO,aAAAA;QAEpC,CAAA;MACF;;MALWN;;",
5
+ "names": ["pluginName", "TamaguiWebpackPlugin", "apply", "compiler", "hooks", "run", "tap", "compilation"]
6
6
  }
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.89.26",
3
+ "version": "1.89.27-1708113113238",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "files": [
9
- "tamagui.tsconfig.json",
10
9
  "src",
11
10
  "types",
12
11
  "dist"
@@ -35,17 +34,17 @@
35
34
  "@babel/runtime": "^7.23.2",
36
35
  "@babel/traverse": "^7.23.3",
37
36
  "@babel/types": "^7.23.3",
38
- "@tamagui/build": "1.89.26",
39
- "@tamagui/cli-color": "1.89.26",
40
- "@tamagui/config-default": "1.89.26",
41
- "@tamagui/core": "1.89.26",
42
- "@tamagui/fake-react-native": "1.89.26",
43
- "@tamagui/generate-themes": "1.89.26",
44
- "@tamagui/helpers": "1.89.26",
45
- "@tamagui/helpers-node": "1.89.26",
46
- "@tamagui/proxy-worm": "1.89.26",
47
- "@tamagui/shorthands": "1.89.26",
48
- "@tamagui/types": "1.89.26",
37
+ "@tamagui/build": "1.89.27-1708113113238",
38
+ "@tamagui/cli-color": "1.89.27-1708113113238",
39
+ "@tamagui/config-default": "1.89.27-1708113113238",
40
+ "@tamagui/core": "1.89.27-1708113113238",
41
+ "@tamagui/fake-react-native": "1.89.27-1708113113238",
42
+ "@tamagui/generate-themes": "1.89.27-1708113113238",
43
+ "@tamagui/helpers": "1.89.27-1708113113238",
44
+ "@tamagui/helpers-node": "1.89.27-1708113113238",
45
+ "@tamagui/proxy-worm": "1.89.27-1708113113238",
46
+ "@tamagui/shorthands": "1.89.27-1708113113238",
47
+ "@tamagui/types": "1.89.27-1708113113238",
49
48
  "babel-literal-to-ast": "^2.1.0",
50
49
  "browserslist": "^4.22.2",
51
50
  "esbuild": "^0.19.11",
@@ -56,8 +55,8 @@
56
55
  "invariant": "^2.2.4",
57
56
  "lodash": "^4.17.21",
58
57
  "react-native-web": "^0.19.10",
59
- "react-native-web-internals": "1.89.26",
60
- "react-native-web-lite": "1.89.26"
58
+ "react-native-web-internals": "1.89.27-1708113113238",
59
+ "react-native-web-lite": "1.89.27-1708113113238"
61
60
  },
62
61
  "optionalDependencies": {
63
62
  "lightningcss": "*"
@@ -58,7 +58,6 @@ function getESBuildConfig(
58
58
  if (process.env.DEBUG?.startsWith('tamagui')) {
59
59
  console.info(`Building`, entryPoints)
60
60
  }
61
- const tsconfig = join(__dirname, '..', '..', '..', 'tamagui.tsconfig.json')
62
61
 
63
62
  const resolvedEntryPoints = !resolvePlatformSpecificEntries
64
63
  ? entryPoints
@@ -83,7 +82,11 @@ function getESBuildConfig(
83
82
  '.js',
84
83
  ],
85
84
  platform: 'node',
86
- tsconfig,
85
+ tsconfigRaw: {
86
+ compilerOptions: {
87
+ jsx: 'react-jsx',
88
+ },
89
+ },
87
90
  loader: esbuildLoaderConfig,
88
91
  logLevel: 'warning',
89
92
  plugins: [
@@ -2,7 +2,6 @@ import { readFileSync, writeFileSync } from 'fs'
2
2
  import { basename, dirname, extname, join, relative, resolve } from 'path'
3
3
 
4
4
  import { Color, colorLog } from '@tamagui/cli-color'
5
- import { getDefaultTamaguiConfig } from '@tamagui/config-default'
6
5
  import type { CLIResolvedOptions, CLIUserOptions, TamaguiOptions } from '@tamagui/types'
7
6
  import type { TamaguiInternalConfig } from '@tamagui/web'
8
7
  import esbuild from 'esbuild'
@@ -277,9 +276,11 @@ export function loadTamaguiSync({
277
276
  }
278
277
 
279
278
  const { createTamagui } = requireTamaguiCore(props.platform)
279
+ const { getDefaultTamaguiConfig } = require('@tamagui/config-default')
280
+
280
281
  return {
281
282
  components: [],
282
- tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
283
+ tamaguiConfig: createTamagui(getDefaultTamaguiConfig()) as any,
283
284
  nameToPaths: {},
284
285
  }
285
286
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CAuBtB,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAsD,CAAA;AAE1F;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AAsFD,wBAAsB,MAAM,CAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,sDAKjC"}
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/extractor/bundle.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;CAuBtB,CAAA;AAQV,eAAO,MAAM,uBAAuB,QAAsD,CAAA;AAE1F;;GAEG;AAEH,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GAAG;IAChE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,8BAA8B,CAAC,EAAE,OAAO,CAAA;CACzC,CAAA;AAyFD,wBAAsB,MAAM,CAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,sDAKjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AASxF,OAAO,EACL,kBAAkB,EAInB,MAAM,gBAAgB,CAAA;AAiBvB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAC/B,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAmDpC;AAiCD,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,kBA4BpD;AAGD,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GAAG,kBAAkB,CA+HrB;AAED,wBAAsB,UAAU,CAAC,EAC/B,IAAoB,EACpB,YAA8B,EAC9B,cAAc,EACd,IAAI,EACJ,KAAK,GACN,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6B5D;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,UAW5D;AA0BD,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B,wBAAsB,kBAAkB,CAAC,cAAc,EAAE,cAAc;;GAyCtE"}
1
+ {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../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