@tamagui/static 1.92.1 → 1.93.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/cjs/extractor/bundle.js +4 -4
  2. package/dist/cjs/extractor/bundle.js.map +1 -1
  3. package/dist/cjs/extractor/bundle.native.js +4 -4
  4. package/dist/cjs/extractor/bundle.native.js.map +2 -2
  5. package/dist/cjs/extractor/bundleConfig.js +10 -10
  6. package/dist/cjs/extractor/bundleConfig.js.map +1 -1
  7. package/dist/cjs/extractor/bundleConfig.native.js +10 -10
  8. package/dist/cjs/extractor/bundleConfig.native.js.map +2 -2
  9. package/dist/cjs/extractor/createExtractor.js +10 -4
  10. package/dist/cjs/extractor/createExtractor.js.map +1 -1
  11. package/dist/cjs/extractor/createExtractor.native.js +3 -3
  12. package/dist/cjs/extractor/createExtractor.native.js.map +2 -2
  13. package/dist/cjs/extractor/extractHelpers.js +1 -1
  14. package/dist/cjs/extractor/extractHelpers.js.map +1 -1
  15. package/dist/cjs/extractor/extractHelpers.native.js +1 -1
  16. package/dist/cjs/extractor/extractHelpers.native.js.map +1 -1
  17. package/dist/cjs/extractor/extractMediaStyle.js +8 -2
  18. package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
  19. package/dist/cjs/extractor/extractMediaStyle.native.js +2 -2
  20. package/dist/cjs/extractor/extractMediaStyle.native.js.map +2 -2
  21. package/dist/cjs/extractor/extractToClassNames.js +3 -2
  22. package/dist/cjs/extractor/extractToClassNames.js.map +1 -1
  23. package/dist/cjs/extractor/extractToClassNames.native.js +3 -2
  24. package/dist/cjs/extractor/extractToClassNames.native.js.map +2 -2
  25. package/dist/cjs/extractor/generateTamaguiStudioConfig.js +12 -8
  26. package/dist/cjs/extractor/generateTamaguiStudioConfig.js.map +2 -2
  27. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +7 -7
  28. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
  29. package/dist/cjs/extractor/generatedUid.js.map +1 -1
  30. package/dist/cjs/extractor/generatedUid.native.js.map +1 -1
  31. package/dist/cjs/extractor/getStaticBindingsForScope.js +1 -1
  32. package/dist/cjs/extractor/getStaticBindingsForScope.js.map +1 -1
  33. package/dist/cjs/extractor/getStaticBindingsForScope.native.js +1 -1
  34. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +1 -1
  35. package/dist/cjs/extractor/loadTamagui.js +13 -45
  36. package/dist/cjs/extractor/loadTamagui.js.map +1 -1
  37. package/dist/cjs/extractor/loadTamagui.native.js +16 -78
  38. package/dist/cjs/extractor/loadTamagui.native.js.map +2 -2
  39. package/dist/cjs/extractor/watchTamaguiConfig.js +53 -0
  40. package/dist/cjs/extractor/watchTamaguiConfig.js.map +6 -0
  41. package/dist/cjs/extractor/watchTamaguiConfig.native.js +203 -0
  42. package/dist/cjs/extractor/watchTamaguiConfig.native.js.map +6 -0
  43. package/dist/cjs/index.js +18 -2
  44. package/dist/cjs/index.js.map +1 -1
  45. package/dist/cjs/index.native.js +30 -4
  46. package/dist/cjs/index.native.js.map +1 -1
  47. package/dist/cjs/registerRequire.js +2 -2
  48. package/dist/cjs/registerRequire.js.map +1 -1
  49. package/dist/cjs/registerRequire.native.js +3 -3
  50. package/dist/cjs/registerRequire.native.js.map +2 -2
  51. package/dist/esm/extractor/bundle.js +4 -4
  52. package/dist/esm/extractor/bundle.js.map +1 -1
  53. package/dist/esm/extractor/bundle.mjs +4 -4
  54. package/dist/esm/extractor/bundle.native.js +4 -4
  55. package/dist/esm/extractor/bundle.native.js.map +2 -2
  56. package/dist/esm/extractor/bundleConfig.js +10 -10
  57. package/dist/esm/extractor/bundleConfig.js.map +1 -1
  58. package/dist/esm/extractor/bundleConfig.mjs +10 -10
  59. package/dist/esm/extractor/bundleConfig.native.js +10 -10
  60. package/dist/esm/extractor/bundleConfig.native.js.map +2 -2
  61. package/dist/esm/extractor/createExtractor.js +10 -4
  62. package/dist/esm/extractor/createExtractor.js.map +1 -1
  63. package/dist/esm/extractor/createExtractor.mjs +4 -4
  64. package/dist/esm/extractor/createExtractor.native.js +3 -3
  65. package/dist/esm/extractor/createExtractor.native.js.map +2 -2
  66. package/dist/esm/extractor/extractHelpers.js +1 -1
  67. package/dist/esm/extractor/extractHelpers.js.map +1 -1
  68. package/dist/esm/extractor/extractHelpers.mjs +1 -1
  69. package/dist/esm/extractor/extractHelpers.native.js +1 -1
  70. package/dist/esm/extractor/extractHelpers.native.js.map +1 -1
  71. package/dist/esm/extractor/extractMediaStyle.js +8 -2
  72. package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
  73. package/dist/esm/extractor/extractMediaStyle.mjs +2 -2
  74. package/dist/esm/extractor/extractMediaStyle.native.js +2 -2
  75. package/dist/esm/extractor/extractMediaStyle.native.js.map +2 -2
  76. package/dist/esm/extractor/extractToClassNames.js +3 -2
  77. package/dist/esm/extractor/extractToClassNames.js.map +1 -1
  78. package/dist/esm/extractor/extractToClassNames.mjs +3 -2
  79. package/dist/esm/extractor/extractToClassNames.native.js +3 -2
  80. package/dist/esm/extractor/extractToClassNames.native.js.map +2 -2
  81. package/dist/esm/extractor/generateTamaguiStudioConfig.js +12 -8
  82. package/dist/esm/extractor/generateTamaguiStudioConfig.js.map +1 -1
  83. package/dist/esm/extractor/generateTamaguiStudioConfig.mjs +6 -6
  84. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +7 -7
  85. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
  86. package/dist/esm/extractor/generatedUid.js.map +1 -1
  87. package/dist/esm/extractor/generatedUid.native.js.map +1 -1
  88. package/dist/esm/extractor/getStaticBindingsForScope.js +1 -1
  89. package/dist/esm/extractor/getStaticBindingsForScope.js.map +1 -1
  90. package/dist/esm/extractor/getStaticBindingsForScope.mjs +1 -1
  91. package/dist/esm/extractor/getStaticBindingsForScope.native.js +1 -1
  92. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
  93. package/dist/esm/extractor/loadTamagui.js +14 -47
  94. package/dist/esm/extractor/loadTamagui.js.map +1 -1
  95. package/dist/esm/extractor/loadTamagui.mjs +13 -41
  96. package/dist/esm/extractor/loadTamagui.native.js +15 -77
  97. package/dist/esm/extractor/loadTamagui.native.js.map +2 -2
  98. package/dist/esm/extractor/watchTamaguiConfig.js +38 -0
  99. package/dist/esm/extractor/watchTamaguiConfig.js.map +6 -0
  100. package/dist/esm/extractor/watchTamaguiConfig.mjs +31 -0
  101. package/dist/esm/extractor/watchTamaguiConfig.native.js +183 -0
  102. package/dist/esm/extractor/watchTamaguiConfig.native.js.map +6 -0
  103. package/dist/esm/index.js +15 -1
  104. package/dist/esm/index.js.map +1 -1
  105. package/dist/esm/index.mjs +13 -2
  106. package/dist/esm/index.native.js +15 -1
  107. package/dist/esm/index.native.js.map +2 -2
  108. package/dist/esm/registerRequire.js +2 -2
  109. package/dist/esm/registerRequire.js.map +1 -1
  110. package/dist/esm/registerRequire.mjs +3 -3
  111. package/dist/esm/registerRequire.native.js +3 -3
  112. package/dist/esm/registerRequire.native.js.map +2 -2
  113. package/package.json +25 -19
  114. package/src/extractor/bundle.ts +4 -4
  115. package/src/extractor/bundleConfig.ts +10 -10
  116. package/src/extractor/createExtractor.ts +10 -4
  117. package/src/extractor/extractHelpers.ts +1 -1
  118. package/src/extractor/extractMediaStyle.ts +8 -2
  119. package/src/extractor/extractToClassNames.ts +3 -2
  120. package/src/extractor/generateTamaguiStudioConfig.ts +14 -10
  121. package/src/extractor/generatedUid.ts +0 -1
  122. package/src/extractor/getStaticBindingsForScope.ts +5 -1
  123. package/src/extractor/loadTamagui.ts +14 -57
  124. package/src/extractor/watchTamaguiConfig.ts +46 -0
  125. package/src/index.ts +11 -1
  126. package/src/registerRequire.ts +2 -3
  127. package/types/extractor/createExtractor.d.ts.map +1 -1
  128. package/types/extractor/extractMediaStyle.d.ts +3 -2
  129. package/types/extractor/extractMediaStyle.d.ts.map +1 -1
  130. package/types/extractor/extractToClassNames.d.ts.map +1 -1
  131. package/types/extractor/generateTamaguiStudioConfig.d.ts.map +1 -1
  132. package/types/extractor/generatedUid.d.ts.map +1 -1
  133. package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -1
  134. package/types/extractor/loadTamagui.d.ts +3 -4
  135. package/types/extractor/loadTamagui.d.ts.map +1 -1
  136. package/types/extractor/watchTamaguiConfig.d.ts +5 -0
  137. package/types/extractor/watchTamaguiConfig.d.ts.map +1 -0
  138. package/types/index.d.ts +11 -1
  139. package/types/index.d.ts.map +1 -1
  140. package/types/registerRequire.d.ts.map +1 -1
  141. package/src/static.ts +0 -10
@@ -27,7 +27,7 @@ __export(bundle_exports, {
27
27
  esbuildLoaderConfig: () => esbuildLoaderConfig
28
28
  });
29
29
  module.exports = __toCommonJS(bundle_exports);
30
- var import_path = require("path"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui");
30
+ var import_path = require("path"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui");
31
31
  const esbuildLoaderConfig = {
32
32
  ".js": "jsx",
33
33
  ".png": "dataurl",
@@ -117,17 +117,17 @@ async function bundle(props, platform, aliases) {
117
117
  return import_esbuild.default.build(config);
118
118
  }
119
119
  async function asyncLock(props) {
120
- const lockFile = (0, import_path.join)((0, import_path.dirname)(props.outfile), (0, import_path.basename)(props.outfile, ".lock")), lockStat = await (0, import_fs_extra.stat)(lockFile).catch(() => {
120
+ const lockFile = (0, import_path.join)((0, import_path.dirname)(props.outfile), (0, import_path.basename)(props.outfile, ".lock")), lockStat = await FS.stat(lockFile).catch(() => {
121
121
  });
122
122
  if ((lockStat ? (/* @__PURE__ */ new Date()).getTime() - new Date(lockStat.mtime).getTime() : 1 / 0) < 500) {
123
123
  process.env.DEBUG?.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints);
124
124
  let tries = 5;
125
125
  for (; tries--; ) {
126
- if (await (0, import_fs_extra.pathExists)(props.outfile))
126
+ if (await FS.pathExists(props.outfile))
127
127
  return;
128
128
  await new Promise((res) => setTimeout(res, 50));
129
129
  }
130
130
  }
131
- (0, import_fs_extra.writeFile)(lockFile, "");
131
+ FS.writeFile(lockFile, "");
132
132
  }
133
133
  //# sourceMappingURL=bundle.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/bundle.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAwC,iBAExC,iBAAoB,6BACpB,kBAA4C,qBAG5C,4BAAmC,iCACnC,qBAAgD;AAEzC,MAAM,sBAAsB;AAAA,EACjC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AACX,GAEM,iBAAiB,OAAO,KAAK,mBAAmB,EACnD;AAAA,EACC,CAAC,MAAM,oBAAoB,CAAC,MAAM,UAAU,oBAAoB,CAAC,MAAM;AACzE,EACC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAEX,0BAA0B,IAAI,OAAO,KAAM,eAAe,KAAK,GAAG,CAAC,MAAM,GAAG;AAYzF,SAAS,iBACP,EAAE,aAAa,gCAAgC,GAAG,QAAQ,GAC1D,UACA,SACA;AACA,SAAI,QAAQ,IAAI,OAAO,WAAW,SAAS,KACzC,QAAQ,KAAK,YAAY,WA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
30
  module.exports = __toCommonJS(bundle_exports);
31
- var import_path = require("path"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui");
31
+ var import_path = require("path"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui");
32
32
  function _array_like_to_array(arr, len) {
33
33
  (len == null || len > arr.length) && (len = arr.length);
34
34
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -356,7 +356,7 @@ function _asyncLock() {
356
356
  case 0:
357
357
  return lockFile = (0, import_path.join)((0, import_path.dirname)(props.outfile), (0, import_path.basename)(props.outfile, ".lock")), [
358
358
  4,
359
- (0, import_fs_extra.stat)(lockFile).catch(function() {
359
+ FS.stat(lockFile).catch(function() {
360
360
  })
361
361
  ];
362
362
  case 1:
@@ -369,7 +369,7 @@ function _asyncLock() {
369
369
  case 2:
370
370
  return tries-- ? [
371
371
  4,
372
- (0, import_fs_extra.pathExists)(props.outfile)
372
+ FS.pathExists(props.outfile)
373
373
  ] : [
374
374
  3,
375
375
  5
@@ -389,7 +389,7 @@ function _asyncLock() {
389
389
  2
390
390
  ];
391
391
  case 5:
392
- return (0, import_fs_extra.writeFile)(lockFile, ""), [
392
+ return FS.writeFile(lockFile, ""), [
393
393
  2
394
394
  ];
395
395
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/bundle.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAwC,iBAExC,iBAAoB,6BACpB,kBAA4C,qBAG5C,4BAAmC,iCACnC,qBAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAY;SAAtBE,WAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,aAAAA;AAAAA;EAAf,oBAAA,SAAyBF,OAAY;QAC7BI,UACAC,UAGAC,aAIApC,oBAGAqC;;;;AAXAH,gCAAWzC,sBAAK6C,qBAAQR,MAAMS,OAAO,OAAGC,sBAASV,MAAMS,SAAS,OAAA,CAAA,GACrD;;gBAAME,sBAAKP,QAAAA,EAAUQ,MAAM,WAAA;YAE5C,CAAA;;;cAFMP,WAAW,OAAA,KAAA,GAGXC,cAAeD,YAEjB,oBAAIQ,KAAAA,GAAOC,QAAO,IAAK,IAAID,KAAKR,SAASU,KAAK,EAAED,QAAO,IADvDE,SAEAV,cAAc;AAAdA,mBAAAA;;;;AACF,UAAIpC,wBAAAA,QAAQC,IAAIC,WAAK,QAAjBF,uBAAAA,WAAAA,mBAAmBG,WAAW,SAAA,KAChCC,QAAQC,KAAM,8BAA6ByB,MAAMjC,WAAW,GAE1DwC,QAAQ;;iBACLA,UACD;;gBAAMU,4BAAWjB,MAAMS,OAAO;cAD7BF;;;;;AACL,iBAAI,OAAA,KAAA,IACF;;cAEF;;YAAM,IAAIW,QAAQ,SAACxC,KAAAA;qBAAQyC,WAAWzC,KAAK,EAAA;;;;AAA3C,wBAAA,KAAA;;;;;AAGJ,qBAAK0C,2BAAUhB,UAAU,EAAA;;;;;EAC3B,CAAA,GArBeF,WAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["esbuildLoaderConfig", "dataExtensions", "Object", "keys", "filter", "k", "map", "slice", "esbuildIgnoreFilesRegex", "RegExp", "join", "getESBuildConfig", "platform", "aliases", "entryPoints", "resolvePlatformSpecificEntries", "options", "process", "env", "DEBUG", "startsWith", "console", "info", "resolvedEntryPoints", "resolveWebOrNativeSpecificEntry", "res", "bundle", "format", "target", "jsx", "jsxFactory", "allowOverwrite", "keepNames", "resolveExtensions", "tsconfigRaw", "compilerOptions", "loader", "logLevel", "plugins", "name", "setup", "build", "onResolve", "args", "path", "external", "esbuildAliasPlugin", "props", "config", "asyncLock", "esbuild", "lockFile", "lockStat", "lockedMsAgo", "tries", "dirname", "outfile", "basename", "stat", "catch", "Date", "getTime", "mtime", "Infinity", "pathExists", "Promise", "setTimeout", "writeFile"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAwC,iBAExC,iBAAoB,6BACpB,KAAoB,8BAGpB,4BAAmC,iCACnC,qBAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC,IAAMA,sBAAsB;EACjC,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,UAAU;EACV,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,UAAU;EACV,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,SAAS;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,SAAS;AACX,GAEMC,iBAAiBC,OAAOC,KAAKH,mBAAAA,EAChCI,OACC,SAACC,GAAAA;SAAML,oBAAoBK,CAAAA,MAAO,UAAUL,oBAAoBK,CAAAA,MAAO;GAExEC,IAAI,SAACD,GAAAA;SAAMA,EAAEE,MAAM,CAAA;IAETC,0BAA0B,IAAIC,OAAQ,KAA8B,OAAzBR,eAAeS,KAAK,GAAA,GAAK,IAAA,GAAK,GAAA;AAYtF,SAASC,iBACP,QACAC,UACAC,SAAgC;MAF9BC,cAAF,OAAEA,aAAaC,iCAAf,OAAeA,gCAAmCC,UAAAA,2BAAlD,QAAA;IAAEF;IAAaC;MAIXE;AAAJ,EAAIA,wBAAAA,QAAQC,IAAIC,WAAK,QAAjBF,u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B,CAAA,GArBeF,WAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["esbuildLoaderConfig", "dataExtensions", "Object", "keys", "filter", "k", "map", "slice", "esbuildIgnoreFilesRegex", "RegExp", "join", "getESBuildConfig", "platform", "aliases", "entryPoints", "resolvePlatformSpecificEntries", "options", "process", "env", "DEBUG", "startsWith", "console", "info", "resolvedEntryPoints", "resolveWebOrNativeSpecificEntry", "res", "bundle", "format", "target", "jsx", "jsxFactory", "allowOverwrite", "keepNames", "resolveExtensions", "tsconfigRaw", "compilerOptions", "loader", "logLevel", "plugins", "name", "setup", "build", "onResolve", "args", "path", "external", "esbuildAliasPlugin", "props", "config", "asyncLock", "esbuild", "lockFile", "lockStat", "lockedMsAgo", "tries", "dirname", "outfile", "basename", "FS", "stat", "catch", "Date", "getTime", "mtime", "Infinity", "pathExists", "Promise", "setTimeout", "writeFile"]
6
6
  }
@@ -30,7 +30,7 @@ __export(bundleConfig_exports, {
30
30
  loadComponentsInner: () => loadComponentsInner
31
31
  });
32
32
  module.exports = __toCommonJS(bundleConfig_exports);
33
- var import_fs = require("fs"), import_path = require("path"), import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
33
+ var import_fs = require("fs"), import_path = require("path"), import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
34
34
  const external = [
35
35
  "@tamagui/core",
36
36
  "@tamagui/web",
@@ -65,7 +65,7 @@ async function getBundledConfig(props, rebuild = !1) {
65
65
  async function bundleConfig(props) {
66
66
  try {
67
67
  isBundling = !0;
68
- const configEntry = props.config ? (0, import_getTamaguiConfigPathFromOptionsConfig.getTamaguiConfigPathFromOptionsConfig)(props.config) : "", tmpDir = (0, import_path.join)(process.cwd(), ".tamagui"), configOutPath = (0, import_path.join)(tmpDir, "tamagui.config.cjs"), baseComponents = props.components.filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
68
+ const configEntry = props.config ? (0, import_getTamaguiConfigPathFromOptionsConfig.getTamaguiConfigPathFromOptionsConfig)(props.config) : "", tmpDir = (0, import_path.join)(process.cwd(), ".tamagui"), configOutPath = (0, import_path.join)(tmpDir, "tamagui.config.cjs"), baseComponents = (props.components || []).filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
69
69
  (componentModule) => (0, import_path.join)(
70
70
  tmpDir,
71
71
  `${componentModule.split(import_path.sep).join("-").replace(/[^a-z0-9]+/gi, "")}-components.config.cjs`
@@ -73,7 +73,7 @@ async function bundleConfig(props) {
73
73
  );
74
74
  if (process.env.NODE_ENV === "development" && process.env.DEBUG?.startsWith("tamagui") && console.info("Building config entry", configEntry), !props.disableInitialBuild) {
75
75
  try {
76
- await (0, import_fs_extra.ensureDir)(tmpDir);
76
+ await FS.ensureDir(tmpDir);
77
77
  } catch {
78
78
  }
79
79
  const start = Date.now();
@@ -86,7 +86,7 @@ async function bundleConfig(props) {
86
86
  target: "node16",
87
87
  ...esbuildExtraOptions
88
88
  },
89
- props.platform
89
+ props.platform || "web"
90
90
  ) : null,
91
91
  ...baseComponents.map((componentModule, i) => (0, import_bundle.bundle)(
92
92
  {
@@ -97,7 +97,7 @@ async function bundleConfig(props) {
97
97
  target: "node16",
98
98
  ...esbuildExtraOptions
99
99
  },
100
- props.platform
100
+ props.platform || "web"
101
101
  ))
102
102
  ]), (0, import_cli_color.colorLog)(
103
103
  import_cli_color.Color.FgYellow,
@@ -115,7 +115,7 @@ async function bundleConfig(props) {
115
115
  );
116
116
  }
117
117
  let out;
118
- const { unregister } = (0, import_registerRequire.registerRequire)(props.platform);
118
+ const { unregister } = (0, import_registerRequire.registerRequire)(props.platform || "web");
119
119
  try {
120
120
  out = require(configOutPath);
121
121
  } catch (err) {
@@ -172,10 +172,10 @@ function getCoreComponents(props) {
172
172
  ];
173
173
  }
174
174
  function loadComponentsInner(props, forceExports = !1) {
175
- const componentsModules = props.components, key = componentsModules.join("");
175
+ const componentsModules = props.components || [], key = componentsModules.join("");
176
176
  if (!forceExports && cacheComponents[key])
177
177
  return cacheComponents[key];
178
- const { unregister } = (0, import_registerRequire.registerRequire)(props.platform, {
178
+ const { unregister } = (0, import_registerRequire.registerRequire)(props.platform || "web", {
179
179
  proxyWormImports: forceExports
180
180
  });
181
181
  try {
@@ -183,7 +183,7 @@ function loadComponentsInner(props, forceExports = !1) {
183
183
  const isDynamic = !!(0, import_path.extname)(name) && forceExports, fileContents = isDynamic ? (0, import_fs.readFileSync)(name, "utf-8") : "", loadModule = isDynamic ? (0, import_path.join)((0, import_path.dirname)(name), `.tamagui-dynamic-eval-${(0, import_path.basename)(name)}.tsx`) : name;
184
184
  let writtenContents = fileContents, didBabel = !1;
185
185
  function attemptLoad({ forceExports: forceExports2 = !1 } = {}) {
186
- isDynamic && (writtenContents = forceExports2 ? transformAddExports((0, import_babelParse.babelParse)(esbuildit(fileContents, "modern"), name)) : fileContents, (0, import_fs_extra.writeFileSync)(loadModule, writtenContents), import_esbuild.default.buildSync({
186
+ isDynamic && (writtenContents = forceExports2 ? transformAddExports((0, import_babelParse.babelParse)(esbuildit(fileContents, "modern"), name)) : fileContents, FS.writeFileSync(loadModule, writtenContents), import_esbuild.default.buildSync({
187
187
  ...esbuildOptions,
188
188
  entryPoints: [loadModule],
189
189
  outfile: loadModule,
@@ -209,7 +209,7 @@ function loadComponentsInner(props, forceExports = !1) {
209
209
  };
210
210
  }
211
211
  const dispose = () => {
212
- isDynamic && (0, import_fs_extra.removeSync)(loadModule);
212
+ isDynamic && FS.removeSync(loadModule);
213
213
  };
214
214
  try {
215
215
  const res = attemptLoad({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/bundleConfig.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA6B,eAC7B,cAAgE,iBAEhE,mBAAqB,sCACrB,kBAAqB,qCACrB,IAAmB,kCACnB,mBAAgC,+BAEhC,iBAAoB,6BACpB,kBAAqD,qBAErD,yBAAkD,+BAElD,oBAA2B,yBAC3B,gBAA4C,qBAC5C,+CAAsD;AAuBtD,MAAM,WAAW;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEM,sBAAsB;AAAA,EAC1B,QAAQ;AAAA,IACN,SAAS,GAAG,QAAQ,IAAI,aAAa,aAAa;AAAA,EACpD;AACF,GAEa,iBAAiB;AAAA,EAC5B,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,UAAU;AAAA,EACV,GAAG;AACL;AAKA,IAAI,gBAAsC,MACtC,aAAa,IACb,aAAmC;AACvC,MAAM,gBAAgB,oBAAI,IAAc;AAEjC,SAAS,0BAA0B;AACxC,SAAI,eAAe,gBACV,MAET,aAAa,eACN;AACT;AAEA,eAAsB,iBAAiB,OAAuB,UAAU,IAAO;AAC7E,MAAI;AACF,UAAM,IAAI,QAAQ,CAAC,QAAQ;AACzB,oBAAc,IAAI,GAAG;AAAA,IACvB,CAAC;AAAA,WACQ,CAAC,iBAAiB;AAC3B,WAAO,MAAM,aAAa,KAAK;AAEjC,SAAO;AACT;AAEA,eAAsB,aAAa,OAAuB;AACxD,MAAI;AACF,iBAAa;AAEb,UAAM,cAAc,MAAM,aAC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D,gBAAAA,SAAS,KAAK;AAAA,IACZ,oBAAoB,UAAU;AAE5B,UAAI,CAAC,EAAE,UAAU,SAAS,MAAM;AAAG;AACnC,YAAM,OAAO,SAAS,KAAK;AAC3B,UAAI,KAAK,SAAS;AAAG;AACrB,YAAM,CAAC,GAAG,IAAI;AACd,MAAK,EAAE,aAAa,IAAI,EAAE,KACrB,IAAI,SACL,UAAU,IAAI,IAAI,GAAG,IAAI,MAC7B,UAAU,IAAI,IAAI,GAAG,IAAI,GACzB,SAAS;AAAA,QACP,EAAE,uBAAuB,EAAE,oBAAoB,OAAO,CAAC,GAAG,CAAC,GAAG;AAAA,UAC5D,EAAE,gBAAgB,EAAE,WAAW,IAAI,GAAG,IAAI,GAAG,EAAE,WAAW,IAAI,GAAG,IAAI,CAAC;AAAA,QACxE,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC,OAGM,iBAAAC,SAAS,KAAY;AAAA,IAC1B,SAAS;AAAA,IACT,UAAU;AAAA,IACV,aAAa;AAAA,IACb,YAAY;AAAA,EACd,CAAC,EAAE;AACL;",
5
5
  "names": ["forceExports", "esbuild", "traverse", "generate"]
6
6
  }
@@ -31,7 +31,7 @@ __export(bundleConfig_exports, {
31
31
  loadComponentsInner: () => loadComponentsInner
32
32
  });
33
33
  module.exports = __toCommonJS(bundleConfig_exports);
34
- var import_fs = require("fs"), import_path = require("path"), import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
34
+ var import_fs = require("fs"), import_path = require("path"), import_generator = __toESM(require("@babel/generator")), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_registerRequire = require("../registerRequire"), import_babelParse = require("./babelParse"), import_bundle = require("./bundle"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
35
35
  function _array_like_to_array(arr, len) {
36
36
  (len == null || len > arr.length) && (len = arr.length);
37
37
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -343,7 +343,7 @@ function _bundleConfig() {
343
343
  7,
344
344
  8,
345
345
  9
346
- ]), isBundling = !0, configEntry = props.config ? (0, import_getTamaguiConfigPathFromOptionsConfig.getTamaguiConfigPathFromOptionsConfig)(props.config) : "", tmpDir = (0, import_path.join)(process.cwd(), ".tamagui"), configOutPath = (0, import_path.join)(tmpDir, "tamagui.config.cjs"), baseComponents = props.components.filter(function(x) {
346
+ ]), isBundling = !0, configEntry = props.config ? (0, import_getTamaguiConfigPathFromOptionsConfig.getTamaguiConfigPathFromOptionsConfig)(props.config) : "", tmpDir = (0, import_path.join)(process.cwd(), ".tamagui"), configOutPath = (0, import_path.join)(tmpDir, "tamagui.config.cjs"), baseComponents = (props.components || []).filter(function(x) {
347
347
  return x !== "@tamagui/core";
348
348
  }), componentOutPaths = baseComponents.map(function(componentModule) {
349
349
  return (0, import_path.join)(tmpDir, "".concat(componentModule.split(import_path.sep).join("-").replace(/[^a-z0-9]+/gi, ""), "-components.config.cjs"));
@@ -361,7 +361,7 @@ function _bundleConfig() {
361
361
  4
362
362
  ]), [
363
363
  4,
364
- (0, import_fs_extra.ensureDir)(tmpDir)
364
+ FS.ensureDir(tmpDir)
365
365
  ];
366
366
  case 2:
367
367
  return _state.sent(), [
@@ -384,7 +384,7 @@ function _bundleConfig() {
384
384
  external,
385
385
  outfile: configOutPath,
386
386
  target: "node16"
387
- }, esbuildExtraOptions), props.platform) : null
387
+ }, esbuildExtraOptions), props.platform || "web") : null
388
388
  ].concat(_to_consumable_array(baseComponents.map(function(componentModule, i) {
389
389
  return (0, import_bundle.bundle)(_object_spread({
390
390
  entryPoints: [
@@ -394,7 +394,7 @@ function _bundleConfig() {
394
394
  external,
395
395
  outfile: componentOutPaths[i],
396
396
  target: "node16"
397
- }, esbuildExtraOptions), props.platform);
397
+ }, esbuildExtraOptions), props.platform || "web");
398
398
  }))))
399
399
  ];
400
400
  case 5:
@@ -407,7 +407,7 @@ function _bundleConfig() {
407
407
  `), `
408
408
  `)), _state.label = 6;
409
409
  case 6:
410
- unregister = (0, import_registerRequire.registerRequire)(props.platform).unregister;
410
+ unregister = (0, import_registerRequire.registerRequire)(props.platform || "web").unregister;
411
411
  try {
412
412
  out = require(configOutPath);
413
413
  } catch (err2) {
@@ -481,17 +481,17 @@ function getCoreComponents(props) {
481
481
  ];
482
482
  }
483
483
  function loadComponentsInner(props) {
484
- var forceExports = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, componentsModules = props.components, key = componentsModules.join("");
484
+ var forceExports = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, componentsModules = props.components || [], key = componentsModules.join("");
485
485
  if (!forceExports && cacheComponents[key])
486
486
  return cacheComponents[key];
487
- var unregister = (0, import_registerRequire.registerRequire)(props.platform, {
487
+ var unregister = (0, import_registerRequire.registerRequire)(props.platform || "web", {
488
488
  proxyWormImports: forceExports
489
489
  }).unregister;
490
490
  try {
491
491
  var info = componentsModules.flatMap(function(name) {
492
492
  var attemptLoad = function() {
493
493
  var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref_forceExports = _ref.forceExports, forceExports2 = _ref_forceExports === void 0 ? !1 : _ref_forceExports;
494
- isDynamic && (writtenContents = forceExports2 ? transformAddExports((0, import_babelParse.babelParse)(esbuildit(fileContents, "modern"), name)) : fileContents, (0, import_fs_extra.writeFileSync)(loadModule, writtenContents), import_esbuild.default.buildSync(_object_spread_props(_object_spread({}, esbuildOptions), {
494
+ isDynamic && (writtenContents = forceExports2 ? transformAddExports((0, import_babelParse.babelParse)(esbuildit(fileContents, "modern"), name)) : fileContents, FS.writeFileSync(loadModule, writtenContents), import_esbuild.default.buildSync(_object_spread_props(_object_spread({}, esbuildOptions), {
495
495
  entryPoints: [
496
496
  loadModule
497
497
  ],
@@ -514,7 +514,7 @@ function loadComponentsInner(props) {
514
514
  nameToInfo
515
515
  };
516
516
  }, extension = (0, import_path.extname)(name), isLocal = !!extension, isDynamic = isLocal && forceExports, fileContents = isDynamic ? (0, import_fs.readFileSync)(name, "utf-8") : "", loadModule = isDynamic ? (0, import_path.join)((0, import_path.dirname)(name), ".tamagui-dynamic-eval-".concat((0, import_path.basename)(name), ".tsx")) : name, writtenContents = fileContents, didBabel = !1, dispose = function() {
517
- isDynamic && (0, import_fs_extra.removeSync)(loadModule);
517
+ isDynamic && FS.removeSync(loadModule);
518
518
  };
519
519
  try {
520
520
  var res = attemptLoad({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/bundleConfig.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAA6B,eAC7B,cAAgE,iBAEhE,mBAAqB,sCACrB,kBAAqB,qCACrB,IAAmB,kCACnB,mBAAgC,+BAEhC,iBAAoB,6BACpB,kBAAqD,qBAErD,yBAAkD,+BAElD,oBAA2B,yBAC3B,gBAA4C,qBAC5C,+CAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBtD,IAAMA,WAAW;EACf;EACA;EACA;EACA;EACA;GAGIC,sBAAsB;EAC1BC,QAAQ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GlE,IAAI,CAAA;WACtE,CAAA;;;IAEL;EACF,CAAA,OAGO0E,iBAAAA,SAAS1B,KAAY;IAC1B2B,SAAS;IACTC,UAAU;IACVC,aAAa;IACbC,YAAY;EACd,CAAA,EAAGzC;AACL;",
5
- "names": ["external", "esbuildExtraOptions", "define", "__DEV__", "process", "env", "NODE_ENV", "esbuildOptions", "target", "format", "jsx", "platform", "currentBundle", "isBundling", "lastBundle", "waitForBundle", "Set", "hasBundledConfigChanged", "getBundledConfig", "props", "rebuild", "Promise", "res", "add", "bundleConfig", "configEntry", "tmpDir", "configOutPath", "baseComponents", "componentOutPaths", "start", "out", "unregister", "config", "components", "component", "err", "getTamaguiConfigPathFromOptionsConfig", "join", "cwd", "filter", "x", "map", "componentModule", "split", "sep", "replace", "DEBUG", "startsWith", "console", "info", "disableInitialBuild", "ensureDir", "Date", "now", "all", "bundle", "entryPoints", "outfile", "i", "resolvePlatformSpecificEntries", "colorLog", "Color", "FgYellow", "Dim", "relative", "p", "registerRequire", "require", "default", "tokens", "Error", "loadComponents", "moduleName", "indexOf", "includes", "IS_TAMAGUI_DEV", "warn", "JSON", "stringify", "nameToPaths", "tamaguiConfig", "error", "message", "stack", "forEach", "cb", "clear", "forceExports", "coreComponents", "getCoreComponents", "otherComponents", "loadComponentsInner", "loaded", "componentsModules", "key", "cacheComponents", "proxyWormImports", "flatMap", "name", "attemptLoad", "isDynamic", "writtenContents", "transformAddExports", "babelParse", "esbuildit", "fileContents", "writeFileSync", "loadModule", "esbuild", "buildSync", "alias", "packages", "allowOverwrite", "sourcemap", "loader", "esbuildLoaderConfig", "resolve", "moduleResult", "setRequireResult", "nameToInfo", "getComponentStaticConfigByName", "interopDefaultExport", "extension", "extname", "isLocal", "Boolean", "readFileSync", "dirname", "basename", "didBabel", "dispose", "removeSync", "TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD", "src", "transformSync", "code", "exported", "Array", "isArray", "found", "getTamaguiComponent", "staticConfig", "Component", "sc", "toUpperCase", "mod", "ast", "usedNames", "traverse", "ExportNamedDeclaration", "nodePath", "node", "specifiers", "spec", "t", "isIdentifier", "value", "VariableDeclaration", "isProgram", "parent", "decs", "declarations", "length", "dec", "id", "init", "has", "replaceWith", "exportNamedDeclaration", "variableDeclaration", "exportSpecifier", "identifier", "generate", "concise", "filename", "retainLines", "sourceMaps"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAA6B,eAC7B,cAAgE,iBAEhE,mBAAqB,sCACrB,kBAAqB,qCACrB,IAAmB,kCACnB,mBAAgC,+BAEhC,iBAAoB,6BACpB,KAAoB,8BAEpB,yBAAkD,+BAElD,oBAA2B,yBAC3B,gBAA4C,qBAC5C,+CAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBtD,IAAMA,WAAW;EACf;EACA;EACA;EACA;EACA;GAGIC,sBAAsB;EAC1BC,QAAQ;IACNC,SAAU,GAAyC,OAAvCC,QAAQC,IAAIC,aAAa,aAAA;EACvC;AACF,GAEaC,iBAAiB,eAAA;EAC5BC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,UAAU;GACPV,mBAAAA,GAMDW,gBAAsC,MACtCC,aAAa,IACbC,aAAmC,MACjCC,gBAAgB,oBAAIC,IAAAA;AAEnB,SAASC,0BAAAA;AACd,SAAIH,eAAeF,gBACV,MAETE,aAAaF,eACN;AACT;AAEA,SAAsBM,iBAAiBC,OAAqB;SAAtCD,kBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,oBAAAA;AAAAA,6BAAf,oBAAA,SAAgCC,OAAqB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AA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAwC;AAAxC,gBAAMC,OAAN,MAAA;AACHN,sBAAU9H,IACRqI,EAAEC,aAAaF,KAAKjB,QAAQ,IAAIiB,KAAKjB,SAAStC,OAAOuD,KAAKjB,SAASoB,KAAK;UAE5E;;AAJK,8BAAA,IAAA,iBAAA;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;MAKP;IACF;EACF,CAAA,OAGAR,gBAAAA,SAASF,KAAK;IACZW,qBAAAA,SAAoBP,UAAQ;AAE1B,UAAKI,EAAEI,UAAUR,SAASS,MAAM,GAChC;YAAMC,OAAOV,SAASC,KAAKU;AAC3B,YAAID,OAAKE,SAAS,IAClB;cAAcF,QAAAA,iBAAAA,MAAAA,CAAAA,GAAPG,MAAOH,MAAAA,CAAAA;AACd,UAAKN,EAAEC,aAAaQ,IAAIC,EAAE,KACrBD,IAAIE,SACLlB,UAAUmB,IAAIH,IAAIC,GAAGlE,IAAI,MAC7BiD,UAAU9H,IAAI8I,IAAIC,GAAGlE,IAAI,GACzBoD,SAASiB,YACPb,EAAEc,uBAAuBd,EAAEe,oBAAoB,OAAO;YAACN;WAAI,GAAG;YAC5DT,EAAEgB,gBAAgBhB,EAAEiB,WAAWR,IAAIC,GAAGlE,IAAI,GAAGwD,EAAEiB,WAAWR,IAAIC,GAAGlE,IAAI,CAAA;WACtE,CAAA;;;IAEL;EACF,CAAA,OAGO0E,iBAAAA,SAAS1B,KAAY;IAC1B2B,SAAS;IACTC,UAAU;IACVC,aAAa;IACbC,YAAY;EACd,CAAA,EAAGzC;AACL;",
5
+ "names": ["external", "esbuildExtraOptions", "define", "__DEV__", "process", "env", "NODE_ENV", "esbuildOptions", "target", "format", "jsx", "platform", "currentBundle", "isBundling", "lastBundle", "waitForBundle", "Set", "hasBundledConfigChanged", "getBundledConfig", "props", "rebuild", "Promise", "res", "add", "bundleConfig", "configEntry", "tmpDir", "configOutPath", "baseComponents", "componentOutPaths", "start", "out", "unregister", "config", "components", "component", "err", "getTamaguiConfigPathFromOptionsConfig", "join", "cwd", "filter", "x", "map", "componentModule", "split", "sep", "replace", "DEBUG", "startsWith", "console", "info", "disableInitialBuild", "FS", "ensureDir", "Date", "now", "all", "bundle", "entryPoints", "outfile", "i", "resolvePlatformSpecificEntries", "colorLog", "Color", "FgYellow", "Dim", "relative", "p", "registerRequire", "require", "default", "tokens", "Error", "loadComponents", "moduleName", "indexOf", "includes", "IS_TAMAGUI_DEV", "warn", "JSON", "stringify", "nameToPaths", "tamaguiConfig", "error", "message", "stack", "forEach", "cb", "clear", "forceExports", "coreComponents", "getCoreComponents", "otherComponents", "loadComponentsInner", "loaded", "componentsModules", "key", "cacheComponents", "proxyWormImports", "flatMap", "name", "attemptLoad", "isDynamic", "writtenContents", "transformAddExports", "babelParse", "esbuildit", "fileContents", "writeFileSync", "loadModule", "esbuild", "buildSync", "alias", "packages", "allowOverwrite", "sourcemap", "loader", "esbuildLoaderConfig", "resolve", "moduleResult", "setRequireResult", "nameToInfo", "getComponentStaticConfigByName", "interopDefaultExport", "extension", "extname", "isLocal", "Boolean", "readFileSync", "dirname", "basename", "didBabel", "dispose", "removeSync", "TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD", "src", "transformSync", "code", "exported", "Array", "isArray", "found", "getTamaguiComponent", "staticConfig", "Component", "sc", "toUpperCase", "mod", "ast", "usedNames", "traverse", "ExportNamedDeclaration", "nodePath", "node", "specifiers", "spec", "t", "isIdentifier", "value", "VariableDeclaration", "isProgram", "parent", "decs", "declarations", "length", "dec", "id", "init", "has", "replaceWith", "exportNamedDeclaration", "variableDeclaration", "exportSpecifier", "identifier", "generate", "concise", "filename", "retainLines", "sourceMaps"]
6
6
  }
@@ -25,7 +25,7 @@ __export(createExtractor_exports, {
25
25
  createExtractor: () => createExtractor
26
26
  });
27
27
  module.exports = __toCommonJS(createExtractor_exports);
28
- var import_path = require("path"), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), import_react_native_web_internals = require("react-native-web-internals"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_createEvaluator = require("./createEvaluator"), import_evaluateAstNode = require("./evaluateAstNode"), import_extractHelpers = require("./extractHelpers"), import_findTopmostFunction = require("./findTopmostFunction"), import_getStaticBindingsForScope = require("./getStaticBindingsForScope"), import_literalToAst = require("./literalToAst"), import_loadTamagui = require("./loadTamagui"), import_logLines = require("./logLines"), import_normalizeTernaries = require("./normalizeTernaries"), import_propsToFontFamilyCache = require("./propsToFontFamilyCache"), import_removeUnusedHooks = require("./removeUnusedHooks"), import_timer = require("./timer"), import_validHTMLAttributes = require("./validHTMLAttributes");
28
+ var import_path = require("path"), import_traverse = __toESM(require("@babel/traverse")), t = __toESM(require("@babel/types")), import_cli_color = require("@tamagui/cli-color"), reactNativeWebInternals = __toESM(require("react-native-web-internals")), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_createEvaluator = require("./createEvaluator"), import_evaluateAstNode = require("./evaluateAstNode"), import_extractHelpers = require("./extractHelpers"), import_findTopmostFunction = require("./findTopmostFunction"), import_getStaticBindingsForScope = require("./getStaticBindingsForScope"), import_literalToAst = require("./literalToAst"), import_loadTamagui = require("./loadTamagui"), import_logLines = require("./logLines"), import_normalizeTernaries = require("./normalizeTernaries"), import_propsToFontFamilyCache = require("./propsToFontFamilyCache"), import_removeUnusedHooks = require("./removeUnusedHooks"), import_timer = require("./timer"), import_validHTMLAttributes = require("./validHTMLAttributes");
29
29
  const UNTOUCHED_PROPS = {
30
30
  key: !0,
31
31
  style: !0,
@@ -137,7 +137,7 @@ function createExtractor({ logger = console, platform = "web" } = { logger: cons
137
137
  function isValidStyleKey(name, staticConfig) {
138
138
  if (!projectInfo)
139
139
  throw new Error("Tamagui extractor not loaded yet");
140
- return platform2 === "native" && name[0] === "$" && mediaQueryConfig[name.slice(1)] ? !1 : !!(staticConfig.validStyles?.[name] || pseudoDescriptors[name] || // dont disable variants or else you lose many things flattening
140
+ return platform2 === "native" && name[0] === "$" && mediaQueryConfig[name.slice(1)] ? !1 : !!(staticConfig.validStyles?.[name] || pseudoDescriptors[name] || // don't disable variants or else you lose many things flattening
141
141
  staticConfig.variants?.[name] || projectInfo?.tamaguiConfig?.shorthands[name] || name[0] === "$" && mediaQueryConfig[name.slice(1)]);
142
142
  }
143
143
  const isTargetingHTML = platform2 === "web", ogDebug = shouldPrintDebug, tm = (0, import_timer.timer)(), propsWithFileInfo = {
@@ -487,7 +487,10 @@ function createExtractor({ logger = console, platform = "web" } = { logger: cons
487
487
  const styleValue = attemptEvalSafe(value);
488
488
  if (!variants[name] && !isValidStyleKey(name, staticConfig)) {
489
489
  let keys = [name], out = null;
490
- out = propMapper(name, styleValue, propMapperStyleState), out && (Array.isArray(out) ? (out = Object.fromEntries(out), keys = Object.keys(out)) : (logger.warn("Error expected array but got", out), couldntParse = !0, shouldDeopt = !0)), out && (isTargetingHTML && (out = (0, import_react_native_web_internals.createDOMProps)(isTextView ? "span" : "div", out), delete out.className), keys = Object.keys(out));
490
+ out = propMapper(name, styleValue, propMapperStyleState), out && (Array.isArray(out) ? (out = Object.fromEntries(out), keys = Object.keys(out)) : (logger.warn("Error expected array but got", out), couldntParse = !0, shouldDeopt = !0)), out && (isTargetingHTML && (out = reactNativeWebInternals.createDOMProps(
491
+ isTextView ? "span" : "div",
492
+ out
493
+ ), delete out.className), keys = Object.keys(out));
491
494
  let didInline = !1;
492
495
  const attributes = keys.map((key) => {
493
496
  const val = out[key];
@@ -949,7 +952,10 @@ function createExtractor({ logger = console, platform = "web" } = { logger: cons
949
952
  );
950
953
  if (out && isTargetingHTML) {
951
954
  const cn = out.className;
952
- out = (0, import_react_native_web_internals.createDOMProps)(isTextView ? "span" : "div", out), out.className = cn;
955
+ out = reactNativeWebInternals.createDOMProps(
956
+ isTextView ? "span" : "div",
957
+ out
958
+ ), out.className = cn;
953
959
  }
954
960
  shouldPrintDebug && logger.info([" - expanded variant", name, out].join(" "));
955
961
  for (const key2 in out) {