@tamagui/static 1.135.4 → 1.135.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/check-dep-versions.mjs +268 -0
- package/dist/check-dep-versions.mjs.map +1 -0
- package/dist/checkDeps.mjs +33 -0
- package/dist/checkDeps.mjs.map +1 -0
- package/dist/constants.mjs +50 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/exports.mjs +42 -0
- package/dist/exports.mjs.map +1 -0
- package/dist/extractor/accessSafe.mjs +47 -0
- package/dist/extractor/accessSafe.mjs.map +1 -0
- package/dist/extractor/babelParse.mjs +55 -0
- package/dist/extractor/babelParse.mjs.map +1 -0
- package/dist/extractor/bundle.mjs +149 -0
- package/dist/extractor/bundle.mjs.map +1 -0
- package/dist/extractor/bundleConfig.mjs +331 -0
- package/dist/extractor/bundleConfig.mjs.map +1 -0
- package/dist/extractor/concatClassName.mjs +79 -0
- package/dist/extractor/concatClassName.mjs.map +1 -0
- package/dist/extractor/createEvaluator.mjs +76 -0
- package/dist/extractor/createEvaluator.mjs.map +1 -0
- package/dist/extractor/createExtractor.mjs +976 -0
- package/dist/extractor/createExtractor.mjs.map +1 -0
- package/dist/extractor/createLogger.mjs +46 -0
- package/dist/extractor/createLogger.mjs.map +1 -0
- package/dist/extractor/errors.mjs +27 -0
- package/dist/extractor/errors.mjs.map +1 -0
- package/dist/extractor/esbuildAliasPlugin.mjs +45 -0
- package/dist/extractor/esbuildAliasPlugin.mjs.map +1 -0
- package/dist/extractor/esbuildTsconfigPaths.mjs +85 -0
- package/dist/extractor/esbuildTsconfigPaths.mjs.map +1 -0
- package/dist/extractor/evaluateAstNode.mjs +84 -0
- package/dist/extractor/evaluateAstNode.mjs.map +1 -0
- package/dist/extractor/extractHelpers.mjs +121 -0
- package/dist/extractor/extractHelpers.mjs.map +1 -0
- package/dist/extractor/extractMediaStyle.mjs +129 -0
- package/dist/extractor/extractMediaStyle.mjs.map +1 -0
- package/dist/extractor/extractToClassNames.mjs +304 -0
- package/dist/extractor/extractToClassNames.mjs.map +1 -0
- package/dist/extractor/extractToNative.mjs +262 -0
- package/dist/extractor/extractToNative.mjs.map +1 -0
- package/dist/extractor/findTopmostFunction.mjs +35 -0
- package/dist/extractor/findTopmostFunction.mjs.map +1 -0
- package/dist/extractor/{generatedUid.native.js → generatedUid.mjs} +26 -23
- package/dist/extractor/generatedUid.mjs.map +1 -0
- package/dist/extractor/getPrefixLogs.mjs +30 -0
- package/dist/extractor/getPrefixLogs.mjs.map +1 -0
- package/dist/extractor/getPropValueFromAttributes.mjs +68 -0
- package/dist/extractor/getPropValueFromAttributes.mjs.map +1 -0
- package/dist/extractor/getSourceModule.mjs +65 -0
- package/dist/extractor/getSourceModule.mjs.map +1 -0
- package/dist/extractor/getStaticBindingsForScope.mjs +149 -0
- package/dist/extractor/getStaticBindingsForScope.mjs.map +1 -0
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs +36 -0
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +1 -0
- package/dist/extractor/literalToAst.mjs +85 -0
- package/dist/extractor/literalToAst.mjs.map +1 -0
- package/dist/extractor/loadFile.mjs +12 -0
- package/dist/extractor/loadFile.mjs.map +1 -0
- package/dist/extractor/loadTamagui.mjs +296 -0
- package/dist/extractor/loadTamagui.mjs.map +1 -0
- package/dist/extractor/logLines.mjs +36 -0
- package/dist/extractor/logLines.mjs.map +1 -0
- package/dist/extractor/{normalizeTernaries.native.js → normalizeTernaries.mjs} +45 -31
- package/dist/extractor/normalizeTernaries.mjs.map +1 -0
- package/dist/extractor/propsToFontFamilyCache.mjs +39 -0
- package/dist/extractor/propsToFontFamilyCache.mjs.map +1 -0
- package/dist/extractor/regenerateConfig.mjs +145 -0
- package/dist/extractor/regenerateConfig.mjs.map +1 -0
- package/dist/extractor/removeUnusedHooks.mjs +77 -0
- package/dist/extractor/removeUnusedHooks.mjs.map +1 -0
- package/dist/extractor/timer.mjs +44 -0
- package/dist/extractor/timer.mjs.map +1 -0
- package/dist/extractor/{validHTMLAttributes.native.js → validHTMLAttributes.mjs} +17 -16
- package/dist/extractor/validHTMLAttributes.mjs.map +1 -0
- package/dist/extractor/watchTamaguiConfig.mjs +59 -0
- package/dist/extractor/watchTamaguiConfig.mjs.map +1 -0
- package/dist/getPragmaOptions.mjs +55 -0
- package/dist/getPragmaOptions.mjs.map +1 -0
- package/dist/helpers/memoize.mjs +38 -0
- package/dist/helpers/memoize.mjs.map +1 -0
- package/dist/helpers/requireTamaguiCore.mjs +34 -0
- package/dist/helpers/requireTamaguiCore.mjs.map +1 -0
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -0
- package/dist/registerRequire.mjs +107 -0
- package/dist/registerRequire.mjs.map +1 -0
- package/dist/server.mjs +76 -0
- package/dist/server.mjs.map +1 -0
- package/dist/setup.mjs +2 -0
- package/dist/setup.mjs.map +1 -0
- package/dist/{types.native.js → types.mjs} +8 -6
- package/dist/types.mjs.map +1 -0
- package/package.json +19 -21
- package/dist/check-dep-versions.native.js +0 -602
- package/dist/check-dep-versions.native.js.map +0 -6
- package/dist/checkDeps.native.js +0 -34
- package/dist/checkDeps.native.js.map +0 -6
- package/dist/constants.native.js +0 -45
- package/dist/constants.native.js.map +0 -6
- package/dist/exports.native.js +0 -52
- package/dist/exports.native.js.map +0 -6
- package/dist/extractor/accessSafe.native.js +0 -48
- package/dist/extractor/accessSafe.native.js.map +0 -6
- package/dist/extractor/babelParse.native.js +0 -62
- package/dist/extractor/babelParse.native.js.map +0 -6
- package/dist/extractor/bundle.native.js +0 -168
- package/dist/extractor/bundle.native.js.map +0 -6
- package/dist/extractor/bundleConfig.native.js +0 -394
- package/dist/extractor/bundleConfig.native.js.map +0 -6
- package/dist/extractor/concatClassName.native.js +0 -69
- package/dist/extractor/concatClassName.native.js.map +0 -6
- package/dist/extractor/createEvaluator.native.js +0 -63
- package/dist/extractor/createEvaluator.native.js.map +0 -6
- package/dist/extractor/createExtractor.native.js +0 -1229
- package/dist/extractor/createExtractor.native.js.map +0 -6
- package/dist/extractor/createLogger.native.js +0 -35
- package/dist/extractor/createLogger.native.js.map +0 -6
- package/dist/extractor/errors.native.js +0 -119
- package/dist/extractor/errors.native.js.map +0 -6
- package/dist/extractor/esbuildAliasPlugin.native.js +0 -52
- package/dist/extractor/esbuildAliasPlugin.native.js.map +0 -6
- package/dist/extractor/esbuildTsconfigPaths.native.js +0 -79
- package/dist/extractor/esbuildTsconfigPaths.native.js.map +0 -6
- package/dist/extractor/evaluateAstNode.native.js +0 -98
- package/dist/extractor/evaluateAstNode.native.js.map +0 -6
- package/dist/extractor/extractHelpers.native.js +0 -183
- package/dist/extractor/extractHelpers.native.js.map +0 -6
- package/dist/extractor/extractMediaStyle.native.js +0 -138
- package/dist/extractor/extractMediaStyle.native.js.map +0 -6
- package/dist/extractor/extractToClassNames.native.js +0 -332
- package/dist/extractor/extractToClassNames.native.js.map +0 -6
- package/dist/extractor/extractToNative.native.js +0 -276
- package/dist/extractor/extractToNative.native.js.map +0 -6
- package/dist/extractor/findTopmostFunction.native.js +0 -37
- package/dist/extractor/findTopmostFunction.native.js.map +0 -6
- package/dist/extractor/generatedUid.native.js.map +0 -6
- package/dist/extractor/getPrefixLogs.native.js +0 -30
- package/dist/extractor/getPrefixLogs.native.js.map +0 -6
- package/dist/extractor/getPropValueFromAttributes.native.js +0 -68
- package/dist/extractor/getPropValueFromAttributes.native.js.map +0 -6
- package/dist/extractor/getSourceModule.native.js +0 -80
- package/dist/extractor/getSourceModule.native.js.map +0 -6
- package/dist/extractor/getStaticBindingsForScope.native.js +0 -183
- package/dist/extractor/getStaticBindingsForScope.native.js.map +0 -6
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js +0 -37
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +0 -6
- package/dist/extractor/literalToAst.native.js +0 -106
- package/dist/extractor/literalToAst.native.js.map +0 -6
- package/dist/extractor/loadFile.native.js +0 -21
- package/dist/extractor/loadFile.native.js.map +0 -6
- package/dist/extractor/loadTamagui.native.js +0 -314
- package/dist/extractor/loadTamagui.native.js.map +0 -6
- package/dist/extractor/logLines.native.js +0 -53
- package/dist/extractor/logLines.native.js.map +0 -6
- package/dist/extractor/normalizeTernaries.native.js.map +0 -6
- package/dist/extractor/propsToFontFamilyCache.native.js +0 -40
- package/dist/extractor/propsToFontFamilyCache.native.js.map +0 -6
- package/dist/extractor/regenerateConfig.native.js +0 -148
- package/dist/extractor/regenerateConfig.native.js.map +0 -6
- package/dist/extractor/removeUnusedHooks.native.js +0 -111
- package/dist/extractor/removeUnusedHooks.native.js.map +0 -6
- package/dist/extractor/timer.native.js +0 -44
- package/dist/extractor/timer.native.js.map +0 -6
- package/dist/extractor/validHTMLAttributes.native.js.map +0 -6
- package/dist/extractor/watchTamaguiConfig.native.js +0 -60
- package/dist/extractor/watchTamaguiConfig.native.js.map +0 -6
- package/dist/getPragmaOptions.native.js +0 -62
- package/dist/getPragmaOptions.native.js.map +0 -6
- package/dist/helpers/memoize.native.js +0 -40
- package/dist/helpers/memoize.native.js.map +0 -6
- package/dist/helpers/requireTamaguiCore.native.js +0 -34
- package/dist/helpers/requireTamaguiCore.native.js.map +0 -6
- package/dist/index.native.js +0 -35
- package/dist/index.native.js.map +0 -6
- package/dist/registerRequire.native.js +0 -124
- package/dist/registerRequire.native.js.map +0 -6
- package/dist/server.native.js +0 -70
- package/dist/server.native.js.map +0 -6
- package/dist/setup.native.js +0 -2
- package/dist/setup.native.js.map +0 -6
- package/dist/types.native.js.map +0 -6
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var findTopmostFunction_exports = {};
|
|
17
|
-
__export(findTopmostFunction_exports, {
|
|
18
|
-
findTopmostFunction: () => findTopmostFunction
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(findTopmostFunction_exports);
|
|
21
|
-
function findTopmostFunction(jsxPath) {
|
|
22
|
-
for (var isFunction = function(path) {
|
|
23
|
-
return path.isArrowFunctionExpression() || path.isFunctionDeclaration() || path.isFunctionExpression();
|
|
24
|
-
}, compFn = jsxPath.findParent(isFunction); compFn; ) {
|
|
25
|
-
var parent = compFn.findParent(isFunction);
|
|
26
|
-
if (parent)
|
|
27
|
-
compFn = parent;
|
|
28
|
-
else
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
return compFn || null;
|
|
32
|
-
}
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
findTopmostFunction
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=findTopmostFunction.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/findTopmostFunction.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,oBAAoB,SAAS;AAMzC,WAJI,aAAa,SAAS,MAAM;AAC5B,WAAO,KAAK,0BAA0B,KAAK,KAAK,sBAAsB,KAAK,KAAK,qBAAqB;AAAA,EACzG,GACI,SAAS,QAAQ,WAAW,UAAU,GACpC,UAAO;AACT,QAAI,SAAS,OAAO,WAAW,UAAU;AACzC,QAAI;AACA,eAAS;AAAA;AAET;AAAA,EAER;AACA,SAAK,UAEM;AAGf;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/generatedUid.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AAGZ,SAAS,YAAY,OAAO,MAAM;AACrC,MAAM,OAAO,SAAU,SAAW,OAAM;AACxC,MAAI,EAAE,OAAO,QAAS,YAAY,SAAS,IAAK,OAAM;AACtD,SAAO,EAAE,aAAa,IAAI,EAAE,QAAQ,OAAO,EAAE,EAAE,QAAQ,YAAY,EAAE;AACrE,MAAI,KACA,IAAI;AACR;AACI,IAAI,IAAI,IACJ,MAAM,OAAO,IAEb,MAAM,MAEV;AAAA,SACI,MAAM,SAAS,GAAG,KAAK,MAAM,WAAW,GAAG,KAAK,MAAM,UAAU,GAAG,KAAK,MAAM,aAAa,GAAG;AACtG,MAAI,UAAU,MAAM,iBAAiB;AACrC,iBAAQ,WAAW,GAAG,IAAI,IAC1B,QAAQ,KAAK,GAAG,IAAI,IACb;AACX;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var getPrefixLogs_exports = {};
|
|
17
|
-
__export(getPrefixLogs_exports, {
|
|
18
|
-
getPrefixLogs: () => getPrefixLogs
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(getPrefixLogs_exports);
|
|
21
|
-
var import_cli_color = require("@tamagui/cli-color");
|
|
22
|
-
function getPrefixLogs(options) {
|
|
23
|
-
var _options_prefixLogs;
|
|
24
|
-
return (_options_prefixLogs = options == null ? void 0 : options.prefixLogs) !== null && _options_prefixLogs !== void 0 ? _options_prefixLogs : ` \u{1F425} [tamagui] ${(0, import_cli_color.colorString)(import_cli_color.Color.FgYellow, (options == null ? void 0 : options.platform) || "web")}`;
|
|
25
|
-
}
|
|
26
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
-
0 && (module.exports = {
|
|
28
|
-
getPrefixLogs
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=getPrefixLogs.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/getPrefixLogs.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAmC;AAC5B,SAAS,cAAc,SAAS;AACnC,MAAI;AACJ,UAAQ,sBAAsB,WAAY,OAA6B,SAAS,QAAQ,gBAAgB,QAAQ,wBAAwB,SAAS,sBAAsB,6BAAkB,8BAAY,uBAAM,WAAW,WAAY,OAA6B,SAAS,QAAQ,aAAa,KAAK,CAAC;AACvS;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var getPropValueFromAttributes_exports = {};
|
|
25
|
-
__export(getPropValueFromAttributes_exports, {
|
|
26
|
-
getPropValueFromAttributes: () => getPropValueFromAttributes
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getPropValueFromAttributes_exports);
|
|
29
|
-
var import_generator = __toESM(require("@babel/generator")), t = __toESM(require("@babel/types")), import_accessSafe = require("./accessSafe");
|
|
30
|
-
function getPropValueFromAttributes(propName, attrs) {
|
|
31
|
-
for (var propIndex = -1, jsxAttr = null, idx = -1, len = attrs.length; ++idx < len; ) {
|
|
32
|
-
var attr = attrs[idx];
|
|
33
|
-
if (t.isJSXAttribute(attr) && attr.name && attr.name.name === propName) {
|
|
34
|
-
propIndex = idx, jsxAttr = attr;
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (!jsxAttr || jsxAttr.value == null)
|
|
39
|
-
return null;
|
|
40
|
-
var propValue = jsxAttr.value;
|
|
41
|
-
if (t.isJSXExpressionContainer(propValue) && (propValue = propValue.expression), t.isJSXEmptyExpression(propValue))
|
|
42
|
-
return console.error("encountered JSXEmptyExpression"), null;
|
|
43
|
-
var applicableSpreads = attrs.filter(
|
|
44
|
-
// 1. idx is greater than propValue prop index
|
|
45
|
-
// 2. attr is a spread operator
|
|
46
|
-
function(attr2, idx2) {
|
|
47
|
-
if (t.isJSXSpreadAttribute(attr2)) {
|
|
48
|
-
if (t.isIdentifier(attr2.argument) || t.isMemberExpression(attr2.argument))
|
|
49
|
-
return idx2 > propIndex;
|
|
50
|
-
if (t.isLogicalExpression(attr2.argument))
|
|
51
|
-
return !1;
|
|
52
|
-
throw new Error(`unsupported spread of type "${attr2.argument.type}": ${// @ts-ignore
|
|
53
|
-
(0, import_generator.default)(attr2).code}`);
|
|
54
|
-
}
|
|
55
|
-
return !1;
|
|
56
|
-
}
|
|
57
|
-
).map(function(attr2) {
|
|
58
|
-
return attr2.argument;
|
|
59
|
-
});
|
|
60
|
-
return applicableSpreads.length > 0 && (propValue = applicableSpreads.reduce(function(acc, val) {
|
|
61
|
-
return t.logicalExpression("||", (0, import_accessSafe.accessSafe)(val, propName), acc);
|
|
62
|
-
}, propValue)), propValue;
|
|
63
|
-
}
|
|
64
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
-
0 && (module.exports = {
|
|
66
|
-
getPropValueFromAttributes
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=getPropValueFromAttributes.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/getPropValueFromAttributes.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAqB,sCACrB,IAAmB,kCACnB,oBAA2B;AAgBhB,SAAS,2BAA2B,UAAU,OAAO;AAG5D,WAFI,YAAY,IACZ,UAAU,MACN,MAAM,IAAI,MAAM,MAAM,QAAQ,EAAE,MAAM,OAAK;AAC/C,QAAI,OAAO,MAAM,GAAG;AACpB,QAAI,EAAE,eAAe,IAAI,KAAK,KAAK,QAAQ,KAAK,KAAK,SAAS,UAAU;AACpE,kBAAY,KACZ,UAAU;AACV;AAAA,IACJ;AAAA,EACJ;AACA,MAAI,CAAC,WAAW,QAAQ,SAAS;AAC7B,WAAO;AAEX,MAAI,YAAY,QAAQ;AAKxB,MAJI,EAAE,yBAAyB,SAAS,MACpC,YAAY,UAAU,aAGtB,EAAE,qBAAqB,SAAS;AAChC,mBAAQ,MAAM,gCAAgC,GACvC;AAGX,MAAI,oBAAoB,MAAM;AAAA;AAAA;AAAA,IAE9B,SAASA,OAAMC,MAAK;AAChB,UAAI,EAAE,qBAAqBD,KAAI,GAAG;AAC9B,YAAI,EAAE,aAAaA,MAAK,QAAQ,KAAK,EAAE,mBAAmBA,MAAK,QAAQ;AACnE,iBAAOC,OAAM;AAEjB,YAAI,EAAE,oBAAoBD,MAAK,QAAQ;AACnC,iBAAO;AAEX,cAAM,IAAI,MAAM,+BAA+BA,MAAK,SAAS,IAAI;AAAA,YACjE,iBAAAE,SAASF,KAAI,EAAE,IAAI,EAAE;AAAA,MACzB;AACA,aAAO;AAAA,IACX;AAAA,EAAC,EAAE,IAAI,SAASA,OAAM;AAClB,WAAOA,MAAK;AAAA,EAChB,CAAC;AAID,SAAI,kBAAkB,SAAS,MAC3B,YAAY,kBAAkB,OAAO,SAAS,KAAK,KAAK;AACpD,WAAO,EAAE,kBAAkB,UAAM,8BAAW,KAAK,QAAQ,GAAG,GAAG;AAAA,EACnE,GAAG,SAAS,IAET;AACX;",
|
|
5
|
-
"names": ["attr", "idx", "generate"]
|
|
6
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var getSourceModule_exports = {};
|
|
25
|
-
__export(getSourceModule_exports, {
|
|
26
|
-
getSourceModule: () => getSourceModule
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getSourceModule_exports);
|
|
29
|
-
var t = __toESM(require("@babel/types"));
|
|
30
|
-
function getSourceModule(itemName, itemBinding) {
|
|
31
|
-
if (!itemBinding.constant)
|
|
32
|
-
return null;
|
|
33
|
-
var sourceModule, imported, local, destructured, usesImportSyntax = !1, itemNode = itemBinding.path.node;
|
|
34
|
-
if (t.isImportDefaultSpecifier(itemNode) || t.isImportSpecifier(itemNode))
|
|
35
|
-
t.isImportDeclaration(itemBinding.path.parent) && (sourceModule = itemBinding.path.parent.source.value, local = itemNode.local.name, usesImportSyntax = !0, t.isImportSpecifier(itemNode) ? (imported = itemNode.imported.name, destructured = !0) : (imported = itemNode.local.name, destructured = !1));
|
|
36
|
-
else if (t.isVariableDeclarator(itemNode) && itemNode.init != null && t.isCallExpression(itemNode.init) && t.isIdentifier(itemNode.init.callee) && itemNode.init.callee.name === "require" && itemNode.init.arguments.length === 1) {
|
|
37
|
-
var firstArg = itemNode.init.arguments[0];
|
|
38
|
-
if (!t.isStringLiteral(firstArg))
|
|
39
|
-
return null;
|
|
40
|
-
if (sourceModule = firstArg.value, t.isIdentifier(itemNode.id))
|
|
41
|
-
local = itemNode.id.name, imported = itemNode.id.name, destructured = !1;
|
|
42
|
-
else if (t.isObjectPattern(itemNode.id)) {
|
|
43
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
44
|
-
try {
|
|
45
|
-
for (var _iterator = itemNode.id.properties[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
46
|
-
var objProp = _step.value;
|
|
47
|
-
if (t.isObjectProperty(objProp) && t.isIdentifier(objProp.value) && objProp.value.name === itemName) {
|
|
48
|
-
local = objProp.value.name, imported = objProp.key.name, destructured = !0;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
} catch (err) {
|
|
53
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
54
|
-
} finally {
|
|
55
|
-
try {
|
|
56
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
57
|
-
} finally {
|
|
58
|
-
if (_didIteratorError)
|
|
59
|
-
throw _iteratorError;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (!local || !imported)
|
|
63
|
-
return console.error("could not find prop with value `%s`", itemName), null;
|
|
64
|
-
} else
|
|
65
|
-
return console.error("Unhandled id type: %s", itemNode.id.type), null;
|
|
66
|
-
} else
|
|
67
|
-
return null;
|
|
68
|
-
return {
|
|
69
|
-
destructured,
|
|
70
|
-
imported,
|
|
71
|
-
local,
|
|
72
|
-
sourceModule,
|
|
73
|
-
usesImportSyntax
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
-
0 && (module.exports = {
|
|
78
|
-
getSourceModule
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=getSourceModule.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/getSourceModule.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AACZ,SAAS,gBAAgB,UAAU,aAAa;AAEnD,MAAI,CAAC,YAAY;AACb,WAAO;AAEX,MAAI,cACA,UACA,OACA,cACA,mBAAmB,IACnB,WAAW,YAAY,KAAK;AAChC,MAAI,EAAE,yBAAyB,QAAQ,KAAK,EAAE,kBAAkB,QAAQ;AACpE,IAAI,EAAE,oBAAoB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QAEd;AAAA,MACJ;AACA,UAAI,CAAC,SAAS,CAAC;AACX,uBAAQ,MAAM,uCAAuC,QAAQ,GACtD;AAAA,IAEf;AACI,qBAAQ,MAAM,yBAAyB,SAAS,GAAG,IAAI,GAChD;AAAA,EAEf;AACI,WAAO;AAEX,SAAO;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var getStaticBindingsForScope_exports = {};
|
|
25
|
-
__export(getStaticBindingsForScope_exports, {
|
|
26
|
-
cleanupBeforeExit: () => cleanupBeforeExit,
|
|
27
|
-
getStaticBindingsForScope: () => getStaticBindingsForScope
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(getStaticBindingsForScope_exports);
|
|
30
|
-
var import_node_child_process = require("node:child_process"), import_node_path = require("node:path"), t = __toESM(require("@babel/types")), import_evaluateAstNode = require("./evaluateAstNode"), import_getSourceModule = require("./getSourceModule");
|
|
31
|
-
function _type_of(obj) {
|
|
32
|
-
"@swc/helpers - typeof";
|
|
33
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
34
|
-
}
|
|
35
|
-
var isLocalImport = function(path) {
|
|
36
|
-
return path.startsWith(".") || path.startsWith("/");
|
|
37
|
-
};
|
|
38
|
-
function resolveImportPath(sourcePath, path) {
|
|
39
|
-
var sourceDir = (0, import_node_path.dirname)(sourcePath);
|
|
40
|
-
return isLocalImport(path) ? ((0, import_node_path.extname)(path) === "" && (path += ""), (0, import_node_path.resolve)(sourceDir, path)) : path;
|
|
41
|
-
}
|
|
42
|
-
var cache = /* @__PURE__ */ new Map(), pending = /* @__PURE__ */ new Map(), loadCmd = `${(0, import_node_path.join)(__dirname, "loadFile.js")}`, exited = !1, child = null;
|
|
43
|
-
function forkChild() {
|
|
44
|
-
child = (0, import_node_child_process.fork)(loadCmd, [], {
|
|
45
|
-
execArgv: [
|
|
46
|
-
"-r",
|
|
47
|
-
"esbuild-register"
|
|
48
|
-
],
|
|
49
|
-
detached: !1,
|
|
50
|
-
stdio: "ignore"
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function cleanupBeforeExit() {
|
|
54
|
-
exited || child && (child.removeAllListeners(), child.unref(), child.disconnect(), child.kill(), exited = !0);
|
|
55
|
-
}
|
|
56
|
-
process.once("SIGTERM", cleanupBeforeExit);
|
|
57
|
-
process.once("SIGINT", cleanupBeforeExit);
|
|
58
|
-
process.once("beforeExit", cleanupBeforeExit);
|
|
59
|
-
function importModule(path) {
|
|
60
|
-
if (child || forkChild(), pending.has(path))
|
|
61
|
-
return pending.get(path);
|
|
62
|
-
var promise = new Promise(function(res, rej) {
|
|
63
|
-
if (child) {
|
|
64
|
-
if (cache.size > 2e3 && cache.clear(), cache.has(path))
|
|
65
|
-
return cache.get(path);
|
|
66
|
-
var listener = function(msg) {
|
|
67
|
-
if (child && msg && typeof msg == "string") {
|
|
68
|
-
if (msg[0] === "-") {
|
|
69
|
-
rej(new Error(msg.slice(1)));
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
child.removeListener("message", listener);
|
|
73
|
-
var val = JSON.parse(msg);
|
|
74
|
-
cache.set(path, val), res(val);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
child.once("message", listener), child.send(`${path.replace(".js", "")}`);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return pending.set(path, promise), promise;
|
|
81
|
-
}
|
|
82
|
-
async function getStaticBindingsForScope(scope) {
|
|
83
|
-
var _loop = function(k2) {
|
|
84
|
-
var binding = bindings[k2], sourceModule = (0, import_getSourceModule.getSourceModule)(k2, binding);
|
|
85
|
-
if (sourceModule) {
|
|
86
|
-
if (!sourceModule.sourceModule)
|
|
87
|
-
return "continue";
|
|
88
|
-
var moduleName = resolveImportPath(sourcePath, sourceModule.sourceModule), isOnWhitelist = whitelist.some(function(test) {
|
|
89
|
-
return moduleName.endsWith(test);
|
|
90
|
-
});
|
|
91
|
-
if (isOnWhitelist) {
|
|
92
|
-
var src = importModule(moduleName);
|
|
93
|
-
if (!src)
|
|
94
|
-
return console.info(` | \u26A0\uFE0F Missing file ${moduleName} via ${sourcePath} import ${sourceModule.sourceModule}?`), {
|
|
95
|
-
v: {}
|
|
96
|
-
};
|
|
97
|
-
sourceModule.destructured ? sourceModule.imported && (ret[k2] = src[sourceModule.imported]) : ret[k2] = src;
|
|
98
|
-
}
|
|
99
|
-
return "continue";
|
|
100
|
-
}
|
|
101
|
-
var { parent } = binding.path;
|
|
102
|
-
if (!t.isVariableDeclaration(parent) || parent.kind !== "const")
|
|
103
|
-
return "continue";
|
|
104
|
-
var dec = parent.declarations.find(function(d) {
|
|
105
|
-
return t.isIdentifier(d.id) && d.id.name === k2;
|
|
106
|
-
});
|
|
107
|
-
if (!dec || !dec.init)
|
|
108
|
-
return "continue";
|
|
109
|
-
if (typeof dec.id.start != "number" || typeof dec.id.end != "number")
|
|
110
|
-
return console.error("dec.id.start/end is not a number"), "continue";
|
|
111
|
-
if (!t.isIdentifier(dec.id))
|
|
112
|
-
return console.error("dec is not an identifier"), "continue";
|
|
113
|
-
var cacheKey = `${dec.id.name}_${dec.id.start}-${dec.id.end}`;
|
|
114
|
-
if (Object.hasOwnProperty.call(bindingCache, cacheKey) || Object.hasOwnProperty.call(bindingCache, cacheKey))
|
|
115
|
-
return ret[k2] = bindingCache[cacheKey], "continue";
|
|
116
|
-
try {
|
|
117
|
-
return ret[k2] = (0, import_evaluateAstNode.evaluateAstNode)(dec.init, void 0, shouldPrintDebug), bindingCache[cacheKey] = ret[k2], "continue";
|
|
118
|
-
} catch {
|
|
119
|
-
}
|
|
120
|
-
}, whitelist = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], sourcePath = arguments.length > 2 ? arguments[2] : void 0, bindingCache = arguments.length > 3 ? arguments[3] : void 0, shouldPrintDebug = arguments.length > 4 ? arguments[4] : void 0, bindings = scope.getAllBindings(), ret = {}, program = scope.getProgramParent().block, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
121
|
-
try {
|
|
122
|
-
for (var _loop1 = async function() {
|
|
123
|
-
var node = _step.value;
|
|
124
|
-
if (t.isImportDeclaration(node)) {
|
|
125
|
-
var importPath = node.source.value;
|
|
126
|
-
if (!node.specifiers.length || !isLocalImport(importPath))
|
|
127
|
-
return "continue";
|
|
128
|
-
var moduleName = resolveImportPath(sourcePath, importPath), isOnWhitelist = whitelist.some(function(test) {
|
|
129
|
-
return moduleName.endsWith(test);
|
|
130
|
-
});
|
|
131
|
-
if (!isOnWhitelist) return "continue";
|
|
132
|
-
try {
|
|
133
|
-
var src = await importModule(moduleName);
|
|
134
|
-
if (!src) return "continue";
|
|
135
|
-
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
136
|
-
try {
|
|
137
|
-
for (var _iterator2 = node.specifiers[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
138
|
-
var specifier = _step1.value;
|
|
139
|
-
if (t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported) && typeof src[specifier.imported.name] < "u") {
|
|
140
|
-
var val = src[specifier.local.name];
|
|
141
|
-
ret[specifier.local.name] = val;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
} catch (err) {
|
|
145
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
146
|
-
} finally {
|
|
147
|
-
try {
|
|
148
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
149
|
-
} finally {
|
|
150
|
-
if (_didIteratorError2)
|
|
151
|
-
throw _iteratorError2;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
} catch (err) {
|
|
155
|
-
var _process_env_DEBUG;
|
|
156
|
-
shouldPrintDebug ? console.warn(` | Skipping partial evaluation of constant file: ${moduleName} (DEBUG=tamagui for more)`) : !((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info("Error in partial evaluation", err.message, err.stack);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}, _iterator = program.body[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) await _loop1();
|
|
160
|
-
} catch (err) {
|
|
161
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
162
|
-
} finally {
|
|
163
|
-
try {
|
|
164
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
165
|
-
} finally {
|
|
166
|
-
if (_didIteratorError)
|
|
167
|
-
throw _iteratorError;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
if (!bindingCache)
|
|
171
|
-
throw new Error("BindingCache is a required param");
|
|
172
|
-
for (var k in bindings) {
|
|
173
|
-
var _ret = _loop(k);
|
|
174
|
-
if (_type_of(_ret) === "object") return _ret.v;
|
|
175
|
-
}
|
|
176
|
-
return ret;
|
|
177
|
-
}
|
|
178
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
179
|
-
0 && (module.exports = {
|
|
180
|
-
cleanupBeforeExit,
|
|
181
|
-
getStaticBindingsForScope
|
|
182
|
-
});
|
|
183
|
-
//# sourceMappingURL=getStaticBindingsForScope.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/getStaticBindingsForScope.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,gCAAqB,+BACrB,mBAAgD,sBAChD,IAAmB,kCACnB,yBAAgC,8BAChC,yBAAgC;AARhC,SAAS,SAAS,KAAK;AACnB;AACA,SAAO,OAAO,OAAO,SAAW,OAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAClG;AASA,IAAI,gBAAgB,SAAS,MAAM;AAC/B,SAAO,KAAK,WAAW,GAAG,KAAK,KAAK,WAAW,GAAG;AACtD;AACA,SAAS,kBAAkB,YAAY,MAAM;AACzC,MAAI,gBAAY,0BAAQ,UAAU;AAClC,SAAI,cAAc,IAAI,SACd,0BAAQ,IAAI,MAAM,OAClB,QAAQ,SAEL,0B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jD;AAEA,SAAO;AACX;",
|
|
5
|
-
"names": ["k", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator"]
|
|
6
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var getTamaguiConfigPathFromOptionsConfig_exports = {};
|
|
17
|
-
__export(getTamaguiConfigPathFromOptionsConfig_exports, {
|
|
18
|
-
getTamaguiConfigPathFromOptionsConfig: () => getTamaguiConfigPathFromOptionsConfig
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(getTamaguiConfigPathFromOptionsConfig_exports);
|
|
21
|
-
var import_node_path = require("node:path"), import_node_fs = require("node:fs");
|
|
22
|
-
function getTamaguiConfigPathFromOptionsConfig(config) {
|
|
23
|
-
if ((0, import_node_path.isAbsolute)(config))
|
|
24
|
-
return config;
|
|
25
|
-
var fullPath = (0, import_node_path.join)(process.cwd(), config);
|
|
26
|
-
try {
|
|
27
|
-
if ((0, import_node_fs.statSync)(fullPath).isFile())
|
|
28
|
-
return fullPath;
|
|
29
|
-
} catch {
|
|
30
|
-
}
|
|
31
|
-
return config;
|
|
32
|
-
}
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
getTamaguiConfigPathFromOptionsConfig
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=getTamaguiConfigPathFromOptionsConfig.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/getTamaguiConfigPathFromOptionsConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAiC,sBACjC,iBAAyB;AAClB,SAAS,sCAAsC,QAAQ;AAC1D,UAAI,6BAAW,MAAM;AACjB,WAAO;AAEX,MAAI,eAAW,uBAAK,QAAQ,IAAI,GAAG,MAAM;AACzC,MAAI;AACA,YAAI,yBAAS,QAAQ,EAAE,OAAO;AAC1B,aAAO;AAAA,EAEf,QAAY;AAAA,EAAC;AAEb,SAAO;AACX;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var literalToAst_exports = {};
|
|
25
|
-
__export(literalToAst_exports, {
|
|
26
|
-
astToLiteral: () => astToLiteral,
|
|
27
|
-
literalToAst: () => literalToAst
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(literalToAst_exports);
|
|
30
|
-
var t = __toESM(require("@babel/types"));
|
|
31
|
-
function literalToAst(literal) {
|
|
32
|
-
if (literal === null)
|
|
33
|
-
return t.nullLiteral();
|
|
34
|
-
switch (typeof literal) {
|
|
35
|
-
case "function":
|
|
36
|
-
throw new Error("Unsupported");
|
|
37
|
-
case "number":
|
|
38
|
-
return t.numericLiteral(literal);
|
|
39
|
-
case "string":
|
|
40
|
-
return t.stringLiteral(literal);
|
|
41
|
-
case "boolean":
|
|
42
|
-
return t.booleanLiteral(literal);
|
|
43
|
-
case "undefined":
|
|
44
|
-
return t.unaryExpression("void", t.numericLiteral(0), !0);
|
|
45
|
-
default:
|
|
46
|
-
return Array.isArray(literal) ? t.arrayExpression(literal.map(literalToAst)) : t.objectExpression(Object.keys(literal).filter(function(k) {
|
|
47
|
-
return typeof literal[k] < "u";
|
|
48
|
-
}).map(function(k) {
|
|
49
|
-
return t.objectProperty(t.stringLiteral(k), literalToAst(literal[k]));
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
var easyPeasies = [
|
|
54
|
-
"BooleanLiteral",
|
|
55
|
-
"StringLiteral",
|
|
56
|
-
"NumericLiteral"
|
|
57
|
-
];
|
|
58
|
-
function astToLiteral(node) {
|
|
59
|
-
if (node) {
|
|
60
|
-
if (easyPeasies.includes(node.type))
|
|
61
|
-
return node.value;
|
|
62
|
-
if (!(node.name === "undefined" && !node.value)) {
|
|
63
|
-
if (t.isNullLiteral(node))
|
|
64
|
-
return null;
|
|
65
|
-
if (t.isObjectExpression(node))
|
|
66
|
-
return computeProps(node.properties);
|
|
67
|
-
if (t.isArrayExpression(node))
|
|
68
|
-
return node.elements.reduce(
|
|
69
|
-
// @ts-ignore
|
|
70
|
-
function(acc, element) {
|
|
71
|
-
return [
|
|
72
|
-
...acc,
|
|
73
|
-
...(element == null ? void 0 : element.type) === "SpreadElement" ? astToLiteral(element.argument) : [
|
|
74
|
-
astToLiteral(element)
|
|
75
|
-
]
|
|
76
|
-
];
|
|
77
|
-
},
|
|
78
|
-
[]
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function computeProps(props) {
|
|
84
|
-
return props.reduce(function(acc, prop) {
|
|
85
|
-
if (prop.type === "SpreadElement")
|
|
86
|
-
return {
|
|
87
|
-
...acc,
|
|
88
|
-
...astToLiteral(prop.argument)
|
|
89
|
-
};
|
|
90
|
-
if (prop.type !== "ObjectMethod") {
|
|
91
|
-
var val = astToLiteral(prop.value);
|
|
92
|
-
if (val !== void 0)
|
|
93
|
-
return {
|
|
94
|
-
...acc,
|
|
95
|
-
[prop.key.name]: val
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
return acc;
|
|
99
|
-
}, {});
|
|
100
|
-
}
|
|
101
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
102
|
-
0 && (module.exports = {
|
|
103
|
-
astToLiteral,
|
|
104
|
-
literalToAst
|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B,IAAI;AACzB,eAAO,aAAa,KAAK,UAAU;AAEvC,UAAI,EAAE,kBAAkB,IAAI;AACxB,eAAO,KAAK,SAAS;AAAA;AAAA,UACrB,SAAS,KAAK,SAAS;AACnB,mBAAO;AAAA,cACH,GAAG;AAAA,cACH,IAAI,WAAY,OAA6B,SAAS,QAAQ,UAAU,kBAAkB,aAAa,QAAQ,QAAQ,IAAI;AAAA,gBACvH,aAAa,OAAO;AAAA,cACxB;AAAA,YACJ;AAAA,UACJ;AAAA,UAAG,CAAC;AAAA,QAAC;AAAA;AAAA;AAEb;AACA,SAAS,aAAa,OAAO;AACzB,SAAO,MAAM,OAAO,SAAS,KAAK,MAAM;AACpC,QAAI,KAAK,SAAS;AACd,aAAO;AAAA,QACH,GAAG;AAAA,QACH,GAAG,aAAa,KAAK,QAAQ;AAAA,MACjC;AAEJ,QAAI,KAAK,SAAS,gBAAgB;AAC9B,UAAI,MAAM,aAAa,KAAK,KAAK;AACjC,UAAI,QAAQ;AACR,eAAO;AAAA,UACH,GAAG;AAAA,UACH,CAAC,KAAK,IAAI,IAAI,GAAG;AAAA,QACrB;AAAA,IAER;AACA,WAAO;AAAA,EACX,GAAG,CAAC,CAAC;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
process.on("message", function(path) {
|
|
3
|
-
if (typeof path != "string")
|
|
4
|
-
throw new Error(`Not a string: ${path}`);
|
|
5
|
-
try {
|
|
6
|
-
var _process_send, _process, out = require(path);
|
|
7
|
-
(_process_send = (_process = process).send) === null || _process_send === void 0 || _process_send.call(_process, JSON.stringify(out));
|
|
8
|
-
} catch (err) {
|
|
9
|
-
if (err instanceof Error) {
|
|
10
|
-
var _process_send1, _process1;
|
|
11
|
-
(_process_send1 = (_process1 = process).send) === null || _process_send1 === void 0 || _process_send1.call(_process1, `-${err.message}
|
|
12
|
-
${err.stack}`);
|
|
13
|
-
} else {
|
|
14
|
-
var _process_send2, _process2;
|
|
15
|
-
(_process_send2 = (_process2 = process).send) === null || _process_send2 === void 0 || _process_send2.call(_process2, `-${err}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
setInterval(function() {
|
|
20
|
-
}, 1e3);
|
|
21
|
-
//# sourceMappingURL=loadFile.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/loadFile.ts"],
|
|
4
|
-
"mappings": ";AAAA,QAAQ,GAAG,WAAW,SAAS,MAAM;AACjC,MAAI,OAAO,QAAS;AAChB,UAAM,IAAI,MAAM,iBAAiB,IAAI,EAAE;AAE3C,MAAI;AACA,QAAI,eAAe,UACf,MAAM,QAAQ,IAAI;AACtB,KAAC,iBAAiB,WAAW,SAAS,UAAU,QAAQ,kBAAkB,UAAkB,cAAc,KAAK,UAAU,KAAK,UAAU,GAAG,CAAC;AAAA,EAChJ,SAAS,KAAK;AACV,QAAI,eAAe,OAAO;AACtB,UAAI,gBAAgB;AACpB,OAAC,kBAAkB,YAAY,SAAS,UAAU,QAAQ,mBAAmB,UAAkB,eAAe,KAAK,WAAW,IAAI,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,EAAE;AAAA,IACjK,OAAO;AACH,UAAI,gBAAgB;AACpB,OAAC,kBAAkB,YAAY,SAAS,UAAU,QAAQ,mBAAmB,UAAkB,eAAe,KAAK,WAAW,IAAI,GAAG,EAAE;AAAA,IAC3I;AAAA,EACJ;AACJ,CAAC;AACD,YAAY,WAAW;AAAC,GAAG,GAAI;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|