@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
@@ -28,10 +28,79 @@ __export(literalToAst_exports, {
|
|
28
28
|
});
|
29
29
|
module.exports = __toCommonJS(literalToAst_exports);
|
30
30
|
var t = __toESM(require("@babel/types"));
|
31
|
+
function _array_like_to_array(arr, len) {
|
32
|
+
(len == null || len > arr.length) && (len = arr.length);
|
33
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
34
|
+
arr2[i] = arr[i];
|
35
|
+
return arr2;
|
36
|
+
}
|
37
|
+
function _array_without_holes(arr) {
|
38
|
+
if (Array.isArray(arr))
|
39
|
+
return _array_like_to_array(arr);
|
40
|
+
}
|
41
|
+
function _define_property(obj, key, value) {
|
42
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
43
|
+
value,
|
44
|
+
enumerable: !0,
|
45
|
+
configurable: !0,
|
46
|
+
writable: !0
|
47
|
+
}) : obj[key] = value, obj;
|
48
|
+
}
|
49
|
+
function _iterable_to_array(iter) {
|
50
|
+
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
51
|
+
return Array.from(iter);
|
52
|
+
}
|
53
|
+
function _non_iterable_spread() {
|
54
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
55
|
+
}
|
56
|
+
function _object_spread(target) {
|
57
|
+
for (var i = 1; i < arguments.length; i++) {
|
58
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
59
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
60
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
61
|
+
}))), ownKeys2.forEach(function(key) {
|
62
|
+
_define_property(target, key, source[key]);
|
63
|
+
});
|
64
|
+
}
|
65
|
+
return target;
|
66
|
+
}
|
67
|
+
function ownKeys(object, enumerableOnly) {
|
68
|
+
var keys = Object.keys(object);
|
69
|
+
if (Object.getOwnPropertySymbols) {
|
70
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
71
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
72
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
73
|
+
})), keys.push.apply(keys, symbols);
|
74
|
+
}
|
75
|
+
return keys;
|
76
|
+
}
|
77
|
+
function _object_spread_props(target, source) {
|
78
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
79
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
80
|
+
}), target;
|
81
|
+
}
|
82
|
+
function _to_consumable_array(arr) {
|
83
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
84
|
+
}
|
85
|
+
function _type_of(obj) {
|
86
|
+
"@swc/helpers - typeof";
|
87
|
+
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
88
|
+
}
|
89
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
90
|
+
if (o) {
|
91
|
+
if (typeof o == "string")
|
92
|
+
return _array_like_to_array(o, minLen);
|
93
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
94
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
95
|
+
return Array.from(n);
|
96
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
97
|
+
return _array_like_to_array(o, minLen);
|
98
|
+
}
|
99
|
+
}
|
31
100
|
function literalToAst(literal) {
|
32
101
|
if (literal === null)
|
33
102
|
return t.nullLiteral();
|
34
|
-
switch (typeof literal) {
|
103
|
+
switch (typeof literal > "u" ? "undefined" : _type_of(literal)) {
|
35
104
|
case "function":
|
36
105
|
throw new Error("Unsupported");
|
37
106
|
case "number":
|
@@ -43,12 +112,18 @@ function literalToAst(literal) {
|
|
43
112
|
case "undefined":
|
44
113
|
return t.unaryExpression("void", t.numericLiteral(0), !0);
|
45
114
|
default:
|
46
|
-
return Array.isArray(literal) ? t.arrayExpression(literal.map(literalToAst)) : t.objectExpression(
|
47
|
-
|
48
|
-
)
|
115
|
+
return Array.isArray(literal) ? t.arrayExpression(literal.map(literalToAst)) : t.objectExpression(Object.keys(literal).filter(function(k) {
|
116
|
+
return typeof literal[k] < "u";
|
117
|
+
}).map(function(k) {
|
118
|
+
return t.objectProperty(t.stringLiteral(k), literalToAst(literal[k]));
|
119
|
+
}));
|
49
120
|
}
|
50
121
|
}
|
51
|
-
|
122
|
+
var easyPeasies = [
|
123
|
+
"BooleanLiteral",
|
124
|
+
"StringLiteral",
|
125
|
+
"NumericLiteral"
|
126
|
+
];
|
52
127
|
function astToLiteral(node) {
|
53
128
|
if (node) {
|
54
129
|
if (easyPeasies.includes(node.type))
|
@@ -61,29 +136,24 @@ function astToLiteral(node) {
|
|
61
136
|
if (t.isArrayExpression(node))
|
62
137
|
return node.elements.reduce(
|
63
138
|
// @ts-ignore
|
64
|
-
(acc, element)
|
65
|
-
|
66
|
-
|
67
|
-
|
139
|
+
function(acc, element) {
|
140
|
+
return _to_consumable_array(acc).concat(_to_consumable_array((element == null ? void 0 : element.type) === "SpreadElement" ? astToLiteral(element.argument) : [
|
141
|
+
astToLiteral(element)
|
142
|
+
]));
|
143
|
+
},
|
68
144
|
[]
|
69
145
|
);
|
70
146
|
}
|
71
147
|
}
|
72
148
|
}
|
73
149
|
function computeProps(props) {
|
74
|
-
return props.reduce((acc, prop)
|
150
|
+
return props.reduce(function(acc, prop) {
|
75
151
|
if (prop.type === "SpreadElement")
|
76
|
-
return {
|
77
|
-
...acc,
|
78
|
-
...astToLiteral(prop.argument)
|
79
|
-
};
|
152
|
+
return _object_spread({}, acc, astToLiteral(prop.argument));
|
80
153
|
if (prop.type !== "ObjectMethod") {
|
81
|
-
|
154
|
+
var val = astToLiteral(prop.value);
|
82
155
|
if (val !== void 0)
|
83
|
-
return {
|
84
|
-
...acc,
|
85
|
-
[prop.key.name]: val
|
86
|
-
};
|
156
|
+
return _object_spread_props(_object_spread({}, acc), _define_property({}, prop.key.name, val));
|
87
157
|
}
|
88
158
|
return acc;
|
89
159
|
}, {});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/literalToAst.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/literalToAst.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,QAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,SAASA,aAAaC,SAAY;AACvC,MAAIA,YAAY;AACd,WAAOC,EAAEC,YAAW;AAEtB,UAAQ,OAAOF,UAAAA,MAAAA,cAAP,SAAOA,OAAAA,GAAAA;IACb,KAAK;AACH,YAAM,IAAIG,MAAM,aAAA;IAClB,KAAK;AACH,aAAOF,EAAEG,eAAeJ,OAAAA;IAC1B,KAAK;AACH,aAAOC,EAAEI,cAAcL,OAAAA;IACzB,KAAK;AACH,aAAOC,EAAEK,eAAeN,OAAAA;IAC1B,KAAK;AACH,aAAOC,EAAEM,gBAAgB,QAAQN,EAAEG,eAAe,CAAA,GAAI,EAAA;IACxD;AACE,aAAII,MAAMC,QAAQT,OAAAA,IACTC,EAAES,gBAAgBV,QAAQW,IAAIZ,YAAAA,CAAAA,IAEhCE,EAAEW,iBACPC,OAAOC,K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",
|
5
|
+
"names": ["literalToAst", "literal", "t", "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,16 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
2
|
+
function _instanceof(left, right) {
|
3
|
+
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
4
|
+
}
|
5
|
+
process.on("message", function(path) {
|
4
6
|
if (typeof path != "string")
|
5
|
-
throw new Error(
|
7
|
+
throw new Error("Not a string: ".concat(path));
|
6
8
|
try {
|
7
|
-
|
8
|
-
(
|
9
|
+
var _process_send, _process, out = require(path);
|
10
|
+
(_process_send = (_process = process).send) === null || _process_send === void 0 || _process_send.call(_process, JSON.stringify(out));
|
9
11
|
} catch (err) {
|
10
|
-
err
|
11
|
-
|
12
|
+
if (_instanceof(err, Error)) {
|
13
|
+
var _process_send1, _process1;
|
14
|
+
(_process_send1 = (_process1 = process).send) === null || _process_send1 === void 0 || _process_send1.call(_process1, "-".concat(err.message, `
|
15
|
+
`).concat(err.stack));
|
16
|
+
} else {
|
17
|
+
var _process_send2, _process2;
|
18
|
+
(_process_send2 = (_process2 = process).send) === null || _process_send2 === void 0 || _process_send2.call(_process2, "-".concat(err));
|
19
|
+
}
|
12
20
|
}
|
13
21
|
});
|
14
|
-
setInterval(()
|
22
|
+
setInterval(function() {
|
15
23
|
}, 1e3);
|
16
24
|
//# 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
|
}
|
@@ -31,7 +31,7 @@ __export(loadTamagui_exports, {
|
|
31
31
|
watchTamaguiConfig: () => watchTamaguiConfig
|
32
32
|
});
|
33
33
|
module.exports = __toCommonJS(loadTamagui_exports);
|
34
|
-
var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"),
|
34
|
+
var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig"), import_promises = require("fs/promises");
|
35
35
|
const getFilledOptions = (propsIn) => ({
|
36
36
|
// defaults
|
37
37
|
platform: "web",
|
@@ -175,10 +175,10 @@ function loadTamaguiSync({
|
|
175
175
|
${err.message}
|
176
176
|
|
177
177
|
`)) : import_constants.SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
|
178
|
-
const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform);
|
178
|
+
const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform), { getDefaultTamaguiConfig } = require("@tamagui/config-default");
|
179
179
|
return {
|
180
180
|
components: [],
|
181
|
-
tamaguiConfig: createTamagui(
|
181
|
+
tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
|
182
182
|
nameToPaths: {}
|
183
183
|
};
|
184
184
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/loadTamagui.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+BAGhC,iBAAoB,6BACpB,kBAAwE,qBAExE,mBAA6B,yBAC7B,4BAAmC,0CACnC,mBAA0B,yBAC1B,yBAAgD,+BAChD,sBAKO,2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