@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
@@ -30,10 +30,10 @@ __export(constants_exports, {
|
|
30
30
|
cacheDir: () => cacheDir
|
31
31
|
});
|
32
32
|
module.exports = __toCommonJS(constants_exports);
|
33
|
-
var import_find_cache_dir = __toESM(require("find-cache-dir"))
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
var import_find_cache_dir = __toESM(require("find-cache-dir")), _process_env_DEBUG, CSS_FILE_NAME = "__snack.css", MEDIA_SEP = "_", cacheDir = (0, import_find_cache_dir.default)({
|
34
|
+
name: "tamagui",
|
35
|
+
create: !0
|
36
|
+
}), FAILED_EVAL = Symbol("failed_style_eval"), SHOULD_DEBUG = process.env.DEBUG === "*" || ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith("tamagui"));
|
37
37
|
// Annotate the CommonJS export names for ESM import in node:
|
38
38
|
0 && (module.exports = {
|
39
39
|
CSS_FILE_NAME,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../src/constants.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["findCacheDir"]
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/static/src/constants.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4BAAyB,oCAaMA,oBAXlBC,gBAAgB,eAGhBC,YAAY,KAGZC,eAAWC,sBAAAA,SAAa;EAAEC,MAAM;EAAWC,QAAQ;AAAK,CAAA,GAExDC,cAAcC,OAAO,mBAAA,GAErBC,eACXT,QAAQU,IAAIC,UAAU,SAAOX,qBAAAA,QAAQU,IAAIC,WAAK,QAAjBX,uBAAAA,SAAAA,SAAAA,mBAAmBY,WAAW,SAAA;",
|
5
|
+
"names": ["process", "CSS_FILE_NAME", "MEDIA_SEP", "cacheDir", "findCacheDir", "name", "create", "FAILED_EVAL", "Symbol", "SHOULD_DEBUG", "env", "DEBUG", "startsWith"]
|
6
6
|
}
|
@@ -33,11 +33,7 @@ function accessSafe(obj, member) {
|
|
33
33
|
t.logicalExpression(
|
34
34
|
"&&",
|
35
35
|
// typeof obj === 'object
|
36
|
-
t.binaryExpression(
|
37
|
-
"===",
|
38
|
-
t.unaryExpression("typeof", obj),
|
39
|
-
t.stringLiteral("object")
|
40
|
-
),
|
36
|
+
t.binaryExpression("===", t.unaryExpression("typeof", obj), t.stringLiteral("object")),
|
41
37
|
// obj !== null
|
42
38
|
t.binaryExpression("!==", obj, t.nullLiteral())
|
43
39
|
),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/accessSafe.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/accessSafe.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;QAAmB;AAIZ,SAASA,WAAWC,KAAmBC,QAAc;AAC1D,SAAOC,EAAEC;IACP;IACAD,EAAEC;MACA;;MAEAD,EAAEE,iBACA,OACAF,EAAEG,gBAAgB,UAAUL,GAAAA,GAC5BE,EAAEI,cAAc,QAAA,CAAA;;MAGlBJ,EAAEE,iBAAiB,OAAOJ,KAAKE,EAAEK,YAAW,CAAA;IAAA;;IAG9CL,EAAEM,iBAAiBR,KAAKE,EAAEO,WAAWR,MAAAA,GAAS,EAAA;EAAA;AAElD;",
|
5
|
+
"names": ["accessSafe", "obj", "member", "t", "logicalExpression", "binaryExpression", "unaryExpression", "stringLiteral", "nullLiteral", "memberExpression", "identifier"]
|
6
6
|
}
|
@@ -27,8 +27,7 @@ __export(babelParse_exports, {
|
|
27
27
|
parserOptions: () => parserOptions
|
28
28
|
});
|
29
29
|
module.exports = __toCommonJS(babelParse_exports);
|
30
|
-
var babelParser = __toESM(require("@babel/parser"))
|
31
|
-
const plugins = [
|
30
|
+
var babelParser = __toESM(require("@babel/parser")), plugins = [
|
32
31
|
"asyncGenerators",
|
33
32
|
"classProperties",
|
34
33
|
"dynamicImport",
|
@@ -46,15 +45,13 @@ const plugins = [
|
|
46
45
|
sourceType: "module"
|
47
46
|
}), parser = babelParser.parse.bind(babelParser);
|
48
47
|
function babelParse(code, fileName) {
|
49
|
-
|
48
|
+
var codeString = code.toString();
|
50
49
|
try {
|
51
50
|
return parser(codeString, parserOptions);
|
52
51
|
} catch (err) {
|
53
|
-
throw new Error(
|
54
|
-
|
55
|
-
|
56
|
-
${err.stack}`
|
57
|
-
);
|
52
|
+
throw new Error("Error parsing babel: ".concat(err, " in ").concat(fileName, `, code:
|
53
|
+
`).concat(codeString, `
|
54
|
+
`).concat(err.stack));
|
58
55
|
}
|
59
56
|
}
|
60
57
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/babelParse.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/babelParse.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;kBAA6B,mCAGvBA,UAAsC;EAC1C;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GAGWC,gBAA2CC,OAAOC,OAAO;EACpEH;EACAI,YAAY;AACd,CAAA,GAEMC,SAASC,YAAYC,MAAMC,KAAKF,WAAAA;AAE/B,SAASG,WAAWC,MAAuBC,UAAiB;AACjE,MAAMC,aAAaF,KAAKG,SAAQ;AAChC,MAAI;AACF,WAAOR,OAAOO,YAAYX,aAAAA;EAC5B,SAASa,KAAK;AACZ,UAAM,IAAIC,MACP,wBAAiCJ,OAAVG,KAAI,MAAA,EAA0BF,OAApBD,UAAS;CAAA,EACzC,OADoDC,YAAW;EAAA,EAEhE,OADEE,IAAYE,KAAK,CAAA;EAGxB;AACF;",
|
5
|
+
"names": ["plugins", "parserOptions", "Object", "freeze", "sourceType", "parser", "babelParser", "parse", "bind", "babelParse", "code", "fileName", "codeString", "toString", "err", "Error", "stack"]
|
6
6
|
}
|
@@ -27,49 +27,38 @@ __export(buildClassName_exports, {
|
|
27
27
|
buildClassNameLogic: () => buildClassNameLogic
|
28
28
|
});
|
29
29
|
module.exports = __toCommonJS(buildClassName_exports);
|
30
|
-
var t = __toESM(require("@babel/types"))
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
);
|
41
|
-
let inner;
|
42
|
-
if (t.isStringLiteral(val)) {
|
43
|
-
if (t.isStringLiteral(acc))
|
44
|
-
return t.stringLiteral(`${acc.value} ${val.value}`);
|
45
|
-
inner = t.stringLiteral(` ${val.value}`);
|
46
|
-
} else if (t.isLiteral(val))
|
47
|
-
inner = t.binaryExpression("+", t.stringLiteral(" "), val);
|
48
|
-
else if (t.isConditionalExpression(val) || t.isBinaryExpression(val)) {
|
49
|
-
if (t.isStringLiteral(acc))
|
50
|
-
return t.binaryExpression("+", t.stringLiteral(`${acc.value} `), val);
|
51
|
-
inner = t.binaryExpression("+", t.stringLiteral(" "), val);
|
52
|
-
} else if (t.isIdentifier(val) || t.isMemberExpression(val))
|
53
|
-
inner = t.conditionalExpression(
|
54
|
-
val,
|
55
|
-
t.binaryExpression("+", t.stringLiteral(" "), val),
|
56
|
-
t.stringLiteral("")
|
57
|
-
);
|
58
|
-
else {
|
59
|
-
if (t.isStringLiteral(acc))
|
60
|
-
return t.binaryExpression(
|
61
|
-
"+",
|
62
|
-
t.stringLiteral(`${acc.value} `),
|
63
|
-
t.logicalExpression("||", val, t.stringLiteral(""))
|
30
|
+
var t = __toESM(require("@babel/types")), buildClassName = function(objectsIn) {
|
31
|
+
var extras = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", objects = buildClassNameLogic(objectsIn);
|
32
|
+
return objects ? (t.isStringLiteral(objects) ? objects.value = "".concat(extras, " ").concat(objects.value) : objects = t.binaryExpression("+", t.stringLiteral(extras), objects), objects) : null;
|
33
|
+
}, buildClassNameLogic = function(objects) {
|
34
|
+
return objects.reduce(function(acc, val) {
|
35
|
+
if (acc == null)
|
36
|
+
return (
|
37
|
+
// pass conditional expressions through
|
38
|
+
t.isConditionalExpression(val) || // pass non-null literals through
|
39
|
+
t.isStringLiteral(val) || t.isNumericLiteral(val) ? val : t.logicalExpression("||", val, t.stringLiteral(""))
|
64
40
|
);
|
65
|
-
inner
|
66
|
-
|
67
|
-
t.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
41
|
+
var inner;
|
42
|
+
if (t.isStringLiteral(val)) {
|
43
|
+
if (t.isStringLiteral(acc))
|
44
|
+
return t.stringLiteral("".concat(acc.value, " ").concat(val.value));
|
45
|
+
inner = t.stringLiteral(" ".concat(val.value));
|
46
|
+
} else if (t.isLiteral(val))
|
47
|
+
inner = t.binaryExpression("+", t.stringLiteral(" "), val);
|
48
|
+
else if (t.isConditionalExpression(val) || t.isBinaryExpression(val)) {
|
49
|
+
if (t.isStringLiteral(acc))
|
50
|
+
return t.binaryExpression("+", t.stringLiteral("".concat(acc.value, " ")), val);
|
51
|
+
inner = t.binaryExpression("+", t.stringLiteral(" "), val);
|
52
|
+
} else if (t.isIdentifier(val) || t.isMemberExpression(val))
|
53
|
+
inner = t.conditionalExpression(val, t.binaryExpression("+", t.stringLiteral(" "), val), t.stringLiteral(""));
|
54
|
+
else {
|
55
|
+
if (t.isStringLiteral(acc))
|
56
|
+
return t.binaryExpression("+", t.stringLiteral("".concat(acc.value, " ")), t.logicalExpression("||", val, t.stringLiteral("")));
|
57
|
+
inner = t.binaryExpression("+", t.stringLiteral(" "), t.logicalExpression("||", val, t.stringLiteral("")));
|
58
|
+
}
|
59
|
+
return t.binaryExpression("+", acc, inner);
|
60
|
+
}, null);
|
61
|
+
};
|
73
62
|
// Annotate the CommonJS export names for ESM import in node:
|
74
63
|
0 && (module.exports = {
|
75
64
|
buildClassName,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/buildClassName.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/buildClassName.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;QAAmB,kCASNA,iBAA0B,SAACC,WAAAA;MAAWC,SAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAS,IACtDC,UAAUC,oBAAoBH,SAAAA;AAClC,SAAKE,WACDE,EAAEC,gBAAgBH,OAAAA,IAEpBA,QAAQI,QAAS,GAAYJ,OAAVD,QAAO,GAAA,EAAiB,OAAdC,QAAQI,KAAK,IAE1CJ,UAAUE,EAAEG,iBAAiB,KAAKH,EAAEI,cAAcP,MAAAA,GAASC,OAAAA,GAEtDA,WAPc;AAQvB,GAEaC,sBAA+B,SAACD,SAAAA;AAC3C,SAAOA,QAAQO,OAA4B,SAACC,KAAKC,KAAAA;AAC/C,QAAID,OAAO;AACT;;QAEEN,EAAEQ,wBAAwBD,GAAAA;QAE1BP,EAAEC,gBAAgBM,GAAAA,KAClBP,EAAES,iBAAiBF,GAAAA,IAEZA,MAEFP,EAAEU,kBAAkB,MAAMH,KAAKP,EAAEI,cAAc,EAAA,CAA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AACL;",
|
5
|
+
"names": ["buildClassName", "objectsIn", "extras", "objects", "buildClassNameLogic", "t", "isStringLiteral", "value", "binaryExpression", "stringLiteral", "reduce", "acc", "val", "isConditionalExpression", "isNumericLiteral", "logicalExpression", "inner", "isLiteral", "isBinaryExpression", "isIdentifier", "isMemberExpression", "conditionalExpression"]
|
6
6
|
}
|
@@ -55,9 +55,7 @@ const esbuildLoaderConfig = {
|
|
55
55
|
(k) => esbuildLoaderConfig[k] === "file" || esbuildLoaderConfig[k] === "dataurl"
|
56
56
|
).map((k) => k.slice(1)), esbuildIgnoreFilesRegex = new RegExp(`.(${dataExtensions.join("|")})$`, "i");
|
57
57
|
function getESBuildConfig({ entryPoints, resolvePlatformSpecificEntries, ...options }, platform, aliases) {
|
58
|
-
process.env.DEBUG?.startsWith("tamagui") && console.info("Building", entryPoints)
|
59
|
-
const tsconfig = (0, import_path.join)(__dirname, "..", "..", "..", "tamagui.tsconfig.json");
|
60
|
-
return {
|
58
|
+
return process.env.DEBUG?.startsWith("tamagui") && console.info("Building", entryPoints), {
|
61
59
|
bundle: !0,
|
62
60
|
entryPoints: resolvePlatformSpecificEntries ? entryPoints.map(import_loadTamagui.resolveWebOrNativeSpecificEntry) : entryPoints,
|
63
61
|
format: "cjs",
|
@@ -77,7 +75,11 @@ function getESBuildConfig({ entryPoints, resolvePlatformSpecificEntries, ...opti
|
|
77
75
|
".js"
|
78
76
|
],
|
79
77
|
platform: "node",
|
80
|
-
|
78
|
+
tsconfigRaw: {
|
79
|
+
compilerOptions: {
|
80
|
+
jsx: "react-jsx"
|
81
|
+
}
|
82
|
+
},
|
81
83
|
loader: esbuildLoaderConfig,
|
82
84
|
logLevel: "warning",
|
83
85
|
plugins: [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/bundle.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA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