@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
@@ -1,8 +1,77 @@
|
|
1
1
|
import * as t from "@babel/types";
|
2
|
+
function _array_like_to_array(arr, len) {
|
3
|
+
(len == null || len > arr.length) && (len = arr.length);
|
4
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
5
|
+
arr2[i] = arr[i];
|
6
|
+
return arr2;
|
7
|
+
}
|
8
|
+
function _array_without_holes(arr) {
|
9
|
+
if (Array.isArray(arr))
|
10
|
+
return _array_like_to_array(arr);
|
11
|
+
}
|
12
|
+
function _define_property(obj, key, value) {
|
13
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
14
|
+
value,
|
15
|
+
enumerable: !0,
|
16
|
+
configurable: !0,
|
17
|
+
writable: !0
|
18
|
+
}) : obj[key] = value, obj;
|
19
|
+
}
|
20
|
+
function _iterable_to_array(iter) {
|
21
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
22
|
+
return Array.from(iter);
|
23
|
+
}
|
24
|
+
function _non_iterable_spread() {
|
25
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
26
|
+
}
|
27
|
+
function _object_spread(target) {
|
28
|
+
for (var i = 1; i < arguments.length; i++) {
|
29
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
30
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
31
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
32
|
+
}))), ownKeys2.forEach(function(key) {
|
33
|
+
_define_property(target, key, source[key]);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
return target;
|
37
|
+
}
|
38
|
+
function ownKeys(object, enumerableOnly) {
|
39
|
+
var keys = Object.keys(object);
|
40
|
+
if (Object.getOwnPropertySymbols) {
|
41
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
42
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
43
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
44
|
+
})), keys.push.apply(keys, symbols);
|
45
|
+
}
|
46
|
+
return keys;
|
47
|
+
}
|
48
|
+
function _object_spread_props(target, source) {
|
49
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
50
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
51
|
+
}), target;
|
52
|
+
}
|
53
|
+
function _to_consumable_array(arr) {
|
54
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
55
|
+
}
|
56
|
+
function _type_of(obj) {
|
57
|
+
"@swc/helpers - typeof";
|
58
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
59
|
+
}
|
60
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
61
|
+
if (o) {
|
62
|
+
if (typeof o == "string")
|
63
|
+
return _array_like_to_array(o, minLen);
|
64
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
65
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
66
|
+
return Array.from(n);
|
67
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
68
|
+
return _array_like_to_array(o, minLen);
|
69
|
+
}
|
70
|
+
}
|
2
71
|
function literalToAst(literal) {
|
3
72
|
if (literal === null)
|
4
73
|
return t.nullLiteral();
|
5
|
-
switch (typeof literal) {
|
74
|
+
switch (typeof literal > "u" ? "undefined" : _type_of(literal)) {
|
6
75
|
case "function":
|
7
76
|
throw new Error("Unsupported");
|
8
77
|
case "number":
|
@@ -14,12 +83,18 @@ function literalToAst(literal) {
|
|
14
83
|
case "undefined":
|
15
84
|
return t.unaryExpression("void", t.numericLiteral(0), !0);
|
16
85
|
default:
|
17
|
-
return Array.isArray(literal) ? t.arrayExpression(literal.map(literalToAst)) : t.objectExpression(
|
18
|
-
|
19
|
-
)
|
86
|
+
return Array.isArray(literal) ? t.arrayExpression(literal.map(literalToAst)) : t.objectExpression(Object.keys(literal).filter(function(k) {
|
87
|
+
return typeof literal[k] < "u";
|
88
|
+
}).map(function(k) {
|
89
|
+
return t.objectProperty(t.stringLiteral(k), literalToAst(literal[k]));
|
90
|
+
}));
|
20
91
|
}
|
21
92
|
}
|
22
|
-
|
93
|
+
var easyPeasies = [
|
94
|
+
"BooleanLiteral",
|
95
|
+
"StringLiteral",
|
96
|
+
"NumericLiteral"
|
97
|
+
];
|
23
98
|
function astToLiteral(node) {
|
24
99
|
if (node) {
|
25
100
|
if (easyPeasies.includes(node.type))
|
@@ -32,29 +107,24 @@ function astToLiteral(node) {
|
|
32
107
|
if (t.isArrayExpression(node))
|
33
108
|
return node.elements.reduce(
|
34
109
|
// @ts-ignore
|
35
|
-
(acc, element)
|
36
|
-
|
37
|
-
|
38
|
-
|
110
|
+
function(acc, element) {
|
111
|
+
return _to_consumable_array(acc).concat(_to_consumable_array((element == null ? void 0 : element.type) === "SpreadElement" ? astToLiteral(element.argument) : [
|
112
|
+
astToLiteral(element)
|
113
|
+
]));
|
114
|
+
},
|
39
115
|
[]
|
40
116
|
);
|
41
117
|
}
|
42
118
|
}
|
43
119
|
}
|
44
120
|
function computeProps(props) {
|
45
|
-
return props.reduce((acc, prop)
|
121
|
+
return props.reduce(function(acc, prop) {
|
46
122
|
if (prop.type === "SpreadElement")
|
47
|
-
return {
|
48
|
-
...acc,
|
49
|
-
...astToLiteral(prop.argument)
|
50
|
-
};
|
123
|
+
return _object_spread({}, acc, astToLiteral(prop.argument));
|
51
124
|
if (prop.type !== "ObjectMethod") {
|
52
|
-
|
125
|
+
var val = astToLiteral(prop.value);
|
53
126
|
if (val !== void 0)
|
54
|
-
return {
|
55
|
-
...acc,
|
56
|
-
[prop.key.name]: val
|
57
|
-
};
|
127
|
+
return _object_spread_props(_object_spread({}, acc), _define_property({}, prop.key.name, val));
|
58
128
|
}
|
59
129
|
return acc;
|
60
130
|
}, {});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/literalToAst.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/literalToAst.ts"],
|
4
|
+
"mappings": "AAAA,YAAYA,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,SAASC,aAAaC,SAAY;AACvC,MAAIA,YAAY;AACd,WAAOF,EAAEG,YAAW;AAEtB,UAAQ,OAAOD,UAAAA,MAAAA,cAAP,SAAOA,OAAAA,GAAAA;IACb,KAAK;AACH,YAAM,IAAIE,MAAM,aAAA;IAClB,KAAK;AACH,aAAOJ,EAAEK,eAAeH,OAAAA;IAC1B,KAAK;AACH,aAAOF,EAAEM,cAAcJ,OAAAA;IACzB,KAAK;AACH,aAAOF,EAAEO,eAAeL,OAAAA;IAC1B,KAAK;AACH,aAAOF,EAAEQ,gBAAgB,QAAQR,EAAEK,eAAe,CAAA,GAAI,EAAA;IACxD;AACE,aAAII,MAAMC,QAAQR,OAAAA,IACTF,EAAEW,gBAAgBT,QAAQU,IAAIX,YAAAA,CAAAA,IAEhCD,EAAEa,iBACPC,OAAOC,KAAKb,OAAAA,EACTc,OAAO,SAACC,GAAAA;AACP,eAAO,OAAOf,QAAQe,CAAAA,IAAO;MAC/B,CAAA,EACCL,IAAI,SAACK,GAAAA;AACJ,eAAOjB,EAAEkB,eAAelB,EAAEM,cAAcW,CAAAA,GAAIhB,aAAaC,QAAQe,CAAAA,CAAE,CAAA;MACrE,CAAA,CAAA;EAER;AACF;AAEA,IAAME,cAAc;EAAC;EAAkB;EAAiB;;AAEjD,SAASC,aAAaC,MAAS;AACpC,MAAKA,MAGL;QAAIF,YAAYG,SAASD,KAAKE,IAAI;AAChC,aAAOF,KAAKG;AAEd,QAAIH,OAAKI,SAAS,eAAe,CAACJ,KAAKG,QAGvC;UAAIxB,EAAE0B,cAAcL,IAAAA;AAClB,eAAO;AAET,UAAIrB,EAAE2B,mBAAmBN,IAAAA;AACvB,eAAOO,aAAaP,KAAKQ,UAAU;AAErC,UAAI7B,EAAE8B,kBAAkBT,IAAAA;AACtB,eAAOA,KAAKU,SAASC;;UAEnB,SAACC,KAAKC,SAAAA;mBACJ,qBAAGD,GAAAA,EAAAA,OACH,sBAAIC,WAAAA,OAAAA,SAAAA,QAASX,UAAS,kBAClBH,aAAac,QAAQC,QAAQ,IAC7B;cAACf,aAAac,OAAAA;aAAS,CAAA;;UAE7B,CAAA;QAAE;;;AAGR;AAEA,SAASN,aAAaQ,OAAK;AACzB,SAAOA,MAAMJ,OAAO,SAACC,KAAKI,MAAAA;AACxB,QAAIA,KAAKd,SAAS;AAChB,aAAO,eAAA,CAAA,GACFU,KACAb,aAAaiB,KAAKF,QAAQ,CAAA;AAGjC,QAAIE,KAAKd,SAAS,gBAAgB;AAChC,UAAMe,MAAMlB,aAAaiB,KAAKb,KAAK;AACnC,UAAIc,QAAQC;AACV,eAAO,qBAAA,eAAA,CAAA,GACFN,GAAAA,GACH,iBAAA,CAAA,GAACI,KAAKG,IAAIf,MAAOa,GAAAA,CAAAA;IAGvB;AACA,WAAOL;EACT,GAAG,CAAC,CAAA;AACN;",
|
5
|
+
"names": ["t", "literalToAst", "literal", "nullLiteral", "Error", "numericLiteral", "stringLiteral", "booleanLiteral", "unaryExpression", "Array", "isArray", "arrayExpression", "map", "objectExpression", "Object", "keys", "filter", "k", "objectProperty", "easyPeasies", "astToLiteral", "node", "includes", "type", "value", "name", "isNullLiteral", "isObjectExpression", "computeProps", "properties", "isArrayExpression", "elements", "reduce", "acc", "element", "argument", "props", "prop", "val", "undefined", "key"]
|
6
6
|
}
|
@@ -1,15 +1,23 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
function _instanceof(left, right) {
|
2
|
+
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
3
|
+
}
|
4
|
+
process.on("message", function(path) {
|
3
5
|
if (typeof path != "string")
|
4
|
-
throw new Error(
|
6
|
+
throw new Error("Not a string: ".concat(path));
|
5
7
|
try {
|
6
|
-
|
7
|
-
(
|
8
|
+
var _process_send, _process, out = require(path);
|
9
|
+
(_process_send = (_process = process).send) === null || _process_send === void 0 || _process_send.call(_process, JSON.stringify(out));
|
8
10
|
} catch (err) {
|
9
|
-
err
|
10
|
-
|
11
|
+
if (_instanceof(err, Error)) {
|
12
|
+
var _process_send1, _process1;
|
13
|
+
(_process_send1 = (_process1 = process).send) === null || _process_send1 === void 0 || _process_send1.call(_process1, "-".concat(err.message, `
|
14
|
+
`).concat(err.stack));
|
15
|
+
} else {
|
16
|
+
var _process_send2, _process2;
|
17
|
+
(_process_send2 = (_process2 = process).send) === null || _process_send2 === void 0 || _process_send2.call(_process2, "-".concat(err));
|
18
|
+
}
|
11
19
|
}
|
12
20
|
});
|
13
|
-
setInterval(()
|
21
|
+
setInterval(function() {
|
14
22
|
}, 1e3);
|
15
23
|
//# sourceMappingURL=loadFile.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/loadFile.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/loadFile.ts"],
|
4
|
+
"mappings": ";;;AAAAA,QAAQC,GAAG,WAAW,SAACC,MAAAA;AACrB,MAAI,OAAOA,QAAS;AAClB,UAAM,IAAIC,MAAO,iBAAqB,OAALD,IAAAA,CAAAA;AAEnC,MAAI;QAEFF,eAAAA,UADMI,MAAMC,QAAQH,IAAAA;KACpBF,iBAAAA,WAAAA,SAAQM,UAAI,QAAZN,kBAAAA,UAAAA,cAAAA,KAAAA,UAAeO,KAAKC,UAAUJ,GAAAA,CAAAA;EAChC,SAASK,KAAK;AACZ,QAAO,YAAHA,KAAeN,KAAAA,GAAO;UACxBH,gBAAAA;OAAAA,kBAAAA,YAAAA,SAAQM,UAAI,QAAZN,mBAAAA,UAAAA,eAAAA,KAAAA,WAAgB,IAAmBS,OAAhBA,IAAIC,SAAQ;CAAA,EAAc,OAAVD,IAAIE,KAAK,CAAA;IAC9C,OAAO;UACLX,gBAAAA;OAAAA,kBAAAA,YAAAA,SAAQM,UAAI,QAAZN,mBAAAA,UAAAA,eAAAA,KAAAA,WAAgB,IAAO,OAAJS,GAAAA,CAAAA;IACrB;EACF;AACF,CAAA;AAEAG,YAAY,WAAA;AAAO,GAAG,GAAA;",
|
5
|
+
"names": ["process", "on", "path", "Error", "out", "require", "send", "JSON", "stringify", "err", "message", "stack", "setInterval"]
|
6
6
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { readFileSync, writeFileSync } from "fs";
|
2
2
|
import { basename, dirname, extname, join, relative, resolve } from "path";
|
3
3
|
import { Color, colorLog } from "@tamagui/cli-color";
|
4
|
-
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
5
4
|
import esbuild from "esbuild";
|
6
5
|
import { existsSync, pathExists, readJSON, writeFile } from "fs-extra";
|
7
6
|
import { SHOULD_DEBUG } from "../constants";
|
@@ -164,7 +163,7 @@ function loadTamaguiSync({
|
|
164
163
|
${err.message}
|
165
164
|
|
166
165
|
`)) : SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
|
167
|
-
const { createTamagui } = requireTamaguiCore(props.platform);
|
166
|
+
const { createTamagui } = requireTamaguiCore(props.platform), { getDefaultTamaguiConfig } = require("@tamagui/config-default");
|
168
167
|
return {
|
169
168
|
components: [],
|
170
169
|
tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/loadTamagui.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,cAAc,qBAAqB;AAC5C,SAAS,UAAU,SAAS,SAAS,MAAM,UAAU,eAAe;AAEpE,SAAS,OAAO,gBAAgB;
|
4
|
+
"mappings": "AAAA,SAAS,cAAc,qBAAqB;AAC5C,SAAS,UAAU,SAAS,SAAS,MAAM,UAAU,eAAe;AAEpE,SAAS,OAAO,gBAAgB;AAGhC,OAAO,aAAa;AACpB,SAAS,YAAwB,YAAY,UAAU,iBAAiB;AAExE,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,uBAAuB;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6CAA6C;AACtD,SAAS,gBAAgB;AAEzB,MAAM,mBAAmB,CAAC,aAAsD;AAAA;AAAA,EAE9E,UAAW;AAAA,EACX,QAAQ;AAAA,EACR,YAAY,CAAC,SAAS;AAAA,EACtB,GAAI;AACN;AAEA,eAAsB,YACpB,SACoC;AACpC,QAAM,QAAQ,iBAAiB,OAAO,GAEhC,aAAa,MAAM,iBAAiB,KAAK;AAC/C,MAAI,CAAC;AACH,mBAAQ;AAAA,MACN;AAAA,IACF,GACO;AAMT,MAFA,MAAM,qBAAqB,OAAO,EAAI,GAElC,CAAC,wBAAwB;AAC3B,WAAO;AAIT,MAAI,YAAY;AACd,UAAM,EAAE,cAAc,IAAI,mBAAmB,MAAM,QAAQ,G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SAAS;AAAA,MACP;AAAA,QACE,MAAM;AAAA,QACN,MAAM,EAAE,MAAM,GAAG;AACf,gBAAM,MAAM;AACV,YAAK,aAGH,UAAU,IAFV,aAAa;AAAA,UAIjB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAGD,SAAK,QAAQ,MAAM,GAEZ,MAAM;AACX,YAAQ,QAAQ;AAAA,EAClB;AACF;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { readFileSync, writeFileSync } from "fs";
|
2
2
|
import { basename, dirname, extname, join, relative, resolve } from "path";
|
3
3
|
import { Color, colorLog } from "@tamagui/cli-color";
|
4
|
-
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
5
4
|
import esbuild from "esbuild";
|
6
5
|
import { existsSync, pathExists, readJSON, writeFile } from "fs-extra";
|
7
6
|
import { SHOULD_DEBUG } from "../constants.mjs";
|
@@ -157,8 +156,11 @@ function loadTamaguiSync({
|
|
157
156
|
|
158
157
|
`)) : SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
|
159
158
|
const {
|
160
|
-
|
161
|
-
|
159
|
+
createTamagui
|
160
|
+
} = requireTamaguiCore(props.platform),
|
161
|
+
{
|
162
|
+
getDefaultTamaguiConfig
|
163
|
+
} = require("@tamagui/config-default");
|
162
164
|
return {
|
163
165
|
components: [],
|
164
166
|
tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
|