@tamagui/static 1.135.3 → 1.135.4-1761748186554
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,111 +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 removeUnusedHooks_exports = {};
|
|
25
|
-
__export(removeUnusedHooks_exports, {
|
|
26
|
-
removeUnusedHooks: () => removeUnusedHooks
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(removeUnusedHooks_exports);
|
|
29
|
-
var t = __toESM(require("@babel/types")), hooks = {
|
|
30
|
-
useMedia: !0,
|
|
31
|
-
useTheme: !0
|
|
32
|
-
};
|
|
33
|
-
function removeUnusedHooks(compFn, shouldPrintDebug) {
|
|
34
|
-
compFn.scope.crawl();
|
|
35
|
-
var bodyStatements = compFn == null ? void 0 : compFn.get("body");
|
|
36
|
-
if (!bodyStatements) {
|
|
37
|
-
console.info("no body statemnts?", compFn);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !(!bodyStatements || !Array.isArray(bodyStatements))) {
|
|
41
|
-
var statements = bodyStatements, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
42
|
-
try {
|
|
43
|
-
for (var _loop = function() {
|
|
44
|
-
var statement = _step.value;
|
|
45
|
-
if (!statement.isVariableDeclaration())
|
|
46
|
-
return "continue";
|
|
47
|
-
var declarations = statement.get("declarations");
|
|
48
|
-
if (!Array.isArray(declarations))
|
|
49
|
-
return "continue";
|
|
50
|
-
var isBindingReferenced = function(name) {
|
|
51
|
-
var _statement_scope_getBinding;
|
|
52
|
-
return !!(!((_statement_scope_getBinding = statement.scope.getBinding(name)) === null || _statement_scope_getBinding === void 0) && _statement_scope_getBinding.referenced);
|
|
53
|
-
}, _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
54
|
-
try {
|
|
55
|
-
for (var _loop2 = function() {
|
|
56
|
-
var declarator = _step1.value, id = declarator.get("id"), init = declarator.node.init;
|
|
57
|
-
if (Array.isArray(id) || Array.isArray(init))
|
|
58
|
-
return "continue";
|
|
59
|
-
var shouldRemove = function() {
|
|
60
|
-
var isHook = init && t.isCallExpression(init) && t.isIdentifier(init.callee) && hooks[init.callee.name];
|
|
61
|
-
if (!isHook)
|
|
62
|
-
return !1;
|
|
63
|
-
if (t.isIdentifier(id.node)) {
|
|
64
|
-
var name = id.node.name;
|
|
65
|
-
return !isBindingReferenced(name);
|
|
66
|
-
}
|
|
67
|
-
if (t.isObjectPattern(id.node)) {
|
|
68
|
-
var propPaths = id.get("properties");
|
|
69
|
-
return propPaths.every(function(prop) {
|
|
70
|
-
if (!prop.isObjectProperty()) return !1;
|
|
71
|
-
var value = prop.get("value");
|
|
72
|
-
if (Array.isArray(value) || !value.isIdentifier()) return !1;
|
|
73
|
-
var name2 = value.node.name;
|
|
74
|
-
return !isBindingReferenced(name2);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return !1;
|
|
78
|
-
}();
|
|
79
|
-
if (shouldRemove && (declarator.remove(), shouldPrintDebug)) {
|
|
80
|
-
var _id_node_name;
|
|
81
|
-
console.info(` [\u{1FA9D}] removed ${(_id_node_name = id.node.name) !== null && _id_node_name !== void 0 ? _id_node_name : ""}`);
|
|
82
|
-
}
|
|
83
|
-
}, _iterator2 = declarations[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) _loop2();
|
|
84
|
-
} catch (err) {
|
|
85
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
86
|
-
} finally {
|
|
87
|
-
try {
|
|
88
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
89
|
-
} finally {
|
|
90
|
-
if (_didIteratorError2)
|
|
91
|
-
throw _iteratorError2;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}, _iterator = statements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
95
|
-
} catch (err) {
|
|
96
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
97
|
-
} finally {
|
|
98
|
-
try {
|
|
99
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
100
|
-
} finally {
|
|
101
|
-
if (_didIteratorError)
|
|
102
|
-
throw _iteratorError;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
-
0 && (module.exports = {
|
|
109
|
-
removeUnusedHooks
|
|
110
|
-
});
|
|
111
|
-
//# sourceMappingURL=removeUnusedHooks.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/removeUn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6B,QAAQ,UAAU,KAAK,GAAG,OAAO,4BAA4B,GAAK,OAAM;AAAA,IACrK,SAAS,KAAK;AACV,0BAAoB,IACpB,iBAAiB;AAAA,IACrB,UAAE;AACE,UAAI;AACA,QAAI,CAAC,6BAA6B,UAAU,UAAU,QAClD,UAAU,OAAO;AAAA,MAEzB,UAAE;AACE,YAAI;AACA,gBAAM;AAAA,MAEd;AAAA,IACJ;AAAA;AACJ;",
|
|
5
|
-
"names": ["_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_loop", "name", "_iterator"]
|
|
6
|
-
}
|
|
@@ -1,44 +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 timer_exports = {};
|
|
17
|
-
__export(timer_exports, {
|
|
18
|
-
timer: () => timer
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(timer_exports);
|
|
21
|
-
var timer = function() {
|
|
22
|
-
var start = Date.now(), last = start;
|
|
23
|
-
return {
|
|
24
|
-
mark: function(name) {
|
|
25
|
-
var print = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
26
|
-
if (print) {
|
|
27
|
-
var took = Date.now() - last;
|
|
28
|
-
last = Date.now(), console.info(`Time ${name}: ${took}ms`), took > 10 && console.info(" long timer");
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
done: function() {
|
|
32
|
-
var print = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
33
|
-
if (print) {
|
|
34
|
-
var total = Date.now() - start;
|
|
35
|
-
console.info(`Total time: ${total}ms`), total > 50 && console.info(" long timer");
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
-
0 && (module.exports = {
|
|
42
|
-
timer
|
|
43
|
-
});
|
|
44
|
-
//# sourceMappingURL=timer.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/timer.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAI,QAAQ,WAAW;AAC1B,MAAI,QAAQ,KAAK,IAAI,GACjB,OAAO;AACX,SAAO;AAAA,IACH,MAAM,SAAS,MAAM;AACjB,UAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI;AAC7E,UAAI,OAAO;AACP,YAAI,OAAO,KAAK,IAAI,IAAI;AACxB,eAAO,KAAK,IAAI,GAChB,QAAQ,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,GAClC,OAAO,MACP,QAAQ,KAAK,cAAc;AAAA,MAEnC;AAAA,IACJ;AAAA,IACA,MAAM,WAAW;AACb,UAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI;AAC7E,UAAI,OAAO;AACP,YAAI,QAAQ,KAAK,IAAI,IAAI;AACzB,gBAAQ,KAAK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+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 watchTamaguiConfig_exports = {};
|
|
17
|
-
__export(watchTamaguiConfig_exports, {
|
|
18
|
-
watchTamaguiConfig: () => watchTamaguiConfig
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(watchTamaguiConfig_exports);
|
|
21
|
-
var import_loadTamagui = require("./loadTamagui"), import_regenerateConfig = require("./regenerateConfig"), isWatching = !1;
|
|
22
|
-
async function watchTamaguiConfig(tamaguiOptions) {
|
|
23
|
-
var _options_tamaguiOptions_themeBuilder;
|
|
24
|
-
if (process.env.NODE_ENV === "production")
|
|
25
|
-
return {
|
|
26
|
-
dispose() {
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
if (!isWatching) {
|
|
30
|
-
isWatching = !0;
|
|
31
|
-
var options = await (0, import_loadTamagui.getOptions)({
|
|
32
|
-
tamaguiOptions
|
|
33
|
-
});
|
|
34
|
-
if (!options.tamaguiOptions.config)
|
|
35
|
-
throw isWatching = !1, new Error("No config");
|
|
36
|
-
var disposeConfigWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(options.tamaguiOptions.config, async function() {
|
|
37
|
-
await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions), await (0, import_regenerateConfig.regenerateConfig)(options.tamaguiOptions, null, !0);
|
|
38
|
-
}), themeBuilderInput = (_options_tamaguiOptions_themeBuilder = options.tamaguiOptions.themeBuilder) === null || _options_tamaguiOptions_themeBuilder === void 0 ? void 0 : _options_tamaguiOptions_themeBuilder.input, disposeThemesWatcher;
|
|
39
|
-
if (themeBuilderInput) {
|
|
40
|
-
var inputPath = themeBuilderInput;
|
|
41
|
-
try {
|
|
42
|
-
inputPath = require.resolve(themeBuilderInput);
|
|
43
|
-
} catch {
|
|
44
|
-
}
|
|
45
|
-
disposeThemesWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(inputPath, async function() {
|
|
46
|
-
await (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
dispose() {
|
|
51
|
-
isWatching = !1, disposeConfigWatcher(), disposeThemesWatcher == null || disposeThemesWatcher();
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
-
0 && (module.exports = {
|
|
58
|
-
watchTamaguiConfig
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=watchTamaguiConfig.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/watchTamaguiConfig.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAoE,0BACpE,0BAAiC,+BAC7B,aAAa;AACjB,eAAsB,mBAAmB,gBAAgB;AACrD,MAAI;AACJ,MAAI,QAAQ,IAAI,aAAa;AACzB,WAAO;AAAA,MACH,UAAW;AAAA,MAAC;AAAA,IAChB;AAEJ,MAAI,aAGJ;AAAA,iBAAa;AACb,QAAI,UAAU,UAAM,+BAAW;AAAA,MAC3B;AAAA,IACJ,CAAC;AACD,QAAI,CAAC,QAAQ,eAAe;AACxB,yBAAa,IACP,IAAI,MAAM,WAAW;AAE/B,QAAI,uBAAuB,UAAM,sCAAkB,QAAQ,eAAe,QAAQ,iBAAiB;AAC/F,gBAAM,yCAAqB,QAAQ,cAAc,GACjD,UAAM,0CAAiB,QAAQ,gBAAgB,MAAM,EAAI;AAAA,IAC7D,CAAC,GACG,qBAAqB,uCAAuC,QAAQ,eAAe,kBAAkB,QAAQ,yCAAyC,SAAS,SAAS,qCAAqC,OAC7M;AACJ,QAAI,mBAAmB;AACnB,UAAI,YAAY;AAChB,UAAI;AACA,oBAAY,QAAQ,QAAQ,iBAAiB;AAAA,MACjD,QAAY;AAAA,MAAC;AAEb,6BAAuB,UAAM,sCAAkB,WAAW,iBAAiB;AACvE,kBAAM,yCAAqB,QAAQ,cAAc;AAAA,MACrD,CAAC;AAAA,IACL;AACA,WAAO;AAAA,MACH,UAAW;AACP,qBAAa,IACb,qBAAqB,GACrB,wBAAyB,QAAmD,qBAAqB;AAAA,MACrG;AAAA,IACJ;AAAA;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,62 +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 getPragmaOptions_exports = {};
|
|
17
|
-
__export(getPragmaOptions_exports, {
|
|
18
|
-
getPragmaOptions: () => getPragmaOptions
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(getPragmaOptions_exports);
|
|
21
|
-
function getPragmaOptions(param) {
|
|
22
|
-
var { source, path } = param, _process_env_DEBUG, _process_env_DEBUG1, shouldPrintDebug = !1, shouldDisable = !1, firstLines = source.slice(0, 800), pragma = "", _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
23
|
-
try {
|
|
24
|
-
for (var _iterator = firstLines.split(`
|
|
25
|
-
`)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
26
|
-
var line = _step.value, _line_match;
|
|
27
|
-
if (pragma = ((_line_match = line.match(/(\/\/|\/\*)\s?\!?\s?(tamagui-ignore|debug|debug-verbose)(\n|\s|$).*/)) === null || _line_match === void 0 ? void 0 : _line_match[2].trim()) || "", pragma) {
|
|
28
|
-
pragma = pragma.replace("!", "").trim();
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
} catch (err) {
|
|
33
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
34
|
-
} finally {
|
|
35
|
-
try {
|
|
36
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
37
|
-
} finally {
|
|
38
|
-
if (_didIteratorError)
|
|
39
|
-
throw _iteratorError;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
switch (pragma) {
|
|
43
|
-
case "tamagui-ignore":
|
|
44
|
-
shouldDisable = !0;
|
|
45
|
-
break;
|
|
46
|
-
case "debug":
|
|
47
|
-
shouldPrintDebug = !0;
|
|
48
|
-
break;
|
|
49
|
-
case "debug-verbose":
|
|
50
|
-
shouldPrintDebug = "verbose";
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
return process.env.TAMAGUI_DEBUG_FILE && path.includes(process.env.TAMAGUI_DEBUG_FILE) && (shouldPrintDebug = "verbose"), !((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.includes("tamagui") && (shouldPrintDebug || (shouldPrintDebug = !0)), !((_process_env_DEBUG1 = process.env.DEBUG) === null || _process_env_DEBUG1 === void 0) && _process_env_DEBUG1.includes("tamagui-verbose") && (shouldPrintDebug = "verbose"), {
|
|
54
|
-
shouldPrintDebug,
|
|
55
|
-
shouldDisable
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
-
0 && (module.exports = {
|
|
60
|
-
getPragmaOptions
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=getPragmaOptions.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/getPragmaOptions.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,iBAAiB,OAAO;AACpC,MAAI,EAAE,QAAQ,KAAK,IAAI,OACnB,oBAAoB,qBACpB,mBAAmB,IACnB,gBAAgB,IAEhB,aAAa,OAAO,MAAM,GAAG,GAAG,GAChC,SAAS,IACT,4BAA4B,IAAM,oBAAoB,IAAO,iBAAiB;AAClF,MAAI;AACA,aAAQ,YAAY,WAAW,MAAM;AAAA,CAAI,EAAE,OAAO,QAAQ,EAAE,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,GAAG,OAAO,4BAA4B,IAAK;AACnK,UAAI,OAAO,MAAM,OACb;AAEJ,UADA,WAAW,cAAc,KAAK,MAAM,qEAAqE,OAAO,QAAQ,gBAAgB,SAAS,SAAS,YAAY,CAAC,EAAE,KAAK,MAAM,IAChL,QAAQ;AACR,iBAAS,OAAO,QAAQ,KAAK,EAAE,EAAE,KAAK;AACtC;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ,SAAS,KAAK;AACV,wBAAoB,IACpB,iBAAiB;AAAA,EACrB,UAAE;AACE,QAAI;AACA,MAAI,CAAC,6BAA6B,UAAU,UAAU,QAClD,UAAU,OAAO;AAAA,IAEzB,UAAE;AACE,UAAI;AACA,cAAM;AAAA,IAEd;AAAA,EACJ;AACA,UAAO,QAAO;AAAA,IACV,KAAK;AACD,sBAAgB;AAChB;AAAA,IACJ,KAAK;AACD,yBAAmB;AACnB;AAAA,IACJ,KAAK;AACD,yBAAmB;AACnB;AAAA,EACR;AACA,SAAI,QAAQ,IAAI,sBACR,KAAK,SAAS,QAAQ,IAAI,kBAAkB,MAC5C,mBAAmB,YAGtB,wBAAqB,QAAQ,IAAI,WAAW,QAAQ,uBAAuB,WAAkB,mBAAmB,SAAS,SAAS,MACnI,qBAAqB,mBAAmB,MAEvC,yBAAsB,QAAQ,IAAI,WAAW,QAAQ,wBAAwB,WAAkB,oBAAoB,SAAS,iBAAiB,MAC9I,mBAAmB,YAEhB;AAAA,IACH;AAAA,IACA;AAAA,EACJ;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,40 +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 memoize_exports = {};
|
|
17
|
-
__export(memoize_exports, {
|
|
18
|
-
memoize: () => memoize
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(memoize_exports);
|
|
21
|
-
function memoize(func, resolver) {
|
|
22
|
-
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
|
23
|
-
throw new TypeError("Expected a function");
|
|
24
|
-
var memoized = function() {
|
|
25
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
26
|
-
args[_key] = arguments[_key];
|
|
27
|
-
var key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
28
|
-
if (cache.has(key))
|
|
29
|
-
return cache.get(key);
|
|
30
|
-
var result = func.apply(this, args);
|
|
31
|
-
return memoized.cache = cache.set(key, result) || cache, result;
|
|
32
|
-
};
|
|
33
|
-
return memoized.cache = new (memoize.Cache || Map)(), memoized;
|
|
34
|
-
}
|
|
35
|
-
memoize.Cache = Map;
|
|
36
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
-
0 && (module.exports = {
|
|
38
|
-
memoize
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=memoize.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/helpers/memoize.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,SAAS,QAAQ,MAAM,UAAU;AACpC,MAAI,OAAO,QAAS,cAAc,YAAY,QAAQ,OAAO,YAAa;AACtE,UAAM,IAAI,UAAU,qBAAqB;AAE7C,MAAI,WAAW,WAAqB;AAChC,aAAQ,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM;AAC5E,WAAK,IAAI,IAAI,UAAU,IAAI;AAE/B,QAAI,MAAM,WAAW,SAAS,MAAM,MAAM,IAAI,IAAI,KAAK,CAAC,GACpD,QAAQ,SAAS;AACrB,QAAI,MAAM,IAAI,GAAG;AACb,aAAO,MAAM,IAAI,GAAG;AAExB,QAAI,SAAS,KAAK,MAAM,MAAM,IAAI;AAClC,oBAAS,QAAQ,MAAM,IAAI,KAAK,MAAM,KAAK,OACpC;AAAA,EACX;AACA,kBAAS,QAAQ,KAAK,QAAQ,SAAS,KAAK,GACrC;AACX;AACA,QAAQ,QAAQ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,34 +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 requireTamaguiCore_exports = {};
|
|
17
|
-
__export(requireTamaguiCore_exports, {
|
|
18
|
-
requireTamaguiCore: () => requireTamaguiCore
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(requireTamaguiCore_exports);
|
|
21
|
-
function requireTamaguiCore(platform) {
|
|
22
|
-
var ogRequire = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : require, _process_env, _process_env1;
|
|
23
|
-
if (!platform)
|
|
24
|
-
throw new Error("No platform given to requireTamaguiCore");
|
|
25
|
-
var og1 = process.env.TAMAGUI_IS_SERVER, og2 = process.env.TAMAGUI_KEEP_THEMES;
|
|
26
|
-
(_process_env = process.env).TAMAGUI_IS_SERVER || (_process_env.TAMAGUI_IS_SERVER = "1"), (_process_env1 = process.env).TAMAGUI_KEEP_THEMES || (_process_env1.TAMAGUI_KEEP_THEMES = "1");
|
|
27
|
-
var exported = ogRequire(platform === "native" ? "@tamagui/core/native" : "@tamagui/core");
|
|
28
|
-
return process.env.TAMAGUI_IS_SERVER = og1, process.env.TAMAGUI_KEEP_THEMES = og2, exported;
|
|
29
|
-
}
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
requireTamaguiCore
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=requireTamaguiCore.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/helpers/requireTamaguiCore.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,SAAS,mBAAmB,UAAU;AACzC,MAAI,YAAY,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI,SAC7E,cAAc;AAClB,MAAI,CAAC;AACD,UAAM,IAAI,MAAM,yCAAyC;AAG7D,MAAI,MAAM,QAAQ,IAAI,mBAClB,MAAM,QAAQ,IAAI;AACtB,GAAC,eAAe,QAAQ,KAAK,sBAAsB,aAAa,oBAAoB,OACnF,gBAAgB,QAAQ,KAAK,wBAAwB,cAAc,sBAAsB;AAC1F,MAAI,WAAW,UAAU,aAAa,WAAW,yBAAyB,eAAe;AAEzF,iBAAQ,IAAI,oBAAoB,KAChC,QAAQ,IAAI,sBAAsB,KAC3B;AACX;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/index.native.js
DELETED
|
@@ -1,35 +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
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var index_exports = {};
|
|
24
|
-
__export(index_exports, {
|
|
25
|
-
default: () => index_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(index_exports);
|
|
28
|
-
var Static1 = __toESM(require("./exports"));
|
|
29
|
-
__reExport(index_exports, require("./exports"), module.exports);
|
|
30
|
-
var index_default = Static1;
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
...require("./exports")
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.native.js.map
DELETED
|
@@ -1,124 +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 registerRequire_exports = {};
|
|
17
|
-
__export(registerRequire_exports, {
|
|
18
|
-
getNameToPaths: () => getNameToPaths,
|
|
19
|
-
registerRequire: () => registerRequire,
|
|
20
|
-
setRequireResult: () => setRequireResult
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(registerRequire_exports);
|
|
23
|
-
var import_node = require("esbuild-register/dist/node"), import_bundle = require("./extractor/bundle"), import_requireTamaguiCore = require("./helpers/requireTamaguiCore"), _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS, nameToPaths = {}, getNameToPaths = function() {
|
|
24
|
-
return nameToPaths;
|
|
25
|
-
}, Module = require("node:module"), proxyWorm = require("@tamagui/proxy-worm"), isRegistered = !1, og, whitelisted = {
|
|
26
|
-
react: !0
|
|
27
|
-
}, compiled = {};
|
|
28
|
-
function setRequireResult(name, result) {
|
|
29
|
-
compiled[name] = result;
|
|
30
|
-
}
|
|
31
|
-
function registerRequire(platform) {
|
|
32
|
-
var { proxyWormImports } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
33
|
-
proxyWormImports: !1
|
|
34
|
-
};
|
|
35
|
-
if (isRegistered)
|
|
36
|
-
return {
|
|
37
|
-
tamaguiRequire: require,
|
|
38
|
-
unregister: function() {
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
var { unregister } = (0, import_node.register)({
|
|
42
|
-
hookIgnoreNodeModules: !1
|
|
43
|
-
});
|
|
44
|
-
og || (og = Module.prototype.require), isRegistered = !0, Module.prototype.require = tamaguiRequire;
|
|
45
|
-
function tamaguiRequire(path) {
|
|
46
|
-
var _this = this;
|
|
47
|
-
if (path === "tamagui" && platform === "native")
|
|
48
|
-
return og.apply(this, [
|
|
49
|
-
"tamagui/native"
|
|
50
|
-
]);
|
|
51
|
-
if (path === "@tamagui/core")
|
|
52
|
-
return (0, import_requireTamaguiCore.requireTamaguiCore)(platform, function(path2) {
|
|
53
|
-
return og.apply(_this, [
|
|
54
|
-
path2
|
|
55
|
-
]);
|
|
56
|
-
});
|
|
57
|
-
if (path in knownIgnorableModules || path.startsWith("react-native-reanimated") || import_bundle.esbuildIgnoreFilesRegex.test(path))
|
|
58
|
-
return proxyWorm;
|
|
59
|
-
if (path in compiled)
|
|
60
|
-
return compiled[path];
|
|
61
|
-
if (path === "react-native-svg")
|
|
62
|
-
return og.apply(this, [
|
|
63
|
-
"@tamagui/react-native-svg"
|
|
64
|
-
]);
|
|
65
|
-
if (path === "react-native/package.json")
|
|
66
|
-
return og.apply(this, [
|
|
67
|
-
"react-native-web/package.json"
|
|
68
|
-
]);
|
|
69
|
-
if (path === "@tamagui/react-native-web-lite" || path === "react-native" || path.startsWith("react-native/"))
|
|
70
|
-
try {
|
|
71
|
-
return og.apply("react-native");
|
|
72
|
-
} catch {
|
|
73
|
-
return og.apply(this, [
|
|
74
|
-
"@tamagui/react-native-web-lite"
|
|
75
|
-
]);
|
|
76
|
-
}
|
|
77
|
-
if (!whitelisted[path] && proxyWormImports && !path.includes(".tamagui-dynamic-eval"))
|
|
78
|
-
return path === "tamagui" ? og.apply(this, [
|
|
79
|
-
path
|
|
80
|
-
]) : proxyWorm;
|
|
81
|
-
try {
|
|
82
|
-
var out = og.apply(this, arguments);
|
|
83
|
-
return out;
|
|
84
|
-
} catch (err) {
|
|
85
|
-
return !process.env.TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD && path.includes("tamagui-dynamic-eval") ? void 0 : (allowedIgnores[path] || IGNORES === "true" || (!process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS && !process.env.DEBUG ? hasWarnedForModules.has(path) || hasWarnedForModules.add(path) : console.error(`Tamagui failed to require() "${path}"
|
|
86
|
-
|
|
87
|
-
${err.message}
|
|
88
|
-
${err.stack}
|
|
89
|
-
|
|
90
|
-
`)), proxyWorm);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
tamaguiRequire,
|
|
95
|
-
unregister: function() {
|
|
96
|
-
hasWarnedForModules.size && (console.info(` [tamagui] skipped loading ${hasWarnedForModules.size} module, see: https://tamagui.dev/docs/intro/errors#warning-001`), hasWarnedForModules.clear()), unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
var IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : (_process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) === null || _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS === void 0 ? void 0 : _process_env_TAMAGUI_IGNORE_BUNDLE_ERRORS.split(","), knownIgnorableModules = {
|
|
101
|
-
"@gorhom/bottom-sheet": !0,
|
|
102
|
-
"expo-modules": !0,
|
|
103
|
-
solito: !0,
|
|
104
|
-
"expo-linear-gradient": !0,
|
|
105
|
-
"@expo/vector-icons": !0,
|
|
106
|
-
"tamagui/linear-gradient": !0,
|
|
107
|
-
...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map(function(k) {
|
|
108
|
-
return [
|
|
109
|
-
k,
|
|
110
|
-
!0
|
|
111
|
-
];
|
|
112
|
-
})) || [])
|
|
113
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set(), allowedIgnores = {
|
|
114
|
-
"expo-constants": !0,
|
|
115
|
-
"./ExpoHaptics": !0,
|
|
116
|
-
"./js/MaskedView": !0
|
|
117
|
-
};
|
|
118
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
-
0 && (module.exports = {
|
|
120
|
-
getNameToPaths,
|
|
121
|
-
registerRequire,
|
|
122
|
-
setRequireResult
|
|
123
|
-
});
|
|
124
|
-
//# sourceMappingURL=registerRequire.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/registerRequire.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAyB,uCACzB,gBAAwC,+BACxC,4BAAmC,yCAH/B,2CAIA,cAAc,CAAC,GACR,iBAAiB,WAAW;AACnC,SAAO;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