@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
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var watchTamaguiConfig_exports = {};
17
+ __export(watchTamaguiConfig_exports, {
18
+ watchTamaguiConfig: () => watchTamaguiConfig
19
+ });
20
+ module.exports = __toCommonJS(watchTamaguiConfig_exports);
21
+ var import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_loadTamagui = require("./loadTamagui");
22
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
23
+ try {
24
+ var info = gen[key](arg), value = info.value;
25
+ } catch (error) {
26
+ reject(error);
27
+ return;
28
+ }
29
+ info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
30
+ }
31
+ function _async_to_generator(fn) {
32
+ return function() {
33
+ var self = this, args = arguments;
34
+ return new Promise(function(resolve, reject) {
35
+ var gen = fn.apply(self, args);
36
+ function _next(value) {
37
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
38
+ }
39
+ function _throw(err) {
40
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
41
+ }
42
+ _next(void 0);
43
+ });
44
+ };
45
+ }
46
+ function _ts_generator(thisArg, body) {
47
+ var f, y, t, g, _ = {
48
+ label: 0,
49
+ sent: function() {
50
+ if (t[0] & 1)
51
+ throw t[1];
52
+ return t[1];
53
+ },
54
+ trys: [],
55
+ ops: []
56
+ };
57
+ return g = {
58
+ next: verb(0),
59
+ throw: verb(1),
60
+ return: verb(2)
61
+ }, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
62
+ return this;
63
+ }), g;
64
+ function verb(n) {
65
+ return function(v) {
66
+ return step([
67
+ n,
68
+ v
69
+ ]);
70
+ };
71
+ }
72
+ function step(op) {
73
+ if (f)
74
+ throw new TypeError("Generator is already executing.");
75
+ for (; _; )
76
+ try {
77
+ 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)
78
+ return t;
79
+ switch (y = 0, t && (op = [
80
+ op[0] & 2,
81
+ t.value
82
+ ]), op[0]) {
83
+ case 0:
84
+ case 1:
85
+ t = op;
86
+ break;
87
+ case 4:
88
+ return _.label++, {
89
+ value: op[1],
90
+ done: !1
91
+ };
92
+ case 5:
93
+ _.label++, y = op[1], op = [
94
+ 0
95
+ ];
96
+ continue;
97
+ case 7:
98
+ op = _.ops.pop(), _.trys.pop();
99
+ continue;
100
+ default:
101
+ if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
102
+ _ = 0;
103
+ continue;
104
+ }
105
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
106
+ _.label = op[1];
107
+ break;
108
+ }
109
+ if (op[0] === 6 && _.label < t[1]) {
110
+ _.label = t[1], t = op;
111
+ break;
112
+ }
113
+ if (t && _.label < t[2]) {
114
+ _.label = t[2], _.ops.push(op);
115
+ break;
116
+ }
117
+ t[2] && _.ops.pop(), _.trys.pop();
118
+ continue;
119
+ }
120
+ op = body.call(thisArg, _);
121
+ } catch (e) {
122
+ op = [
123
+ 6,
124
+ e
125
+ ], y = 0;
126
+ } finally {
127
+ f = t = 0;
128
+ }
129
+ if (op[0] & 5)
130
+ throw op[1];
131
+ return {
132
+ value: op[0] ? op[1] : void 0,
133
+ done: !0
134
+ };
135
+ }
136
+ }
137
+ function watchTamaguiConfig(tamaguiOptions) {
138
+ return _watchTamaguiConfig.apply(this, arguments);
139
+ }
140
+ function _watchTamaguiConfig() {
141
+ return _watchTamaguiConfig = _async_to_generator(function(tamaguiOptions) {
142
+ var _options_tamaguiOptions_themeBuilder, options, disposeConfigWatcher, themeBuilderInput, disposeThemesWatcher, inputPath;
143
+ return _ts_generator(this, function(_state) {
144
+ switch (_state.label) {
145
+ case 0:
146
+ return [
147
+ 4,
148
+ (0, import_loadTamagui.getOptions)({
149
+ tamaguiOptions
150
+ })
151
+ ];
152
+ case 1:
153
+ if (options = _state.sent(), !options.tamaguiOptions.config)
154
+ throw new Error("No config");
155
+ return process.env.NODE_ENV === "production" ? [
156
+ 2,
157
+ {
158
+ dispose: function() {
159
+ }
160
+ }
161
+ ] : [
162
+ 4,
163
+ (0, import_loadTamagui.esbuildWatchFiles)(options.tamaguiOptions.config, function() {
164
+ (0, import_generateTamaguiStudioConfig.generateTamaguiStudioConfig)(options.tamaguiOptions, null, !0);
165
+ })
166
+ ];
167
+ case 2:
168
+ if (disposeConfigWatcher = _state.sent(), themeBuilderInput = (_options_tamaguiOptions_themeBuilder = options.tamaguiOptions.themeBuilder) === null || _options_tamaguiOptions_themeBuilder === void 0 ? void 0 : _options_tamaguiOptions_themeBuilder.input, !themeBuilderInput)
169
+ return [
170
+ 3,
171
+ 4
172
+ ];
173
+ inputPath = themeBuilderInput;
174
+ try {
175
+ inputPath = require.resolve(themeBuilderInput);
176
+ } catch {
177
+ }
178
+ return [
179
+ 4,
180
+ (0, import_loadTamagui.esbuildWatchFiles)(inputPath, function() {
181
+ (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
182
+ })
183
+ ];
184
+ case 3:
185
+ disposeThemesWatcher = _state.sent(), _state.label = 4;
186
+ case 4:
187
+ return [
188
+ 2,
189
+ {
190
+ dispose: function() {
191
+ disposeConfigWatcher(), disposeThemesWatcher == null || disposeThemesWatcher();
192
+ }
193
+ }
194
+ ];
195
+ }
196
+ });
197
+ }), _watchTamaguiConfig.apply(this, arguments);
198
+ }
199
+ // Annotate the CommonJS export names for ESM import in node:
200
+ 0 && (module.exports = {
201
+ watchTamaguiConfig
202
+ });
203
+ //# sourceMappingURL=watchTamaguiConfig.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/watchTamaguiConfig.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AACA,yCAA4C,0CAC5C,qBAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpE,SAAsBA,mBAAmBC,gBAA8B;SAAjDD,oBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,sBAAAA;AAAAA,+BAAf,oBAAA,SAAkCC,gBAA8B;QAoB3CC,sCAnBpBA,SAYAC,sBAOAC,mBACFC,sBAGEC;;;;AAvBU,iBAAA;;gBAAMC,+BAAW;cAAEN;YAAe,CAAA;;;AAElD,cAFMC,UAAU,OAAA,KAAA,GAEZ,CAACA,QAAQD,eAAeO;AAC1B,kBAAM,IAAIC,MAAO,WAAA;AAGnB,iBAAIC,QAAQC,IAAIC,aAAa,eAC3B;;YAAO;cACLC,SAAAA,WAAAA;cAAW;YACb;cAG2B;;gBAAMC,sCACjCZ,QAAQD,eAAeO,QACvB,WAAA;AACE,kBAAKO,gEAA4Bb,QAAQD,gBAAgB,MAAM,EAAA;YACjE,CAAA;;;cAJIE,uBAAuB,OAAA,KAAA,GAOvBC,qBAAoBF,uCAAAA,QAAQD,eAAee,kBAAY,QAAnCd,yCAAAA,SAAAA,SAAAA,qCAAqCe,QAG3Db;AAAAA,mBAAAA;;;;AACEE,sBAAYF;AAChB,cAAI;AACFE,wBAAYY,QAAQC,QAAQf,iBAAAA;UAC9B,QAAQ;UAER;AACuB,iBAAA;;gBAAMU,sCAAkBR,WAAW,WAAA;AACxD,kBAAKc,yCAAqBlB,QAAQD,cAAc;YAClD,CAAA;;;AAFAI,iCAAuB,OAAA,KAAA;;AAKzB,iBAAA;;YAAO;cACLQ,SAAAA,WAAAA;AACEV,qCAAAA,GACAE,wBAAAA,QAAAA,qBAAAA;cACF;YACF;;;;EACF,CAAA,GAzCsBL,oBAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["watchTamaguiConfig", "tamaguiOptions", "options", "disposeConfigWatcher", "themeBuilderInput", "disposeThemesWatcher", "inputPath", "getOptions", "config", "Error", "process", "env", "NODE_ENV", "dispose", "esbuildWatchFiles", "generateTamaguiStudioConfig", "themeBuilder", "input", "require", "resolve", "generateThemesAndLog"]
6
+ }
package/dist/cjs/index.js CHANGED
@@ -2,7 +2,10 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
6
9
  if (from && typeof from == "object" || typeof from == "function")
7
10
  for (let key of __getOwnPropNames(from))
8
11
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
@@ -10,9 +13,22 @@ var __copyProps = (to, from, except, desc) => {
10
13
  }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
15
  var src_exports = {};
16
+ __export(src_exports, {
17
+ createExtractor: () => import_createExtractor.createExtractor,
18
+ literalToAst: () => import_literalToAst.literalToAst
19
+ });
13
20
  module.exports = __toCommonJS(src_exports);
14
21
  var import_setup = require("./setup");
15
- __reExport(src_exports, require("./static"), module.exports);
16
22
  __reExport(src_exports, require("./minifyCSS"), module.exports);
17
23
  __reExport(src_exports, require("./checkDeps"), module.exports);
24
+ __reExport(src_exports, require("./types"), module.exports);
25
+ var import_createExtractor = require("./extractor/createExtractor"), import_literalToAst = require("./extractor/literalToAst");
26
+ __reExport(src_exports, require("./constants"), module.exports);
27
+ __reExport(src_exports, require("./extractor/extractToClassNames"), module.exports);
28
+ __reExport(src_exports, require("./extractor/extractHelpers"), module.exports);
29
+ __reExport(src_exports, require("./extractor/loadTamagui"), module.exports);
30
+ __reExport(src_exports, require("./extractor/watchTamaguiConfig"), module.exports);
31
+ __reExport(src_exports, require("./extractor/createLogger"), module.exports);
32
+ __reExport(src_exports, require("./registerRequire"), module.exports);
33
+ __reExport(src_exports, require("./getPragmaOptions"), module.exports);
18
34
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,mBAAO;AACP,wBAAc,qBADd;AAEA,wBAAc,wBAFd;AAGA,wBAAc,wBAHd;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAO;AACP,wBAAc,wBADd;AAEA,wBAAc,wBAFd;AAGA,wBAAc,oBAHd;AAIA,6BAAgC,wCAChC,sBAA6B;AAC7B,wBAAc,wBANd;AAOA,wBAAc,4CAPd;AAQA,wBAAc,uCARd;AASA,wBAAc,oCATd;AAUA,wBAAc,2CAVd;AAWA,wBAAc,qCAXd;AAYA,wBAAc,8BAZd;AAaA,wBAAc,+BAbd;",
5
5
  "names": []
6
6
  }
@@ -3,7 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
7
10
  if (from && typeof from == "object" || typeof from == "function")
8
11
  for (let key of __getOwnPropNames(from))
9
12
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
@@ -11,15 +14,38 @@ var __copyProps = (to, from, except, desc) => {
11
14
  }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
16
  var src_exports = {};
17
+ __export(src_exports, {
18
+ createExtractor: () => import_createExtractor.createExtractor,
19
+ literalToAst: () => import_literalToAst.literalToAst
20
+ });
14
21
  module.exports = __toCommonJS(src_exports);
15
22
  var import_setup = require("./setup");
16
- __reExport(src_exports, require("./static"), module.exports);
17
23
  __reExport(src_exports, require("./minifyCSS"), module.exports);
18
24
  __reExport(src_exports, require("./checkDeps"), module.exports);
25
+ __reExport(src_exports, require("./types"), module.exports);
26
+ var import_createExtractor = require("./extractor/createExtractor"), import_literalToAst = require("./extractor/literalToAst");
27
+ __reExport(src_exports, require("./constants"), module.exports);
28
+ __reExport(src_exports, require("./extractor/extractToClassNames"), module.exports);
29
+ __reExport(src_exports, require("./extractor/extractHelpers"), module.exports);
30
+ __reExport(src_exports, require("./extractor/loadTamagui"), module.exports);
31
+ __reExport(src_exports, require("./extractor/watchTamaguiConfig"), module.exports);
32
+ __reExport(src_exports, require("./extractor/createLogger"), module.exports);
33
+ __reExport(src_exports, require("./registerRequire"), module.exports);
34
+ __reExport(src_exports, require("./getPragmaOptions"), module.exports);
19
35
  // Annotate the CommonJS export names for ESM import in node:
20
36
  0 && (module.exports = {
21
- ...require("./static"),
37
+ createExtractor,
38
+ literalToAst,
22
39
  ...require("./minifyCSS"),
23
- ...require("./checkDeps")
40
+ ...require("./checkDeps"),
41
+ ...require("./types"),
42
+ ...require("./constants"),
43
+ ...require("./extractor/extractToClassNames"),
44
+ ...require("./extractor/extractHelpers"),
45
+ ...require("./extractor/loadTamagui"),
46
+ ...require("./extractor/watchTamaguiConfig"),
47
+ ...require("./extractor/createLogger"),
48
+ ...require("./registerRequire"),
49
+ ...require("./getPragmaOptions")
24
50
  });
25
51
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/packages/static/src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;AAAA;;mBAAO;AACP,wBAAc,qBADd;AAEA,wBAAc,wBAFd;AAGA,wBAAc,wBAHd;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;mBAAO;AACP,wBAAc,wBADd;AAEA,wBAAc,wBAFd;AAGA,wBAAc,oBAHd;AAIA,6BAAgC,wCAChC,sBAA6B;AAC7B,wBAAc,wBANd;AAOA,wBAAc,4CAPd;AAQA,wBAAc,uCARd;AASA,wBAAc,oCATd;AAUA,wBAAc,2CAVd;AAWA,wBAAc,qCAXd;AAYA,wBAAc,8BAZd;AAaA,wBAAc,+BAbd;",
5
5
  "names": []
6
6
  }
@@ -20,7 +20,7 @@ __export(registerRequire_exports, {
20
20
  });
21
21
  module.exports = __toCommonJS(registerRequire_exports);
22
22
  var import_node = require("esbuild-register/dist/node"), import_requireTamaguiCore = require("./helpers/requireTamaguiCore"), import_bundle = require("./extractor/bundle");
23
- const nameToPaths = {}, Module = require("module"), getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web");
23
+ const nameToPaths = {}, getNameToPaths = () => nameToPaths, Module = require("module"), packageJson = require("react-native-web/package.json"), proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web");
24
24
  let isRegistered = !1, og;
25
25
  const whitelisted = {
26
26
  react: !0
@@ -82,7 +82,7 @@ function registerRequire(platform, { proxyWormImports } = {
82
82
  }
83
83
  };
84
84
  }
85
- const packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS?.split(","), knownIgnorableModules = {
85
+ const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS?.split(","), knownIgnorableModules = {
86
86
  "expo-modules": !0,
87
87
  solito: !0,
88
88
  ...Object.fromEntries(extraIgnores?.map((k) => [k, !0]) || [])
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/registerRequire.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB,uCAEzB,4BAAmC,yCAEnC,gBAAwC;AAExC,MAAM,cAAc,CAAC,GACf,SAAS,QAAQ,QAAQ,GAElB,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB;AAEtC,IAAI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,WAE7B,CAAC,QAAQ,IAAI,mCAAmC,CAAC,QAAQ,IAAI,QAClE,oBAAoB,IAAI,IAAI,MAG9B,oBAAoB,IAAI,IAAI,GAC5B,QAAQ;AAAA,QACN,uBAAuB,IAAI;AAAA,MAC7B,KAQF,QAAQ;AAAA,QACN,2BAA2B,IAAI;AAAA;AAAA,IAErC,IAAI,OAAO;AAAA,IACX,IAAI,KAAK;AAAA;AAAA;AAAA,MAGL,IAGK;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY,MAAM;AAChB,iBAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,IAC7B;AAAA,EACF;AACF;AAEA,MAAM,UAAU,QAAQ,IAAI,8BACtB,eACJ,YAAY,SAAS,CAAC,IAAI,QAAQ,IAAI,8BAA8B,MAAM,GAAG,GACzE,wBAAwB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,GAAG,OAAO,YAAY,cAAc,IAAI,CAAC,MAAM,CAAC,GAAG,EAAI,CAAC,KAAK,CAAC,CAAC;AACjE,GAEM,sBAAsB,oBAAI,IAAY,GAEtC,iBAAiB;AAAA,EACrB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,mBAAmB;AACrB;",
5
5
  "names": ["path"]
6
6
  }
@@ -40,9 +40,9 @@ function _object_spread(target) {
40
40
  }
41
41
  return target;
42
42
  }
43
- var _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS, nameToPaths = {}, Module = require("module"), getNameToPaths = function() {
43
+ var _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS, nameToPaths = {}, getNameToPaths = function() {
44
44
  return nameToPaths;
45
- }, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), isRegistered = !1, og, whitelisted = {
45
+ }, Module = require("module"), packageJson = require("react-native-web/package.json"), proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), isRegistered = !1, og, whitelisted = {
46
46
  react: !0
47
47
  }, compiled = {};
48
48
  function setRequireResult(name, result) {
@@ -109,7 +109,7 @@ function registerRequire(platform) {
109
109
  }
110
110
  };
111
111
  }
112
- 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({
112
+ var 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({
113
113
  "expo-modules": !0,
114
114
  solito: !0
115
115
  }, Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map(function(k) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/packages/static/src/registerRequire.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAyB,uCAEzB,4BAAmC,yCAEnC,gBAAwC;;;;;;;;;;;;;;;;;;;;IAiLZA,2CA/KtBC,cAAc,CAAC,GACfC,SAASC,QAAQ,QAAA,GAEVC,iBAAiB,WAAA;SAAMH;GAE9BI,YAAYF,QAAQ,qBAAA,GAEpBG,MAAMH,QAAQ,kBAAA,GAEhBI,eAAe,IACfC,IAEEC,cAAc;EAClBC,OAAO;AACT,GAEMC,WAAW,CAAC;AACX,SAASC,iBAAiBC,MAAcC,QAAW;AACxDH,WAASE,IAAAA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IC,oCACbb,KAAKQ,SAAS,sBAAA,IAGd,UAEEM,eAAed,IAAAA,KAASe,YAAY,WAE7B,CAACtC,QAAQmC,IAAII,mCAAmC,CAACvC,QAAQmC,IAAIK,QAClEC,oBAAoBC,IAAInB,IAAAA,MAG1BkB,oBAAoBE,IAAIpB,IAAAA,GACxBqB,QAAQC,KACL,uBAA2B,OAALtB,MAAK,4CAAA,CAAA,KAShCqB,QAAQE,MACL,2BAEPZ,OAFiCX,MAAK;;GAAA,EAGtCW,OADAA,IAAIa,SAAQ;GAAA,EACF,OAAVb,IAAIc,OAAM;;GAAA,CAAA,IAMD3C;IACT;EACF;AAEA,SAAO;IACLa;IACAC,YAAY,WAAA;AACVA,iBAAAA,GACAZ,eAAe,IACfL,OAAOoB,UAAUnB,UAAUK;IAC7B;EACF;AACF;AAEA,IAAMqB,cAAc1B,QAAQ,+BAAA,GACtBmC,UAAUtC,QAAQmC,IAAIc,8BACtBC,eACJZ,YAAY,SAAS,CAAA,KAAKtC,4CAAAA,QAAQmC,IAAIc,kCAA4B,QAAxCjD,8CAAAA,SAAAA,SAAAA,0CAA0CmD,MAAM,GAAA,GACtErB,wBAAwB,eAAA;EAC5B,gBAAgB;EAChBsB,QAAQ;GACLC,OAAOC,aAAYJ,gBAAAA,OAAAA,SAAAA,aAAcK,IAAI,SAACC,GAAAA;SAAM;IAACA;IAAG;;OAAU,CAAA,CAAE,CAAA,GAG3Df,sBAAsB,oBAAIgB,IAAAA,GAE1BpB,iBAAiB;EACrB,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;AACrB;",
5
- "names": ["process", "nameToPaths", "Module", "require", "getNameToPaths", "proxyWorm", "rnw", "isRegistered", "og", "whitelisted", "react", "compiled", "setRequireResult", "name", "result", "registerRequire", "platform", "proxyWormImports", "tamaguiRequire", "unregister", "register", "hookIgnoreNodeModules", "prototype", "path", "apply", "requireTamaguiCore", "esbuildIgnoreFilesRegex", "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"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAyB,uCAEzB,4BAAmC,yCAEnC,gBAAwC;;;;;;;;;;;;;;;;;;;;IAgLZA,2CA9KtBC,cAAc,CAAC,GAERC,iBAAiB,WAAA;SAAMD;GAE9BE,SAASC,QAAQ,QAAA,GACjBC,cAAcD,QAAQ,+BAAA,GACtBE,YAAYF,QAAQ,qBAAA,GACpBG,MAAMH,QAAQ,kBAAA,GAEhBI,eAAe,IACfC,IAEEC,cAAc;EAClBC,OAAO;AACT,GAEMC,WAAW,CAAC;AACX,SAASC,iBAAiBC,MAAcC,QAAW;AACxDH,WAASE,IAAAA,IAAQC;AACnB;AAEO,SAASC,gBACdC,UAAyB;MACvBC,oBAAF,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAuB;IACrBA,kBAAkB;EACpB,GAFEA;AAKF,MAAIV;AACF,WAAO;MACLW,gBAAgBf;MAChBgB,YAAY,WAAA;MAAO;IACrB;AAGF,MAAQA,iBAAeC,sBAAS;IAC9BC,uBAAuB;EACzB,CAAA,EAFQF;AAIR,EAAKX,OACHA,KAAKN,OAAOoB,UAAUnB,UAGxBI,eAAe,IAEfL,OAAOoB,UAAUnB,UAAUe;AAE3B,WAASA,eAA0BK,MAAY;;AAC7C,QAAIA,SAAS,aAAaP,aAAa;AACrC,aAAOR,GAAGgB,MAAM,MAAM;QAAC;OAAiB;AAG1C,QAAID,SAAS,mBAAmBA,SAAS;AACvC,iBAAOE,8CAAmBT,UAAU,SAACO,OAAAA;AACnC,eAAOf,GAAGgB,MAAK,OAA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CAAAA,QAAQmC,IAAIc,kCAA4B,QAAxCjD,8CAAAA,SAAAA,SAAAA,0CAA0CmD,MAAM,GAAA,GACtErB,wBAAwB,eAAA;EAC5B,gBAAgB;EAChBsB,QAAQ;GACLC,OAAOC,aAAYJ,gBAAAA,OAAAA,SAAAA,aAAcK,IAAI,SAACC,GAAAA;SAAM;IAACA;IAAG;;OAAU,CAAA,CAAE,CAAA,GAG3Df,sBAAsB,oBAAIgB,IAAAA,GAE1BpB,iBAAiB;EACrB,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;AACrB;",
5
+ "names": ["process", "nameToPaths", "getNameToPaths", "Module", "require", "packageJson", "proxyWorm", "rnw", "isRegistered", "og", "whitelisted", "react", "compiled", "setRequireResult", "name", "result", "registerRequire", "platform", "proxyWormImports", "tamaguiRequire", "unregister", "register", "hookIgnoreNodeModules", "prototype", "path", "apply", "requireTamaguiCore", "esbuildIgnoreFilesRegex", "test", "startsWith", "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,6 +1,6 @@
1
1
  import { basename, dirname, join } from "path";
2
2
  import esbuild from "esbuild";
3
- import { pathExists, stat, writeFile } from "fs-extra";
3
+ import * as FS from "fs-extra";
4
4
  import { esbuildAliasPlugin } from "./esbuildAliasPlugin";
5
5
  import { resolveWebOrNativeSpecificEntry } from "./loadTamagui";
6
6
  const esbuildLoaderConfig = {
@@ -92,18 +92,18 @@ async function bundle(props, platform, aliases) {
92
92
  return esbuild.build(config);
93
93
  }
94
94
  async function asyncLock(props) {
95
- const lockFile = join(dirname(props.outfile), basename(props.outfile, ".lock")), lockStat = await stat(lockFile).catch(() => {
95
+ const lockFile = join(dirname(props.outfile), basename(props.outfile, ".lock")), lockStat = await FS.stat(lockFile).catch(() => {
96
96
  });
97
97
  if ((lockStat ? (/* @__PURE__ */ new Date()).getTime() - new Date(lockStat.mtime).getTime() : 1 / 0) < 500) {
98
98
  process.env.DEBUG?.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints);
99
99
  let tries = 5;
100
100
  for (; tries--; ) {
101
- if (await pathExists(props.outfile))
101
+ if (await FS.pathExists(props.outfile))
102
102
  return;
103
103
  await new Promise((res) => setTimeout(res, 50));
104
104
  }
105
105
  }
106
- writeFile(lockFile, "");
106
+ FS.writeFile(lockFile, "");
107
107
  }
108
108
  export {
109
109
  bundle,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/bundle.ts"],
4
- "mappings": "AAAA,SAAS,UAAU,SAAS,YAAY;AAExC,OAAO,aAAa;AACpB,SAAS,YAAY,MAAM,iBAAiB;AAG5C,SAAS,0BAA0B;AACnC,SAAS,uCAAuC;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,CAA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,EAAK,GAAG,UAAU,UAAU,EAAE;AAChC;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { basename, dirname, join } from "path";
2
2
  import esbuild from "esbuild";
3
- import { pathExists, stat, writeFile } from "fs-extra";
3
+ import * as FS from "fs-extra";
4
4
  import { esbuildAliasPlugin } from "./esbuildAliasPlugin.mjs";
5
5
  import { resolveWebOrNativeSpecificEntry } from "./loadTamagui.mjs";
6
6
  const esbuildLoaderConfig = {
@@ -95,15 +95,15 @@ async function bundle(props, platform, aliases) {
95
95
  }
96
96
  async function asyncLock(props) {
97
97
  const lockFile = join(dirname(props.outfile), basename(props.outfile, ".lock")),
98
- lockStat = await stat(lockFile).catch(() => {});
98
+ lockStat = await FS.stat(lockFile).catch(() => {});
99
99
  if ((lockStat ? ( /* @__PURE__ */new Date()).getTime() - new Date(lockStat.mtime).getTime() : 1 / 0) < 500) {
100
100
  process.env.DEBUG?.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints);
101
101
  let tries = 5;
102
102
  for (; tries--;) {
103
- if (await pathExists(props.outfile)) return;
103
+ if (await FS.pathExists(props.outfile)) return;
104
104
  await new Promise(res => setTimeout(res, 50));
105
105
  }
106
106
  }
107
- writeFile(lockFile, "");
107
+ FS.writeFile(lockFile, "");
108
108
  }
109
109
  export { bundle, esbuildIgnoreFilesRegex, esbuildLoaderConfig };
@@ -1,6 +1,6 @@
1
1
  import { basename, dirname, join } from "path";
2
2
  import esbuild from "esbuild";
3
- import { pathExists, stat, writeFile } from "fs-extra";
3
+ import * as FS from "fs-extra";
4
4
  import { esbuildAliasPlugin } from "./esbuildAliasPlugin";
5
5
  import { resolveWebOrNativeSpecificEntry } from "./loadTamagui";
6
6
  function _array_like_to_array(arr, len) {
@@ -330,7 +330,7 @@ function _asyncLock() {
330
330
  case 0:
331
331
  return lockFile = join(dirname(props.outfile), basename(props.outfile, ".lock")), [
332
332
  4,
333
- stat(lockFile).catch(function() {
333
+ FS.stat(lockFile).catch(function() {
334
334
  })
335
335
  ];
336
336
  case 1:
@@ -343,7 +343,7 @@ function _asyncLock() {
343
343
  case 2:
344
344
  return tries-- ? [
345
345
  4,
346
- pathExists(props.outfile)
346
+ FS.pathExists(props.outfile)
347
347
  ] : [
348
348
  3,
349
349
  5
@@ -363,7 +363,7 @@ function _asyncLock() {
363
363
  2
364
364
  ];
365
365
  case 5:
366
- return writeFile(lockFile, ""), [
366
+ return FS.writeFile(lockFile, ""), [
367
367
  2
368
368
  ];
369
369
  }
@@ -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,SAASA,UAAUC,SAASC,YAAY;AAExC,OAAOC,aAAa;AACpB,SAASC,YAAYC,MAAMC,iBAAiB;AAG5C,SAASC,0BAA0B;AACnC,SAASC,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC,IAAMC,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,C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,WAAW,GAE1DqC,QAAQ;;iBACLA,UACD;;YAAMvD,WAAWiD,MAAMO,OAAO;cAD7BD;;;;;AACL,iBAAI,OAAA,KAAA,IACF;;cAEF;;YAAM,IAAIO,QAAQ,SAAClC,KAAAA;qBAAQmC,WAAWnC,KAAK,EAAA;;;;AAA3C,wBAAA,KAAA;;;;;AAGJ,iBAAK1B,UAAUkD,UAAU,EAAA;;;;;EAC3B,CAAA,GArBeD,WAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["basename", "dirname", "join", "esbuild", "pathExists", "stat", "writeFile", "esbuildAliasPlugin", "resolveWebOrNativeSpecificEntry", "esbuildLoaderConfig", "dataExtensions", "Object", "keys", "filter", "k", "map", "slice", "esbuildIgnoreFilesRegex", "RegExp", "getESBuildConfig", "platform", "aliases", "entryPoints", "resolvePlatformSpecificEntries", "options", "process", "env", "DEBUG", "startsWith", "console", "info", "resolvedEntryPoints", "res", "bundle", "format", "target", "jsx", "jsxFactory", "allowOverwrite", "keepNames", "resolveExtensions", "tsconfigRaw", "compilerOptions", "loader", "logLevel", "plugins", "name", "setup", "build", "onResolve", "args", "path", "external", "props", "config", "asyncLock", "lockFile", "lockStat", "lockedMsAgo", "tries", "outfile", "catch", "Date", "getTime", "mtime", "Infinity", "Promise", "setTimeout"]
4
+ "mappings": "AAAA,SAASA,UAAUC,SAASC,YAAY;AAExC,OAAOC,aAAa;AACpB,YAAYC,QAAQ;AAGpB,SAASC,0BAA0B;AACnC,SAASC,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzC,IAAMC,sBAAsB;EACjC,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,SAAS;EACT,QAAQ;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,SAAS,OAAA,CAAA,GACrD;;YAAMtD,GAAGuD,KAAKL,QAAAA,EAAUM,MAAM,WAAA;YAE/C,CAAA;;;cAFML,WAAW,OAAA,KAAA,GAGXC,cAAeD,YAEjB,oBAAIM,KAAAA,GAAOC,QAAO,IAAK,IAAID,KAAKN,SAASQ,KAAK,EAAED,QAAO,IADvDE,SAEAR,cAAc;AAAdA,mBAAAA;;;;AACF,UAAIjC,wBAAAA,QAAQC,IAAIC,WAAK,QAAjBF,uBAAAA,WAAAA,mBAAmBG,WAAW,SAAA,KAChCC,QAAQC,KAAM,8BAA6BuB,MAAM/B,WAAW,GAE1DqC,QAAQ;;iBACLA,UACD;;YAAMrD,GAAG6D,WAAWd,MAAMO,OAAO;cADhCD;;;;;AACL,iBAAI,OAAA,KAAA,IACF;;cAEF;;YAAM,IAAIS,QAAQ,SAACpC,KAAAA;qBAAQqC,WAAWrC,KAAK,EAAA;;;;AAA3C,wBAAA,KAAA;;;;;AAGJ,iBAAK1B,GAAGgE,UAAUd,UAAU,EAAA;;;;;EAC9B,CAAA,GArBeD,WAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["basename", "dirname", "join", "esbuild", "FS", "esbuildAliasPlugin", "resolveWebOrNativeSpecificEntry", "esbuildLoaderConfig", "dataExtensions", "Object", "keys", "filter", "k", "map", "slice", "esbuildIgnoreFilesRegex", "RegExp", "getESBuildConfig", "platform", "aliases", "entryPoints", "resolvePlatformSpecificEntries", "options", "process", "env", "DEBUG", "startsWith", "console", "info", "resolvedEntryPoints", "res", "bundle", "format", "target", "jsx", "jsxFactory", "allowOverwrite", "keepNames", "resolveExtensions", "tsconfigRaw", "compilerOptions", "loader", "logLevel", "plugins", "name", "setup", "build", "onResolve", "args", "path", "external", "props", "config", "asyncLock", "lockFile", "lockStat", "lockedMsAgo", "tries", "outfile", "stat", "catch", "Date", "getTime", "mtime", "Infinity", "pathExists", "Promise", "setTimeout", "writeFile"]
6
6
  }
@@ -5,7 +5,7 @@ import traverse from "@babel/traverse";
5
5
  import * as t from "@babel/types";
6
6
  import { Color, colorLog } from "@tamagui/cli-color";
7
7
  import esbuild from "esbuild";
8
- import { ensureDir, removeSync, writeFileSync } from "fs-extra";
8
+ import * as FS from "fs-extra";
9
9
  import { registerRequire, setRequireResult } from "../registerRequire";
10
10
  import { babelParse } from "./babelParse";
11
11
  import { bundle, esbuildLoaderConfig } from "./bundle";
@@ -44,7 +44,7 @@ async function getBundledConfig(props, rebuild = !1) {
44
44
  async function bundleConfig(props) {
45
45
  try {
46
46
  isBundling = !0;
47
- const configEntry = props.config ? getTamaguiConfigPathFromOptionsConfig(props.config) : "", tmpDir = join(process.cwd(), ".tamagui"), configOutPath = join(tmpDir, "tamagui.config.cjs"), baseComponents = props.components.filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
47
+ const configEntry = props.config ? getTamaguiConfigPathFromOptionsConfig(props.config) : "", tmpDir = join(process.cwd(), ".tamagui"), configOutPath = join(tmpDir, "tamagui.config.cjs"), baseComponents = (props.components || []).filter((x) => x !== "@tamagui/core"), componentOutPaths = baseComponents.map(
48
48
  (componentModule) => join(
49
49
  tmpDir,
50
50
  `${componentModule.split(sep).join("-").replace(/[^a-z0-9]+/gi, "")}-components.config.cjs`
@@ -52,7 +52,7 @@ async function bundleConfig(props) {
52
52
  );
53
53
  if (process.env.NODE_ENV === "development" && process.env.DEBUG?.startsWith("tamagui") && console.info("Building config entry", configEntry), !props.disableInitialBuild) {
54
54
  try {
55
- await ensureDir(tmpDir);
55
+ await FS.ensureDir(tmpDir);
56
56
  } catch {
57
57
  }
58
58
  const start = Date.now();
@@ -65,7 +65,7 @@ async function bundleConfig(props) {
65
65
  target: "node16",
66
66
  ...esbuildExtraOptions
67
67
  },
68
- props.platform
68
+ props.platform || "web"
69
69
  ) : null,
70
70
  ...baseComponents.map((componentModule, i) => bundle(
71
71
  {
@@ -76,7 +76,7 @@ async function bundleConfig(props) {
76
76
  target: "node16",
77
77
  ...esbuildExtraOptions
78
78
  },
79
- props.platform
79
+ props.platform || "web"
80
80
  ))
81
81
  ]), colorLog(
82
82
  Color.FgYellow,
@@ -94,7 +94,7 @@ async function bundleConfig(props) {
94
94
  );
95
95
  }
96
96
  let out;
97
- const { unregister } = registerRequire(props.platform);
97
+ const { unregister } = registerRequire(props.platform || "web");
98
98
  try {
99
99
  out = require(configOutPath);
100
100
  } catch (err) {
@@ -151,10 +151,10 @@ function getCoreComponents(props) {
151
151
  ];
152
152
  }
153
153
  function loadComponentsInner(props, forceExports = !1) {
154
- const componentsModules = props.components, key = componentsModules.join("");
154
+ const componentsModules = props.components || [], key = componentsModules.join("");
155
155
  if (!forceExports && cacheComponents[key])
156
156
  return cacheComponents[key];
157
- const { unregister } = registerRequire(props.platform, {
157
+ const { unregister } = registerRequire(props.platform || "web", {
158
158
  proxyWormImports: forceExports
159
159
  });
160
160
  try {
@@ -162,7 +162,7 @@ function loadComponentsInner(props, forceExports = !1) {
162
162
  const isDynamic = !!extname(name) && forceExports, fileContents = isDynamic ? readFileSync(name, "utf-8") : "", loadModule = isDynamic ? join(dirname(name), `.tamagui-dynamic-eval-${basename(name)}.tsx`) : name;
163
163
  let writtenContents = fileContents, didBabel = !1;
164
164
  function attemptLoad({ forceExports: forceExports2 = !1 } = {}) {
165
- isDynamic && (writtenContents = forceExports2 ? transformAddExports(babelParse(esbuildit(fileContents, "modern"), name)) : fileContents, writeFileSync(loadModule, writtenContents), esbuild.buildSync({
165
+ isDynamic && (writtenContents = forceExports2 ? transformAddExports(babelParse(esbuildit(fileContents, "modern"), name)) : fileContents, FS.writeFileSync(loadModule, writtenContents), esbuild.buildSync({
166
166
  ...esbuildOptions,
167
167
  entryPoints: [loadModule],
168
168
  outfile: loadModule,
@@ -188,7 +188,7 @@ function loadComponentsInner(props, forceExports = !1) {
188
188
  };
189
189
  }
190
190
  const dispose = () => {
191
- isDynamic && removeSync(loadModule);
191
+ isDynamic && FS.removeSync(loadModule);
192
192
  };
193
193
  try {
194
194
  const res = attemptLoad({