@tamagui/static 1.0.1-beta.134 → 1.0.1-beta.137

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.
Files changed (205) hide show
  1. package/dist/cjs/constants.js +0 -0
  2. package/dist/cjs/constants.js.map +0 -0
  3. package/dist/cjs/extractor/accessSafe.js +0 -0
  4. package/dist/cjs/extractor/accessSafe.js.map +0 -0
  5. package/dist/cjs/extractor/babelParse.js +0 -0
  6. package/dist/cjs/extractor/babelParse.js.map +0 -0
  7. package/dist/cjs/extractor/buildClassName.js +0 -0
  8. package/dist/cjs/extractor/buildClassName.js.map +0 -0
  9. package/dist/cjs/extractor/createEvaluator.js +0 -0
  10. package/dist/cjs/extractor/createEvaluator.js.map +0 -0
  11. package/dist/cjs/extractor/createExtractor.js +0 -0
  12. package/dist/cjs/extractor/createExtractor.js.map +0 -0
  13. package/dist/cjs/extractor/ensureImportingConcat.js +0 -0
  14. package/dist/cjs/extractor/ensureImportingConcat.js.map +0 -0
  15. package/dist/cjs/extractor/evaluateAstNode.js +0 -0
  16. package/dist/cjs/extractor/evaluateAstNode.js.map +0 -0
  17. package/dist/cjs/extractor/extractHelpers.js +0 -0
  18. package/dist/cjs/extractor/extractHelpers.js.map +0 -0
  19. package/dist/cjs/extractor/extractMediaStyle.js +0 -0
  20. package/dist/cjs/extractor/extractMediaStyle.js.map +0 -0
  21. package/dist/cjs/extractor/extractToClassNames.js +0 -0
  22. package/dist/cjs/extractor/extractToClassNames.js.map +0 -0
  23. package/dist/cjs/extractor/findTopmostFunction.js +0 -0
  24. package/dist/cjs/extractor/findTopmostFunction.js.map +0 -0
  25. package/dist/cjs/extractor/generatedUid.js +0 -0
  26. package/dist/cjs/extractor/generatedUid.js.map +0 -0
  27. package/dist/cjs/extractor/getPrefixLogs.js +0 -0
  28. package/dist/cjs/extractor/getPrefixLogs.js.map +0 -0
  29. package/dist/cjs/extractor/getPropValueFromAttributes.js +0 -0
  30. package/dist/cjs/extractor/getPropValueFromAttributes.js.map +0 -0
  31. package/dist/cjs/extractor/getSourceModule.js +0 -0
  32. package/dist/cjs/extractor/getSourceModule.js.map +0 -0
  33. package/dist/cjs/extractor/getStaticBindingsForScope.js +0 -0
  34. package/dist/cjs/extractor/getStaticBindingsForScope.js.map +0 -0
  35. package/dist/cjs/extractor/hoistClassNames.js +0 -0
  36. package/dist/cjs/extractor/hoistClassNames.js.map +0 -0
  37. package/dist/cjs/extractor/literalToAst.js +0 -0
  38. package/dist/cjs/extractor/literalToAst.js.map +0 -0
  39. package/dist/cjs/extractor/loadFile.js +0 -0
  40. package/dist/cjs/extractor/loadFile.js.map +0 -0
  41. package/dist/cjs/extractor/loadTamagui.js +0 -0
  42. package/dist/cjs/extractor/loadTamagui.js.map +0 -0
  43. package/dist/cjs/extractor/logLines.js +0 -0
  44. package/dist/cjs/extractor/logLines.js.map +0 -0
  45. package/dist/cjs/extractor/normalizeTernaries.js +0 -0
  46. package/dist/cjs/extractor/normalizeTernaries.js.map +0 -0
  47. package/dist/cjs/extractor/removeUnusedHooks.js +0 -0
  48. package/dist/cjs/extractor/removeUnusedHooks.js.map +0 -0
  49. package/dist/cjs/extractor/timer.js +0 -0
  50. package/dist/cjs/extractor/timer.js.map +0 -0
  51. package/dist/cjs/extractor/validHTMLAttributes.js +0 -0
  52. package/dist/cjs/extractor/validHTMLAttributes.js.map +0 -0
  53. package/dist/cjs/index.js +0 -0
  54. package/dist/cjs/index.js.map +0 -0
  55. package/dist/cjs/require.js +1 -1
  56. package/dist/cjs/require.js.map +2 -2
  57. package/dist/cjs/types.js +0 -0
  58. package/dist/cjs/types.js.map +0 -0
  59. package/dist/esm/constants.js +0 -0
  60. package/dist/esm/constants.js.map +0 -0
  61. package/dist/esm/extractor/accessSafe.js +0 -0
  62. package/dist/esm/extractor/accessSafe.js.map +0 -0
  63. package/dist/esm/extractor/babelParse.js +0 -0
  64. package/dist/esm/extractor/babelParse.js.map +0 -0
  65. package/dist/esm/extractor/buildClassName.js +0 -0
  66. package/dist/esm/extractor/buildClassName.js.map +0 -0
  67. package/dist/esm/extractor/createEvaluator.js +0 -0
  68. package/dist/esm/extractor/createEvaluator.js.map +0 -0
  69. package/dist/esm/extractor/createExtractor.js +0 -0
  70. package/dist/esm/extractor/createExtractor.js.map +0 -0
  71. package/dist/esm/extractor/ensureImportingConcat.js +0 -0
  72. package/dist/esm/extractor/ensureImportingConcat.js.map +0 -0
  73. package/dist/esm/extractor/evaluateAstNode.js +0 -0
  74. package/dist/esm/extractor/evaluateAstNode.js.map +0 -0
  75. package/dist/esm/extractor/extractHelpers.js +0 -0
  76. package/dist/esm/extractor/extractHelpers.js.map +0 -0
  77. package/dist/esm/extractor/extractMediaStyle.js +0 -0
  78. package/dist/esm/extractor/extractMediaStyle.js.map +0 -0
  79. package/dist/esm/extractor/extractToClassNames.js +0 -0
  80. package/dist/esm/extractor/extractToClassNames.js.map +0 -0
  81. package/dist/esm/extractor/findTopmostFunction.js +0 -0
  82. package/dist/esm/extractor/findTopmostFunction.js.map +0 -0
  83. package/dist/esm/extractor/generatedUid.js +0 -0
  84. package/dist/esm/extractor/generatedUid.js.map +0 -0
  85. package/dist/esm/extractor/getPrefixLogs.js +0 -0
  86. package/dist/esm/extractor/getPrefixLogs.js.map +0 -0
  87. package/dist/esm/extractor/getPropValueFromAttributes.js +0 -0
  88. package/dist/esm/extractor/getPropValueFromAttributes.js.map +0 -0
  89. package/dist/esm/extractor/getSourceModule.js +0 -0
  90. package/dist/esm/extractor/getSourceModule.js.map +0 -0
  91. package/dist/esm/extractor/getStaticBindingsForScope.js +0 -0
  92. package/dist/esm/extractor/getStaticBindingsForScope.js.map +0 -0
  93. package/dist/esm/extractor/hoistClassNames.js +0 -0
  94. package/dist/esm/extractor/hoistClassNames.js.map +0 -0
  95. package/dist/esm/extractor/literalToAst.js +0 -0
  96. package/dist/esm/extractor/literalToAst.js.map +0 -0
  97. package/dist/esm/extractor/loadFile.js +0 -0
  98. package/dist/esm/extractor/loadFile.js.map +0 -0
  99. package/dist/esm/extractor/loadTamagui.js +0 -0
  100. package/dist/esm/extractor/loadTamagui.js.map +0 -0
  101. package/dist/esm/extractor/logLines.js +0 -0
  102. package/dist/esm/extractor/logLines.js.map +0 -0
  103. package/dist/esm/extractor/normalizeTernaries.js +0 -0
  104. package/dist/esm/extractor/normalizeTernaries.js.map +0 -0
  105. package/dist/esm/extractor/removeUnusedHooks.js +0 -0
  106. package/dist/esm/extractor/removeUnusedHooks.js.map +0 -0
  107. package/dist/esm/extractor/timer.js +0 -0
  108. package/dist/esm/extractor/timer.js.map +0 -0
  109. package/dist/esm/extractor/validHTMLAttributes.js +0 -0
  110. package/dist/esm/extractor/validHTMLAttributes.js.map +0 -0
  111. package/dist/esm/index.js +0 -0
  112. package/dist/esm/index.js.map +0 -0
  113. package/dist/esm/require.js +2 -2
  114. package/dist/esm/require.js.map +2 -2
  115. package/dist/esm/types.js +0 -0
  116. package/dist/esm/types.js.map +0 -0
  117. package/dist/jsx/constants.js +0 -0
  118. package/dist/jsx/constants.js.map +0 -0
  119. package/dist/jsx/extractor/accessSafe.js +0 -0
  120. package/dist/jsx/extractor/accessSafe.js.map +0 -0
  121. package/dist/jsx/extractor/babelParse.js +0 -0
  122. package/dist/jsx/extractor/babelParse.js.map +0 -0
  123. package/dist/jsx/extractor/buildClassName.js +0 -0
  124. package/dist/jsx/extractor/buildClassName.js.map +0 -0
  125. package/dist/jsx/extractor/createEvaluator.js +0 -0
  126. package/dist/jsx/extractor/createEvaluator.js.map +0 -0
  127. package/dist/jsx/extractor/createExtractor.js +0 -0
  128. package/dist/jsx/extractor/createExtractor.js.map +0 -0
  129. package/dist/jsx/extractor/ensureImportingConcat.js +0 -0
  130. package/dist/jsx/extractor/ensureImportingConcat.js.map +0 -0
  131. package/dist/jsx/extractor/evaluateAstNode.js +0 -0
  132. package/dist/jsx/extractor/evaluateAstNode.js.map +0 -0
  133. package/dist/jsx/extractor/extractHelpers.js +0 -0
  134. package/dist/jsx/extractor/extractHelpers.js.map +0 -0
  135. package/dist/jsx/extractor/extractMediaStyle.js +0 -0
  136. package/dist/jsx/extractor/extractMediaStyle.js.map +0 -0
  137. package/dist/jsx/extractor/extractToClassNames.js +0 -0
  138. package/dist/jsx/extractor/extractToClassNames.js.map +0 -0
  139. package/dist/jsx/extractor/findTopmostFunction.js +0 -0
  140. package/dist/jsx/extractor/findTopmostFunction.js.map +0 -0
  141. package/dist/jsx/extractor/generatedUid.js +0 -0
  142. package/dist/jsx/extractor/generatedUid.js.map +0 -0
  143. package/dist/jsx/extractor/getPrefixLogs.js +0 -0
  144. package/dist/jsx/extractor/getPrefixLogs.js.map +0 -0
  145. package/dist/jsx/extractor/getPropValueFromAttributes.js +0 -0
  146. package/dist/jsx/extractor/getPropValueFromAttributes.js.map +0 -0
  147. package/dist/jsx/extractor/getSourceModule.js +0 -0
  148. package/dist/jsx/extractor/getSourceModule.js.map +0 -0
  149. package/dist/jsx/extractor/getStaticBindingsForScope.js +0 -0
  150. package/dist/jsx/extractor/getStaticBindingsForScope.js.map +0 -0
  151. package/dist/jsx/extractor/hoistClassNames.js +0 -0
  152. package/dist/jsx/extractor/hoistClassNames.js.map +0 -0
  153. package/dist/jsx/extractor/literalToAst.js +0 -0
  154. package/dist/jsx/extractor/literalToAst.js.map +0 -0
  155. package/dist/jsx/extractor/loadFile.js +0 -0
  156. package/dist/jsx/extractor/loadFile.js.map +0 -0
  157. package/dist/jsx/extractor/loadTamagui.js +0 -0
  158. package/dist/jsx/extractor/loadTamagui.js.map +0 -0
  159. package/dist/jsx/extractor/logLines.js +0 -0
  160. package/dist/jsx/extractor/logLines.js.map +0 -0
  161. package/dist/jsx/extractor/normalizeTernaries.js +0 -0
  162. package/dist/jsx/extractor/normalizeTernaries.js.map +0 -0
  163. package/dist/jsx/extractor/removeUnusedHooks.js +0 -0
  164. package/dist/jsx/extractor/removeUnusedHooks.js.map +0 -0
  165. package/dist/jsx/extractor/timer.js +0 -0
  166. package/dist/jsx/extractor/timer.js.map +0 -0
  167. package/dist/jsx/extractor/validHTMLAttributes.js +0 -0
  168. package/dist/jsx/extractor/validHTMLAttributes.js.map +0 -0
  169. package/dist/jsx/index.js +0 -0
  170. package/dist/jsx/index.js.map +0 -0
  171. package/dist/jsx/require.js +2 -2
  172. package/dist/jsx/require.js.map +2 -2
  173. package/dist/jsx/types.js +0 -0
  174. package/dist/jsx/types.js.map +0 -0
  175. package/package.json +11 -11
  176. package/src/require.ts +2 -2
  177. package/types/constants.d.ts +0 -0
  178. package/types/extractor/accessSafe.d.ts +0 -0
  179. package/types/extractor/babelParse.d.ts +0 -0
  180. package/types/extractor/buildClassName.d.ts +0 -0
  181. package/types/extractor/createEvaluator.d.ts +0 -0
  182. package/types/extractor/createExtractor.d.ts +0 -0
  183. package/types/extractor/ensureImportingConcat.d.ts +0 -0
  184. package/types/extractor/evaluateAstNode.d.ts +0 -0
  185. package/types/extractor/extractHelpers.d.ts +0 -0
  186. package/types/extractor/extractMediaStyle.d.ts +0 -0
  187. package/types/extractor/extractToClassNames.d.ts +0 -0
  188. package/types/extractor/findTopmostFunction.d.ts +0 -0
  189. package/types/extractor/generatedUid.d.ts +0 -0
  190. package/types/extractor/getPrefixLogs.d.ts +0 -0
  191. package/types/extractor/getPropValueFromAttributes.d.ts +0 -0
  192. package/types/extractor/getSourceModule.d.ts +0 -0
  193. package/types/extractor/getStaticBindingsForScope.d.ts +0 -0
  194. package/types/extractor/hoistClassNames.d.ts +0 -0
  195. package/types/extractor/literalToAst.d.ts +0 -0
  196. package/types/extractor/loadFile.d.ts +0 -0
  197. package/types/extractor/loadTamagui.d.ts +0 -0
  198. package/types/extractor/logLines.d.ts +0 -0
  199. package/types/extractor/normalizeTernaries.d.ts +0 -0
  200. package/types/extractor/removeUnusedHooks.d.ts +0 -0
  201. package/types/extractor/timer.d.ts +0 -0
  202. package/types/extractor/validHTMLAttributes.d.ts +0 -0
  203. package/types/index.d.ts +0 -0
  204. package/types/require.d.ts +0 -0
  205. package/types/types.d.ts +0 -0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/cjs/index.js CHANGED
File without changes
File without changes
@@ -53,7 +53,7 @@ function registerRequire() {
53
53
  if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons") {
54
54
  return proxyWorm;
55
55
  }
56
- if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports")) {
56
+ if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, import_path.sep))) {
57
57
  return rnw;
58
58
  }
59
59
  if (path === "@tamagui/core") {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/require.ts"],
4
- "sourcesContent": ["import { join } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports')\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqB;AAIrB,uBAA6B;AAE7B,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,iBAAiB,MAAM;AAGpC,IAAI,QAAQ;AACZ,YAAY,M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UACF;AAAA,QACF;AAAA,MACF;AACA,aAAO;AAAA,IACT,SAAS,KAAP;AACA,UAAI,+BAAc;AAChB,gBAAQ,MACN,4BAA4B;AAAA,GAC5B,IAAI,SACJ,IAAI,KACN;AAAA,MACF;AACA,YAAM,MAAM,QAAQ,IAAI,qBAAqB,CAAC,QAAQ,IAAI,qBAAqB;AAC/E,UAAI,EAAE,QAAQ,KAAK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
4
+ "sourcesContent": ["import { join, sep } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports'.replace(/\\//g, sep))\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA0B;AAI1B,uBAA6B;AAE7B,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,iBAAiB,MAAM;AAGpC,IAAI,QAAQ;AACZ,YAAY,MAAM;AAChB,UAAQ;AACV,GAAG,EAAE;AAEE,2BAA2B;AAChC,MAAI,OAAO,UAAU,YAAY,WAAW,cAAc;AACxD,YAAQ,KAAK,wCAAwC;AACrD,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,YAAY,QAAQ,qBAAqB;AAC/C,QAAM,MAAM,QAAQ,kBAAkB;AACtC,QAAM,OAAO,QAAQ,oBAAoB;AAEzC,SAAO,U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AK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
6
6
  "names": []
7
7
  }
package/dist/cjs/types.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/esm/index.js CHANGED
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { join } from "path";
1
+ import { join, sep } from "path";
2
2
  import { SHOULD_DEBUG } from "./constants";
3
3
  const nameToPaths = {};
4
4
  const Module = require("module");
@@ -28,7 +28,7 @@ function registerRequire() {
28
28
  if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons") {
29
29
  return proxyWorm;
30
30
  }
31
- if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports")) {
31
+ if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, sep))) {
32
32
  return rnw;
33
33
  }
34
34
  if (path === "@tamagui/core") {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/require.ts"],
4
- "sourcesContent": ["import { join } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports')\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
- "mappings": "AAAA;AAIA;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,iBAAiB,MAAM;AAGpC,IAAI,QAAQ;AACZ,YAAY,MAAM;AAChB,UAAQ;AACV,GAAG,EAAE;AAEE,2BAA2B;AAChC,MAAI,OAAO,UAAU,YAAY,WAAW,cAAc;AACxD,YAAQ,KAAK,wCAAwC;AACrD,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,YAAY,QAAQ,qBAAqB;AAC/C,QAAM,MAAM,QAAQ,kBAAkB;AACtC,QAAM,OAAO,QAAQ,oBAAoB;AAEzC,SAAO,UAAU,UAAU,SAAU,MAAc;AA7BrD;AA8BI,QAAI,cAAc;AAChB,cAAQ,IAAI,mBAAmB,IAAI;AAAA,IACrC;AACA,QAAI,KAAK,SAAS,MAAM,KAAK,KAAK,SAAS,OAAO,KAAK,KAAK,SAAS,MAAM,GAAG;AAC5E,aAAO,CAAC;AAAA,IACV;AACA,QACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS,sBACT;AACA,aAAO;AAAA,IACT;AACA,QACE,KAAK,WAAW,cAAc,KAE9B,CAAC,KAAK,WAAW,mCAAmC,GACpD;AACA,aAAO;AAAA,IAET;AACA,QAAI,SAAS,iBAAiB;AAC5B,aAAO;AAAA,IACT;AACA,QAAI;AACF,YAAM,MAAM,GAAG,MAAM,MAAM,SAAS;AACpC,UAAI,CAAC,YAAY,OAAO;AACtB,YAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,qBAAW,OAAO,KAAK;AACrB,gBAAI;AACF,oBAAM,OAAO,UAAI,SAAJ,mBAAU;AACvB,kBAAI,MAAM;AACR,oBAAI,KAAK,eAAe;AACtB,8BAAY,KAAK,mBAAmB,oBAAI,IAAI;AAC5C,wBAAM,WAAW,KAAK,WAAW,GAAG,IAChC,KAAK,GAAG,KAAK,KAAK,QAAQ,gBAAgB,KAAK,KAAK,IAAI,IACxD;AACJ,8BAAY,KAAK,eAAe,IAAI,QAAQ;AAAA,gBAC9C,OAAO;AAAA,gBAEP;AAAA,cACF;AAAA,YACF,QAAE;AAAA,YAEF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AACA,aAAO;AAAA,IACT,SAAS,KAAP;AACA,UAAI,cAAc;AAChB,gBAAQ,MACN,4BAA4B;AAAA,GAC5B,IAAI,SACJ,IAAI,KACN;AAAA,MACF;AACA,YAAM,MAAM,QAAQ,IAAI,qBAAqB,CAAC,QAAQ,IAAI,qBAAqB;AAC/E,UAAI,EAAE,QAAQ,KAAK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
4
+ "sourcesContent": ["import { join, sep } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports'.replace(/\\//g, sep))\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
+ "mappings": "AAAA;AAIA;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,iBAAiB,MAAM;AAGpC,IAAI,QAAQ;AACZ,YAAY,MAAM;AAChB,UAAQ;AACV,GAAG,EAAE;AAEE,2BAA2B;AAChC,MAAI,OAAO,UAAU,YAAY,WAAW,cAAc;AACxD,YAAQ,KAAK,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4BAA4B;AAAA,GAC5B,IAAI,SACJ,IAAI,KACN;AAAA,MACF;AACA,YAAM,MAAM,QAAQ,IAAI,qBAAqB,CAAC,QAAQ,IAAI,qBAAqB;AAC/E,UAAI,EAAE,QAAQ,KAAK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
6
6
  "names": []
7
7
  }
package/dist/esm/types.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/jsx/index.js CHANGED
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { join } from "path";
1
+ import { join, sep } from "path";
2
2
  import { SHOULD_DEBUG } from "./constants";
3
3
  const nameToPaths = {};
4
4
  const Module = require("module");
@@ -28,7 +28,7 @@ function registerRequire() {
28
28
  if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons") {
29
29
  return proxyWorm;
30
30
  }
31
- if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports")) {
31
+ if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, sep))) {
32
32
  return rnw;
33
33
  }
34
34
  if (path === "@tamagui/core") {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/require.ts"],
4
- "sourcesContent": ["import { join } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports')\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
- "mappings": "AAAA;AAIA;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,iBAAiB,MAAM;AAGpC,IAAI,QAAQ;AACZ,YAAY,MAAM;AAChB,UAAQ;AACV,GAAG,EAAE;AAEE,2BAA2B;AAChC,MAAI,OAAO,UAAU,YAAY,WAAW,cAAc;AACxD,YAAQ,KAAK,wCAAwC;AACrD,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,YAAY,QAAQ,qBAAqB;AAC/C,QAAM,MAAM,QAAQ,kBAAkB;AACtC,QAAM,OAAO,QAAQ,oBAAoB;AAEzC,SAAO,UAAU,UAAU,SAAU,MAAc;AA7BrD;AA8BI,QAAI,cAAc;AAChB,cAAQ,IAAI,mBAAmB,IAAI;AAAA,IACrC;AACA,QAAI,KAAK,SAAS,MAAM,KAAK,KAAK,SAAS,OAAO,KAAK,KAAK,SAAS,MAAM,GAAG;AAC5E,aAAO,CAAC;AAAA,IACV;AACA,QACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS,sBACT;AACA,aAAO;AAAA,IACT;AACA,QACE,KAAK,WAAW,cAAc,KAE9B,CAAC,KAAK,WAAW,mCAAmC,GACpD;AACA,aAAO;AAAA,IAET;AACA,QAAI,SAAS,iBAAiB;AAC5B,aAAO;AAAA,IACT;AACA,QAAI;AACF,YAAM,MAAM,GAAG,MAAM,MAAM,SAAS;AACpC,UAAI,CAAC,YAAY,OAAO;AACtB,YAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,qBAAW,OAAO,KAAK;AACrB,gBAAI;AACF,oBAAM,OAAO,UAAI,SAAJ,mBAAU;AACvB,kBAAI,MAAM;AACR,oBAAI,KAAK,eAAe;AACtB,yCAAY,KAAK,mBAAjB,8BAAoC,oBAAI,IAAI;AAC5C,wBAAM,WAAW,KAAK,WAAW,GAAG,IAChC,KAAK,GAAG,KAAK,KAAK,QAAQ,gBAAgB,KAAK,KAAK,IAAI,IACxD;AACJ,8BAAY,KAAK,eAAe,IAAI,QAAQ;AAAA,gBAC9C,OAAO;AAAA,gBAEP;AAAA,cACF;AAAA,YACF,QAAE;AAAA,YAEF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AACA,aAAO;AAAA,IACT,SAAS,KAAP;AACA,UAAI,cAAc;AAChB,gBAAQ,MACN,4BAA4B;AAAA,GAC5B,IAAI,SACJ,IAAI,KACN;AAAA,MACF;AACA,YAAM,MAAM,QAAQ,IAAI,qBAAqB,CAAC,QAAQ,IAAI,qBAAqB;AAC/E,UAAI,EAAE,QAAQ,KAAK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
4
+ "sourcesContent": ["import { join, sep } from 'path'\n\nimport type { StaticConfig } from '@tamagui/core-node'\n\nimport { SHOULD_DEBUG } from './constants'\n\nconst nameToPaths = {}\nconst Module = require('module')\nconst og = Module.prototype.require\nglobalThis['ogRequire'] = og\n\nexport const getNameToPaths = () => nameToPaths\n\n// just for catching egregious amounts of errors in a tight loop\nlet tries = 0\nsetInterval(() => {\n tries = 0\n}, 50)\n\nexport function registerRequire() {\n if (Module.prototype.require !== globalThis['ogRequire']) {\n console.warn('didnt unregister before re-registering')\n process.exit(1)\n }\n\n const proxyWorm = require('@tamagui/proxy-worm')\n const rnw = require('react-native-web')\n const core = require('@tamagui/core-node')\n\n Module.prototype.require = function (path: string) {\n if (SHOULD_DEBUG) {\n console.log('tamagui require', path)\n }\n if (path.endsWith('.css') || path.endsWith('.json') || path.endsWith('.ttf')) {\n return {}\n }\n if (\n path === '@gorhom/bottom-sheet' ||\n path.startsWith('react-native-reanimated') ||\n path === 'expo-linear-gradient' ||\n path === '@expo/vector-icons'\n ) {\n return proxyWorm\n }\n if (\n path.startsWith('react-native') &&\n // allow our rnw.tsx imports through\n !path.startsWith('react-native-web/dist/cjs/exports'.replace(/\\//g, sep))\n ) {\n return rnw\n // return og('react-native-web')\n }\n if (path === '@tamagui/core') {\n return core\n }\n try {\n const out = og.apply(this, arguments)\n if (!nameToPaths[path]) {\n if (out && typeof out === 'object') {\n for (const key in out) {\n try {\n const conf = out[key]?.staticConfig as StaticConfig\n if (conf) {\n if (conf.componentName) {\n nameToPaths[conf.componentName] ??= new Set()\n const fullName = path.startsWith('.')\n ? join(`${this.path.replace(/dist(\\/cjs)?/, 'src')}`, path)\n : path\n nameToPaths[conf.componentName].add(fullName)\n } else {\n // console.log('no name component', path)\n }\n }\n } catch {\n // ok\n }\n }\n }\n }\n return out\n } catch (err: any) {\n if (SHOULD_DEBUG) {\n console.error(\n `Tamagui failed requiring ${path} from your tamagui.config.ts file, ignoring\\n`,\n err.message,\n err.stack\n )\n }\n const max = process.env.TAMAGUI_MAX_ERRORS ? +process.env.TAMAGUI_MAX_ERRORS : 200\n if (++tries > max) {\n console.log(\n `Too many errors loading design system, exiting (set TAMAGUI_MAX_ERRORS to override)..`\n )\n // avoid infinite loops\n process.exit(1)\n }\n // return proxyWorm by default\n return proxyWorm\n }\n }\n\n return Module.prototype.require\n}\n\nexport function unregisterRequire() {\n Module.prototype.require = og\n}\n"],
5
+ "mappings": "AAAA;AAIA;AAEA,MAAM,cAAc,CAAC;AACrB,MAAM,SAAS,QAAQ,QAAQ;AAC/B,MAAM,KAAK,OAAO,UAAU;AAC5B,WAAW,eAAe;AAEnB,MAAM,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AC9C,OAAO;AAAA,gBAEP;AAAA,cACF;AAAA,YACF,QAAE;AAAA,YAEF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AACA,aAAO;AAAA,IACT,SAAS,KAAP;AACA,UAAI,cAAc;AAChB,gBAAQ,MACN,4BAA4B;AAAA,GAC5B,IAAI,SACJ,IAAI,KACN;AAAA,MACF;AACA,YAAM,MAAM,QAAQ,IAAI,qBAAqB,CAAC,QAAQ,IAAI,qBAAqB;AAC/E,UAAI,EAAE,QAAQ,KAAK;AACjB,gBAAQ,IACN,uFACF;AAEA,gBAAQ,KAAK,CAAC;AAAA,MAChB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO,OAAO,UAAU;AAC1B;AAEO,6BAA6B;AAClC,SAAO,UAAU,UAAU;AAC7B;",
6
6
  "names": []
7
7
  }
package/dist/jsx/types.js CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.0.1-beta.134",
3
+ "version": "1.0.1-beta.137",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -34,14 +34,14 @@
34
34
  "@babel/parser": "^7.15.7",
35
35
  "@babel/traverse": "^7.15.4",
36
36
  "@expo/match-media": "^0.3.0",
37
- "@tamagui/build": "^1.0.1-beta.134",
38
- "@tamagui/config-default-node": "^1.0.1-beta.134",
39
- "@tamagui/core-node": "^1.0.1-beta.134",
40
- "@tamagui/fake-react-native": "^1.0.1-beta.134",
41
- "@tamagui/helpers": "^1.0.1-beta.134",
42
- "@tamagui/patch-rnw": "^1.0.1-beta.134",
43
- "@tamagui/proxy-worm": "^1.0.1-beta.134",
44
- "@tamagui/shorthands": "^1.0.1-beta.134",
37
+ "@tamagui/build": "^1.0.1-beta.137",
38
+ "@tamagui/config-default-node": "^1.0.1-beta.137",
39
+ "@tamagui/core-node": "^1.0.1-beta.137",
40
+ "@tamagui/fake-react-native": "^1.0.1-beta.137",
41
+ "@tamagui/helpers": "^1.0.1-beta.137",
42
+ "@tamagui/patch-rnw": "^1.0.1-beta.137",
43
+ "@tamagui/proxy-worm": "^1.0.1-beta.137",
44
+ "@tamagui/shorthands": "^1.0.1-beta.137",
45
45
  "babel-literal-to-ast": "^2.1.0",
46
46
  "esbuild": "^0.14.49",
47
47
  "esbuild-register": "^3.3.3",
@@ -49,7 +49,7 @@
49
49
  "fs-extra": "^10.1.0",
50
50
  "invariant": "^2.2.4",
51
51
  "lodash": "^4.17.21",
52
- "tamagui": "^1.0.1-beta.134"
52
+ "tamagui": "^1.0.1-beta.137"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@babel/plugin-syntax-typescript": "^7.14.5",
@@ -70,7 +70,7 @@
70
70
  "style-loader": "^3.3.1",
71
71
  "typescript": "^4.7.4",
72
72
  "vitest": "^0.20.3",
73
- "webpack": "^5.73.0"
73
+ "webpack": "^5.74.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react-native-web": "*"
package/src/require.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { join } from 'path'
1
+ import { join, sep } from 'path'
2
2
 
3
3
  import type { StaticConfig } from '@tamagui/core-node'
4
4
 
@@ -45,7 +45,7 @@ export function registerRequire() {
45
45
  if (
46
46
  path.startsWith('react-native') &&
47
47
  // allow our rnw.tsx imports through
48
- !path.startsWith('react-native-web/dist/cjs/exports')
48
+ !path.startsWith('react-native-web/dist/cjs/exports'.replace(/\//g, sep))
49
49
  ) {
50
50
  return rnw
51
51
  // return og('react-native-web')
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/types/index.d.ts CHANGED
File without changes
File without changes
package/types/types.d.ts CHANGED
File without changes