@tamagui/static 1.89.26 → 1.89.27-1708113113238
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/constants.native.js +4 -4
- package/dist/cjs/constants.native.js.map +3 -3
- package/dist/cjs/extractor/accessSafe.native.js +1 -5
- package/dist/cjs/extractor/accessSafe.native.js.map +3 -3
- package/dist/cjs/extractor/babelParse.native.js +5 -8
- package/dist/cjs/extractor/babelParse.native.js.map +3 -3
- package/dist/cjs/extractor/buildClassName.native.js +31 -42
- package/dist/cjs/extractor/buildClassName.native.js.map +3 -3
- package/dist/cjs/extractor/bundle.js +6 -4
- package/dist/cjs/extractor/bundle.js.map +1 -1
- package/dist/cjs/extractor/bundle.native.js +321 -56
- package/dist/cjs/extractor/bundle.native.js.map +3 -3
- package/dist/cjs/extractor/bundleConfig.native.js +499 -187
- package/dist/cjs/extractor/bundleConfig.native.js.map +3 -3
- package/dist/cjs/extractor/createEvaluator.native.js +9 -11
- package/dist/cjs/extractor/createEvaluator.native.js.map +3 -3
- package/dist/cjs/extractor/createExtractor.native.js +1240 -906
- package/dist/cjs/extractor/createExtractor.native.js.map +3 -3
- package/dist/cjs/extractor/ensureImportingConcat.native.js +11 -17
- package/dist/cjs/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/cjs/extractor/evaluateAstNode.native.js +15 -21
- package/dist/cjs/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/cjs/extractor/extractHelpers.native.js +146 -38
- package/dist/cjs/extractor/extractHelpers.native.js.map +3 -3
- package/dist/cjs/extractor/extractMediaStyle.native.js +127 -54
- package/dist/cjs/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/cjs/extractor/extractToClassNames.native.js +449 -252
- package/dist/cjs/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/findTopmostFunction.native.js +4 -4
- package/dist/cjs/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/cjs/extractor/generatedUid.native.js +2 -2
- package/dist/cjs/extractor/generatedUid.native.js.map +3 -3
- package/dist/cjs/extractor/getPrefixLogs.native.js +2 -1
- package/dist/cjs/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/cjs/extractor/getSourceModule.native.js +20 -7
- package/dist/cjs/extractor/getSourceModule.native.js.map +3 -3
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/cjs/extractor/hoistClassNames.native.js +8 -10
- package/dist/cjs/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/literalToAst.native.js +89 -19
- package/dist/cjs/extractor/literalToAst.native.js.map +3 -3
- package/dist/cjs/extractor/loadFile.native.js +16 -8
- package/dist/cjs/extractor/loadFile.native.js.map +3 -3
- package/dist/cjs/extractor/loadTamagui.js +3 -3
- package/dist/cjs/extractor/loadTamagui.js.map +1 -1
- package/dist/cjs/extractor/loadTamagui.native.js +667 -192
- package/dist/cjs/extractor/loadTamagui.native.js.map +3 -3
- package/dist/cjs/extractor/logLines.native.js +24 -6
- package/dist/cjs/extractor/logLines.native.js.map +3 -3
- package/dist/cjs/extractor/normalizeTernaries.native.js +71 -20
- package/dist/cjs/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/cjs/extractor/removeUnusedHooks.native.js +69 -36
- package/dist/cjs/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/cjs/extractor/timer.native.js +10 -9
- package/dist/cjs/extractor/timer.native.js.map +3 -3
- package/dist/cjs/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/cjs/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/cjs/getPragmaOptions.native.js +4 -9
- package/dist/cjs/getPragmaOptions.native.js.map +3 -3
- package/dist/cjs/helpers/memoize.native.js +5 -3
- package/dist/cjs/helpers/memoize.native.js.map +3 -3
- package/dist/cjs/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/cjs/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/minifyCSS.native.js.map +3 -3
- package/dist/cjs/registerRequire.native.js +56 -28
- package/dist/cjs/registerRequire.native.js.map +3 -3
- package/dist/cjs/server.native.js +175 -21
- package/dist/cjs/server.native.js.map +3 -3
- package/dist/cjs/setup.native.js.map +3 -3
- package/dist/cjs/static.native.js.map +2 -2
- package/dist/cjs/types.native.js.map +2 -2
- package/dist/cjs/webpackPlugin.native.js +26 -5
- package/dist/cjs/webpackPlugin.native.js.map +3 -3
- package/dist/esm/constants.native.js +4 -3
- package/dist/esm/constants.native.js.map +3 -3
- package/dist/esm/extractor/accessSafe.native.js +1 -5
- package/dist/esm/extractor/accessSafe.native.js.map +3 -3
- package/dist/esm/extractor/babelParse.native.js +5 -7
- package/dist/esm/extractor/babelParse.native.js.map +3 -3
- package/dist/esm/extractor/buildClassName.native.js +31 -41
- package/dist/esm/extractor/buildClassName.native.js.map +3 -3
- package/dist/esm/extractor/bundle.js +6 -4
- package/dist/esm/extractor/bundle.js.map +1 -1
- package/dist/esm/extractor/bundle.mjs +7 -5
- package/dist/esm/extractor/bundle.native.js +321 -56
- package/dist/esm/extractor/bundle.native.js.map +3 -3
- package/dist/esm/extractor/bundleConfig.native.js +499 -187
- package/dist/esm/extractor/bundleConfig.native.js.map +3 -3
- package/dist/esm/extractor/createEvaluator.native.js +9 -11
- package/dist/esm/extractor/createEvaluator.native.js.map +3 -3
- package/dist/esm/extractor/createExtractor.native.js +1241 -916
- package/dist/esm/extractor/createExtractor.native.js.map +3 -3
- package/dist/esm/extractor/ensureImportingConcat.native.js +11 -16
- package/dist/esm/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/esm/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/esm/extractor/evaluateAstNode.native.js +15 -21
- package/dist/esm/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/esm/extractor/extractHelpers.native.js +146 -38
- package/dist/esm/extractor/extractHelpers.native.js.map +3 -3
- package/dist/esm/extractor/extractMediaStyle.native.js +127 -54
- package/dist/esm/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/esm/extractor/extractToClassNames.native.js +449 -252
- package/dist/esm/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/esm/extractor/findTopmostFunction.native.js +4 -4
- package/dist/esm/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/esm/extractor/generatedUid.native.js +2 -2
- package/dist/esm/extractor/generatedUid.native.js.map +3 -3
- package/dist/esm/extractor/getPrefixLogs.native.js +2 -1
- package/dist/esm/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/esm/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/esm/extractor/getSourceModule.native.js +20 -7
- package/dist/esm/extractor/getSourceModule.native.js.map +3 -3
- package/dist/esm/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/esm/extractor/hoistClassNames.native.js +8 -10
- package/dist/esm/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/esm/extractor/literalToAst.native.js +89 -19
- package/dist/esm/extractor/literalToAst.native.js.map +3 -3
- package/dist/esm/extractor/loadFile.native.js +16 -8
- package/dist/esm/extractor/loadFile.native.js.map +3 -3
- package/dist/esm/extractor/loadTamagui.js +1 -2
- package/dist/esm/extractor/loadTamagui.js.map +1 -1
- package/dist/esm/extractor/loadTamagui.mjs +5 -3
- package/dist/esm/extractor/loadTamagui.native.js +668 -203
- package/dist/esm/extractor/loadTamagui.native.js.map +3 -3
- package/dist/esm/extractor/logLines.native.js +24 -6
- package/dist/esm/extractor/logLines.native.js.map +3 -3
- package/dist/esm/extractor/normalizeTernaries.native.js +71 -20
- package/dist/esm/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/esm/extractor/removeUnusedHooks.native.js +69 -35
- package/dist/esm/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/esm/extractor/timer.native.js +10 -9
- package/dist/esm/extractor/timer.native.js.map +3 -3
- package/dist/esm/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/esm/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/esm/getPragmaOptions.native.js +4 -9
- package/dist/esm/getPragmaOptions.native.js.map +3 -3
- package/dist/esm/helpers/memoize.native.js +5 -3
- package/dist/esm/helpers/memoize.native.js.map +3 -3
- package/dist/esm/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/esm/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/minifyCSS.native.js.map +3 -3
- package/dist/esm/registerRequire.native.js +56 -28
- package/dist/esm/registerRequire.native.js.map +3 -3
- package/dist/esm/server.native.js +175 -21
- package/dist/esm/server.native.js.map +3 -3
- package/dist/esm/setup.native.js.map +3 -3
- package/dist/esm/static.native.js.map +3 -3
- package/dist/esm/webpackPlugin.native.js +26 -5
- package/dist/esm/webpackPlugin.native.js.map +3 -3
- package/package.json +14 -15
- package/src/extractor/bundle.ts +5 -2
- package/src/extractor/loadTamagui.ts +3 -2
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/loadTamagui.d.ts.map +1 -1
- package/tamagui.tsconfig.json +0 -5
@@ -29,7 +29,191 @@ __export(bundle_exports, {
|
|
29
29
|
});
|
30
30
|
module.exports = __toCommonJS(bundle_exports);
|
31
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");
|
32
|
-
|
32
|
+
function _array_like_to_array(arr, len) {
|
33
|
+
(len == null || len > arr.length) && (len = arr.length);
|
34
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
35
|
+
arr2[i] = arr[i];
|
36
|
+
return arr2;
|
37
|
+
}
|
38
|
+
function _array_without_holes(arr) {
|
39
|
+
if (Array.isArray(arr))
|
40
|
+
return _array_like_to_array(arr);
|
41
|
+
}
|
42
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
43
|
+
try {
|
44
|
+
var info = gen[key](arg), value = info.value;
|
45
|
+
} catch (error) {
|
46
|
+
reject(error);
|
47
|
+
return;
|
48
|
+
}
|
49
|
+
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
50
|
+
}
|
51
|
+
function _async_to_generator(fn) {
|
52
|
+
return function() {
|
53
|
+
var self = this, args = arguments;
|
54
|
+
return new Promise(function(resolve, reject) {
|
55
|
+
var gen = fn.apply(self, args);
|
56
|
+
function _next(value) {
|
57
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
58
|
+
}
|
59
|
+
function _throw(err) {
|
60
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
61
|
+
}
|
62
|
+
_next(void 0);
|
63
|
+
});
|
64
|
+
};
|
65
|
+
}
|
66
|
+
function _define_property(obj, key, value) {
|
67
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
68
|
+
value,
|
69
|
+
enumerable: !0,
|
70
|
+
configurable: !0,
|
71
|
+
writable: !0
|
72
|
+
}) : obj[key] = value, obj;
|
73
|
+
}
|
74
|
+
function _iterable_to_array(iter) {
|
75
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
76
|
+
return Array.from(iter);
|
77
|
+
}
|
78
|
+
function _non_iterable_spread() {
|
79
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
80
|
+
}
|
81
|
+
function _object_spread(target) {
|
82
|
+
for (var i = 1; i < arguments.length; i++) {
|
83
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
84
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
85
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
86
|
+
}))), ownKeys.forEach(function(key) {
|
87
|
+
_define_property(target, key, source[key]);
|
88
|
+
});
|
89
|
+
}
|
90
|
+
return target;
|
91
|
+
}
|
92
|
+
function _object_without_properties(source, excluded) {
|
93
|
+
if (source == null)
|
94
|
+
return {};
|
95
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
96
|
+
if (Object.getOwnPropertySymbols) {
|
97
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
98
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
99
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
100
|
+
}
|
101
|
+
return target;
|
102
|
+
}
|
103
|
+
function _object_without_properties_loose(source, excluded) {
|
104
|
+
if (source == null)
|
105
|
+
return {};
|
106
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
107
|
+
for (i = 0; i < sourceKeys.length; i++)
|
108
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
109
|
+
return target;
|
110
|
+
}
|
111
|
+
function _to_consumable_array(arr) {
|
112
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
113
|
+
}
|
114
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
115
|
+
if (o) {
|
116
|
+
if (typeof o == "string")
|
117
|
+
return _array_like_to_array(o, minLen);
|
118
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
119
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
120
|
+
return Array.from(n);
|
121
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
122
|
+
return _array_like_to_array(o, minLen);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
function _ts_generator(thisArg, body) {
|
126
|
+
var f, y, t, g, _ = {
|
127
|
+
label: 0,
|
128
|
+
sent: function() {
|
129
|
+
if (t[0] & 1)
|
130
|
+
throw t[1];
|
131
|
+
return t[1];
|
132
|
+
},
|
133
|
+
trys: [],
|
134
|
+
ops: []
|
135
|
+
};
|
136
|
+
return g = {
|
137
|
+
next: verb(0),
|
138
|
+
throw: verb(1),
|
139
|
+
return: verb(2)
|
140
|
+
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
141
|
+
return this;
|
142
|
+
}), g;
|
143
|
+
function verb(n) {
|
144
|
+
return function(v) {
|
145
|
+
return step([
|
146
|
+
n,
|
147
|
+
v
|
148
|
+
]);
|
149
|
+
};
|
150
|
+
}
|
151
|
+
function step(op) {
|
152
|
+
if (f)
|
153
|
+
throw new TypeError("Generator is already executing.");
|
154
|
+
for (; _; )
|
155
|
+
try {
|
156
|
+
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)
|
157
|
+
return t;
|
158
|
+
switch (y = 0, t && (op = [
|
159
|
+
op[0] & 2,
|
160
|
+
t.value
|
161
|
+
]), op[0]) {
|
162
|
+
case 0:
|
163
|
+
case 1:
|
164
|
+
t = op;
|
165
|
+
break;
|
166
|
+
case 4:
|
167
|
+
return _.label++, {
|
168
|
+
value: op[1],
|
169
|
+
done: !1
|
170
|
+
};
|
171
|
+
case 5:
|
172
|
+
_.label++, y = op[1], op = [
|
173
|
+
0
|
174
|
+
];
|
175
|
+
continue;
|
176
|
+
case 7:
|
177
|
+
op = _.ops.pop(), _.trys.pop();
|
178
|
+
continue;
|
179
|
+
default:
|
180
|
+
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
181
|
+
_ = 0;
|
182
|
+
continue;
|
183
|
+
}
|
184
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
185
|
+
_.label = op[1];
|
186
|
+
break;
|
187
|
+
}
|
188
|
+
if (op[0] === 6 && _.label < t[1]) {
|
189
|
+
_.label = t[1], t = op;
|
190
|
+
break;
|
191
|
+
}
|
192
|
+
if (t && _.label < t[2]) {
|
193
|
+
_.label = t[2], _.ops.push(op);
|
194
|
+
break;
|
195
|
+
}
|
196
|
+
t[2] && _.ops.pop(), _.trys.pop();
|
197
|
+
continue;
|
198
|
+
}
|
199
|
+
op = body.call(thisArg, _);
|
200
|
+
} catch (e) {
|
201
|
+
op = [
|
202
|
+
6,
|
203
|
+
e
|
204
|
+
], y = 0;
|
205
|
+
} finally {
|
206
|
+
f = t = 0;
|
207
|
+
}
|
208
|
+
if (op[0] & 5)
|
209
|
+
throw op[1];
|
210
|
+
return {
|
211
|
+
value: op[0] ? op[1] : void 0,
|
212
|
+
done: !0
|
213
|
+
};
|
214
|
+
}
|
215
|
+
}
|
216
|
+
var esbuildLoaderConfig = {
|
33
217
|
".js": "jsx",
|
34
218
|
".png": "dataurl",
|
35
219
|
".jpg": "dataurl",
|
@@ -52,84 +236,165 @@ const esbuildLoaderConfig = {
|
|
52
236
|
".aac": "file",
|
53
237
|
".ogg": "file",
|
54
238
|
".flac": "file"
|
55
|
-
}, dataExtensions = Object.keys(esbuildLoaderConfig).filter(
|
56
|
-
|
57
|
-
).map((k)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
239
|
+
}, dataExtensions = Object.keys(esbuildLoaderConfig).filter(function(k) {
|
240
|
+
return esbuildLoaderConfig[k] === "file" || esbuildLoaderConfig[k] === "dataurl";
|
241
|
+
}).map(function(k) {
|
242
|
+
return k.slice(1);
|
243
|
+
}), esbuildIgnoreFilesRegex = new RegExp(".(".concat(dataExtensions.join("|"), ")$"), "i");
|
244
|
+
function getESBuildConfig(_param, platform, aliases) {
|
245
|
+
var entryPoints = _param.entryPoints, resolvePlatformSpecificEntries = _param.resolvePlatformSpecificEntries, options = _object_without_properties(_param, [
|
246
|
+
"entryPoints",
|
247
|
+
"resolvePlatformSpecificEntries"
|
248
|
+
]), _process_env_DEBUG;
|
249
|
+
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info("Building", entryPoints);
|
250
|
+
var resolvedEntryPoints = resolvePlatformSpecificEntries ? entryPoints.map(import_loadTamagui.resolveWebOrNativeSpecificEntry) : entryPoints, res = _object_spread({
|
63
251
|
bundle: !0,
|
64
|
-
entryPoints:
|
252
|
+
entryPoints: resolvedEntryPoints,
|
65
253
|
format: "cjs",
|
66
254
|
target: "node16",
|
67
255
|
jsx: "transform",
|
68
256
|
jsxFactory: "react",
|
69
257
|
allowOverwrite: !0,
|
70
258
|
keepNames: !0,
|
71
|
-
resolveExtensions: [
|
259
|
+
resolveExtensions: _to_consumable_array([
|
72
260
|
".native.tsx",
|
73
261
|
".native.ts",
|
74
262
|
".native.jsx",
|
75
|
-
".native.js"
|
263
|
+
".native.js"
|
264
|
+
]).concat([
|
76
265
|
".tsx",
|
77
266
|
".ts",
|
78
267
|
".jsx",
|
79
268
|
".js"
|
80
|
-
],
|
269
|
+
]),
|
81
270
|
platform: "node",
|
82
|
-
|
271
|
+
tsconfigRaw: {
|
272
|
+
compilerOptions: {
|
273
|
+
jsx: "react-jsx"
|
274
|
+
}
|
275
|
+
},
|
83
276
|
loader: esbuildLoaderConfig,
|
84
277
|
logLevel: "warning",
|
85
278
|
plugins: [
|
86
279
|
{
|
87
280
|
name: "external",
|
88
|
-
setup(build) {
|
89
|
-
build.onResolve({
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
281
|
+
setup: function(build) {
|
282
|
+
build.onResolve({
|
283
|
+
filter: /@tamagui\/core/
|
284
|
+
}, function(args) {
|
285
|
+
return {
|
286
|
+
path: platform === "native" ? "@tamagui/core/native" : "@tamagui/core",
|
287
|
+
external: !0
|
288
|
+
};
|
289
|
+
}), build.onResolve({
|
290
|
+
filter: /react-native\/package.json$/
|
291
|
+
}, function(args) {
|
292
|
+
return {
|
293
|
+
path: "react-native/package.json",
|
294
|
+
external: !0
|
295
|
+
};
|
296
|
+
}), build.onResolve({
|
297
|
+
filter: /@tamagui\/web/
|
298
|
+
}, function(args) {
|
299
|
+
return {
|
300
|
+
path: platform === "native" ? "@tamagui/core/native" : "@tamagui/core",
|
301
|
+
external: !0
|
302
|
+
};
|
303
|
+
}), build.onResolve({
|
304
|
+
filter: /^(react-native|react-native\/.*)$/
|
305
|
+
}, function(args) {
|
306
|
+
return {
|
307
|
+
path: "react-native-web-lite",
|
308
|
+
external: !0
|
309
|
+
};
|
310
|
+
}), build.onResolve({
|
311
|
+
filter: /react-native-reanimated/
|
312
|
+
}, function(args) {
|
313
|
+
return {
|
314
|
+
path: "react-native-reanimated",
|
315
|
+
external: !0
|
316
|
+
};
|
317
|
+
});
|
105
318
|
}
|
106
319
|
},
|
107
|
-
(0, import_esbuildAliasPlugin.esbuildAliasPlugin)({
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
...options
|
112
|
-
};
|
320
|
+
(0, import_esbuildAliasPlugin.esbuildAliasPlugin)(_object_spread({}, aliases))
|
321
|
+
]
|
322
|
+
}, options);
|
323
|
+
return res;
|
113
324
|
}
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
325
|
+
function bundle(props, platform, aliases) {
|
326
|
+
return _bundle.apply(this, arguments);
|
327
|
+
}
|
328
|
+
function _bundle() {
|
329
|
+
return _bundle = _async_to_generator(function(props, platform, aliases) {
|
330
|
+
var config;
|
331
|
+
return _ts_generator(this, function(_state) {
|
332
|
+
switch (_state.label) {
|
333
|
+
case 0:
|
334
|
+
return [
|
335
|
+
4,
|
336
|
+
asyncLock(props)
|
337
|
+
];
|
338
|
+
case 1:
|
339
|
+
return _state.sent(), config = getESBuildConfig(props, platform, aliases), [
|
340
|
+
2,
|
341
|
+
import_esbuild.default.build(config)
|
342
|
+
];
|
343
|
+
}
|
344
|
+
});
|
345
|
+
}), _bundle.apply(this, arguments);
|
346
|
+
}
|
347
|
+
function asyncLock(props) {
|
348
|
+
return _asyncLock.apply(this, arguments);
|
349
|
+
}
|
350
|
+
function _asyncLock() {
|
351
|
+
return _asyncLock = // until i do fancier things w plugins:
|
352
|
+
_async_to_generator(function(props) {
|
353
|
+
var lockFile, lockStat, lockedMsAgo, _process_env_DEBUG, tries;
|
354
|
+
return _ts_generator(this, function(_state) {
|
355
|
+
switch (_state.label) {
|
356
|
+
case 0:
|
357
|
+
return lockFile = (0, import_path.join)((0, import_path.dirname)(props.outfile), (0, import_path.basename)(props.outfile, ".lock")), [
|
358
|
+
4,
|
359
|
+
(0, import_fs_extra.stat)(lockFile).catch(function() {
|
360
|
+
})
|
361
|
+
];
|
362
|
+
case 1:
|
363
|
+
if (lockStat = _state.sent(), lockedMsAgo = lockStat ? (/* @__PURE__ */ new Date()).getTime() - new Date(lockStat.mtime).getTime() : 1 / 0, !(lockedMsAgo < 500))
|
364
|
+
return [
|
365
|
+
3,
|
366
|
+
5
|
367
|
+
];
|
368
|
+
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints), tries = 5, _state.label = 2;
|
369
|
+
case 2:
|
370
|
+
return tries-- ? [
|
371
|
+
4,
|
372
|
+
(0, import_fs_extra.pathExists)(props.outfile)
|
373
|
+
] : [
|
374
|
+
3,
|
375
|
+
5
|
376
|
+
];
|
377
|
+
case 3:
|
378
|
+
return _state.sent() ? [
|
379
|
+
2
|
380
|
+
] : [
|
381
|
+
4,
|
382
|
+
new Promise(function(res) {
|
383
|
+
return setTimeout(res, 50);
|
384
|
+
})
|
385
|
+
];
|
386
|
+
case 4:
|
387
|
+
return _state.sent(), [
|
388
|
+
3,
|
389
|
+
2
|
390
|
+
];
|
391
|
+
case 5:
|
392
|
+
return (0, import_fs_extra.writeFile)(lockFile, ""), [
|
393
|
+
2
|
394
|
+
];
|
395
|
+
}
|
396
|
+
});
|
397
|
+
}), _asyncLock.apply(this, arguments);
|
133
398
|
}
|
134
399
|
// Annotate the CommonJS export names for ESM import in node:
|
135
400
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/bundle.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["esbuild"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/bundle.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;AAAhB,wBAAA,KAAA,GACMC,SAASrC,iBAAiBoC,OAAOnC,UAAUC,OAAAA,GACjD;;YAAOqC,eAAAA,QAAQT,MAAMO,MAAAA;;;;EACvB,CAAA,GARsBtB,QAAAA,MAAAA,MAAAA,SAAAA;;SAWPuB,UAAUF,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"]
|
6
6
|
}
|