@tamagui/static 1.89.26 → 1.89.27-1708113113238
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/constants.native.js +4 -4
- package/dist/cjs/constants.native.js.map +3 -3
- package/dist/cjs/extractor/accessSafe.native.js +1 -5
- package/dist/cjs/extractor/accessSafe.native.js.map +3 -3
- package/dist/cjs/extractor/babelParse.native.js +5 -8
- package/dist/cjs/extractor/babelParse.native.js.map +3 -3
- package/dist/cjs/extractor/buildClassName.native.js +31 -42
- package/dist/cjs/extractor/buildClassName.native.js.map +3 -3
- package/dist/cjs/extractor/bundle.js +6 -4
- package/dist/cjs/extractor/bundle.js.map +1 -1
- package/dist/cjs/extractor/bundle.native.js +321 -56
- package/dist/cjs/extractor/bundle.native.js.map +3 -3
- package/dist/cjs/extractor/bundleConfig.native.js +499 -187
- package/dist/cjs/extractor/bundleConfig.native.js.map +3 -3
- package/dist/cjs/extractor/createEvaluator.native.js +9 -11
- package/dist/cjs/extractor/createEvaluator.native.js.map +3 -3
- package/dist/cjs/extractor/createExtractor.native.js +1240 -906
- package/dist/cjs/extractor/createExtractor.native.js.map +3 -3
- package/dist/cjs/extractor/ensureImportingConcat.native.js +11 -17
- package/dist/cjs/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/cjs/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/cjs/extractor/evaluateAstNode.native.js +15 -21
- package/dist/cjs/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/cjs/extractor/extractHelpers.native.js +146 -38
- package/dist/cjs/extractor/extractHelpers.native.js.map +3 -3
- package/dist/cjs/extractor/extractMediaStyle.native.js +127 -54
- package/dist/cjs/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/cjs/extractor/extractToClassNames.native.js +449 -252
- package/dist/cjs/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/findTopmostFunction.native.js +4 -4
- package/dist/cjs/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/cjs/extractor/generatedUid.native.js +2 -2
- package/dist/cjs/extractor/generatedUid.native.js.map +3 -3
- package/dist/cjs/extractor/getPrefixLogs.native.js +2 -1
- package/dist/cjs/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/cjs/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/cjs/extractor/getSourceModule.native.js +20 -7
- package/dist/cjs/extractor/getSourceModule.native.js.map +3 -3
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/cjs/extractor/hoistClassNames.native.js +8 -10
- package/dist/cjs/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/cjs/extractor/literalToAst.native.js +89 -19
- package/dist/cjs/extractor/literalToAst.native.js.map +3 -3
- package/dist/cjs/extractor/loadFile.native.js +16 -8
- package/dist/cjs/extractor/loadFile.native.js.map +3 -3
- package/dist/cjs/extractor/loadTamagui.js +3 -3
- package/dist/cjs/extractor/loadTamagui.js.map +1 -1
- package/dist/cjs/extractor/loadTamagui.native.js +667 -192
- package/dist/cjs/extractor/loadTamagui.native.js.map +3 -3
- package/dist/cjs/extractor/logLines.native.js +24 -6
- package/dist/cjs/extractor/logLines.native.js.map +3 -3
- package/dist/cjs/extractor/normalizeTernaries.native.js +71 -20
- package/dist/cjs/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/cjs/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/cjs/extractor/removeUnusedHooks.native.js +69 -36
- package/dist/cjs/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/cjs/extractor/timer.native.js +10 -9
- package/dist/cjs/extractor/timer.native.js.map +3 -3
- package/dist/cjs/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/cjs/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/cjs/getPragmaOptions.native.js +4 -9
- package/dist/cjs/getPragmaOptions.native.js.map +3 -3
- package/dist/cjs/helpers/memoize.native.js +5 -3
- package/dist/cjs/helpers/memoize.native.js.map +3 -3
- package/dist/cjs/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/cjs/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/minifyCSS.native.js.map +3 -3
- package/dist/cjs/registerRequire.native.js +56 -28
- package/dist/cjs/registerRequire.native.js.map +3 -3
- package/dist/cjs/server.native.js +175 -21
- package/dist/cjs/server.native.js.map +3 -3
- package/dist/cjs/setup.native.js.map +3 -3
- package/dist/cjs/static.native.js.map +2 -2
- package/dist/cjs/types.native.js.map +2 -2
- package/dist/cjs/webpackPlugin.native.js +26 -5
- package/dist/cjs/webpackPlugin.native.js.map +3 -3
- package/dist/esm/constants.native.js +4 -3
- package/dist/esm/constants.native.js.map +3 -3
- package/dist/esm/extractor/accessSafe.native.js +1 -5
- package/dist/esm/extractor/accessSafe.native.js.map +3 -3
- package/dist/esm/extractor/babelParse.native.js +5 -7
- package/dist/esm/extractor/babelParse.native.js.map +3 -3
- package/dist/esm/extractor/buildClassName.native.js +31 -41
- package/dist/esm/extractor/buildClassName.native.js.map +3 -3
- package/dist/esm/extractor/bundle.js +6 -4
- package/dist/esm/extractor/bundle.js.map +1 -1
- package/dist/esm/extractor/bundle.mjs +7 -5
- package/dist/esm/extractor/bundle.native.js +321 -56
- package/dist/esm/extractor/bundle.native.js.map +3 -3
- package/dist/esm/extractor/bundleConfig.native.js +499 -187
- package/dist/esm/extractor/bundleConfig.native.js.map +3 -3
- package/dist/esm/extractor/createEvaluator.native.js +9 -11
- package/dist/esm/extractor/createEvaluator.native.js.map +3 -3
- package/dist/esm/extractor/createExtractor.native.js +1241 -916
- package/dist/esm/extractor/createExtractor.native.js.map +3 -3
- package/dist/esm/extractor/ensureImportingConcat.native.js +11 -16
- package/dist/esm/extractor/ensureImportingConcat.native.js.map +3 -3
- package/dist/esm/extractor/esbuildAliasPlugin.native.js +22 -11
- package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +3 -3
- package/dist/esm/extractor/evaluateAstNode.native.js +15 -21
- package/dist/esm/extractor/evaluateAstNode.native.js.map +3 -3
- package/dist/esm/extractor/extractHelpers.native.js +146 -38
- package/dist/esm/extractor/extractHelpers.native.js.map +3 -3
- package/dist/esm/extractor/extractMediaStyle.native.js +127 -54
- package/dist/esm/extractor/extractMediaStyle.native.js.map +3 -3
- package/dist/esm/extractor/extractToClassNames.native.js +449 -252
- package/dist/esm/extractor/extractToClassNames.native.js.map +3 -3
- package/dist/esm/extractor/findTopmostFunction.native.js +4 -4
- package/dist/esm/extractor/findTopmostFunction.native.js.map +3 -3
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +415 -54
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
- package/dist/esm/extractor/generatedUid.native.js +2 -2
- package/dist/esm/extractor/generatedUid.native.js.map +3 -3
- package/dist/esm/extractor/getPrefixLogs.native.js +2 -1
- package/dist/esm/extractor/getPrefixLogs.native.js.map +3 -3
- package/dist/esm/extractor/getPropValueFromAttributes.native.js +16 -19
- package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +3 -3
- package/dist/esm/extractor/getSourceModule.native.js +20 -7
- package/dist/esm/extractor/getSourceModule.native.js.map +3 -3
- package/dist/esm/extractor/getStaticBindingsForScope.native.js +336 -94
- package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +3 -3
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
- package/dist/esm/extractor/hoistClassNames.native.js +8 -10
- package/dist/esm/extractor/hoistClassNames.native.js.map +3 -3
- package/dist/esm/extractor/literalToAst.native.js +89 -19
- package/dist/esm/extractor/literalToAst.native.js.map +3 -3
- package/dist/esm/extractor/loadFile.native.js +16 -8
- package/dist/esm/extractor/loadFile.native.js.map +3 -3
- package/dist/esm/extractor/loadTamagui.js +1 -2
- package/dist/esm/extractor/loadTamagui.js.map +1 -1
- package/dist/esm/extractor/loadTamagui.mjs +5 -3
- package/dist/esm/extractor/loadTamagui.native.js +668 -203
- package/dist/esm/extractor/loadTamagui.native.js.map +3 -3
- package/dist/esm/extractor/logLines.native.js +24 -6
- package/dist/esm/extractor/logLines.native.js.map +3 -3
- package/dist/esm/extractor/normalizeTernaries.native.js +71 -20
- package/dist/esm/extractor/normalizeTernaries.native.js.map +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js +3 -3
- package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +3 -3
- package/dist/esm/extractor/removeUnusedHooks.native.js +69 -35
- package/dist/esm/extractor/removeUnusedHooks.native.js.map +3 -3
- package/dist/esm/extractor/timer.native.js +10 -9
- package/dist/esm/extractor/timer.native.js.map +3 -3
- package/dist/esm/extractor/validHTMLAttributes.native.js +1 -1
- package/dist/esm/extractor/validHTMLAttributes.native.js.map +3 -3
- package/dist/esm/getPragmaOptions.native.js +4 -9
- package/dist/esm/getPragmaOptions.native.js.map +3 -3
- package/dist/esm/helpers/memoize.native.js +5 -3
- package/dist/esm/helpers/memoize.native.js.map +3 -3
- package/dist/esm/helpers/requireTamaguiCore.native.js +2 -1
- package/dist/esm/helpers/requireTamaguiCore.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/minifyCSS.native.js.map +3 -3
- package/dist/esm/registerRequire.native.js +56 -28
- package/dist/esm/registerRequire.native.js.map +3 -3
- package/dist/esm/server.native.js +175 -21
- package/dist/esm/server.native.js.map +3 -3
- package/dist/esm/setup.native.js.map +3 -3
- package/dist/esm/static.native.js.map +3 -3
- package/dist/esm/webpackPlugin.native.js +26 -5
- package/dist/esm/webpackPlugin.native.js.map +3 -3
- package/package.json +14 -15
- package/src/extractor/bundle.ts +5 -2
- package/src/extractor/loadTamagui.ts +3 -2
- package/types/extractor/bundle.d.ts.map +1 -1
- package/types/extractor/loadTamagui.d.ts.map +1 -1
- package/tamagui.tsconfig.json +0 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/loadTamagui.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/loadTamagui.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,cAAcC,qBAAqB;AAC5C,SAASC,UAAUC,SAASC,SAASC,MAAMC,UAAUC,eAAe;AAEpE,SAASC,OAAOC,gBAAgB;AAGhC,OAAOC,aAAa;AACpB,SAASC,YAAwBC,YAAYC,UAAUC,iBAAiB;AAExE,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AACnC,SAASC,iBAAiB;AAC1B,SAASC,gBAAgBC,uBAAuB;AAChD,SACEC,oBACAC,kBACAC,yBACAC,sBACK;AACP,SACEC,6BACAC,iCACAC,6BACK;AACP,SAASC,6CAA6C;AACtD,SAASC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzB,IAAMC,mBAAmB,SAACC,SAAAA;SAAsD,eAAA;;IAE9EC,UAAWC;IACXC,QAAQ;IACRC,YAAY;MAAC;;KACTJ,OAAAA;;AAGN,SAAsBK,YACpBL,SAAgC;SADZK,aAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,eAAAA;AA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D,QAAQ;cACpCE,QAAQ;cACRC,aAAW;gBAAGN;;cACdO,mBAAiB;gBAAG;gBAAO;gBAAQ;gBAAO;gBAAQ;;cAClDC,UAAU;cACVC,OAAO;cACPC,SAAO;gBACL;kBACEC,MAAO;kBACPC,OAAAA,SAAM,OAAS;wBAAPC,QAAF,MAAEA;AACNA,0BAAM,WAAA;AACJ,sBAAKX,aAGHD,UAAAA,IAFAC,aAAa;oBAIjB,CAAA;kBACF;gBACF;;YAEJ,CAAA;;;AApBMC,2BAAU,OAAA,KAAA,GAuBXA,QAAQW,MAAK,GAElB;;YAAO,WAAA;AACLX,sBAAQX,QAAO;YACjB;;;;EACF,CAAA,GApCeC,mBAAAA,MAAAA,MAAAA,SAAAA;;",
|
5
|
+
"names": ["readFileSync", "writeFileSync", "basename", "dirname", "extname", "join", "relative", "resolve", "Color", "colorLog", "esbuild", "existsSync", "pathExists", "readJSON", "writeFile", "SHOULD_DEBUG", "requireTamaguiCore", "minifyCSS", "getNameToPaths", "registerRequire", "TamaguiProjectInfo", "getBundledConfig", "hasBundledConfigChanged", "loadComponents", "generateTamaguiStudioConfig", "generateTamaguiStudioConfigSync", "generateTamaguiThemes", "getTamaguiConfigPathFromOptionsConfig", "readFile", "getFilledOptions", "propsIn", "platform", "process", "config", "components", "loadTamagui", "props", "bundleInfo", "createTamagui", "outputCSS", "flush", "cssOut", "css", "generateThemesAndLog", "console", "warn", "tamaguiConfig", "FgYellow", "_state", "getCSS", "disableMinifyCSS", "code", "env", "NODE_ENV", "waiting", "hasLoggedOnce", "options", "force", "didGenerate", "whitespaceBefore", "themeBuilder", "Promise", "res", "setTimeout", "cwd", "output", "last", "lastVersion", "loadTamaguiBuildConfigSync", "tamaguiOptions", "buildFilePath", "buildFile", "registered", "out", "require", "default", "Error", "unregister", "loadTamaguiSync", "forceExports", "cacheKey", "key", "JSON", "stringify", "IS_STATIC", "TAMAGUI_IS_SERVER", "proxyWormImports", "devValueOG", "globalThis", "configPath", "exp", "parsed", "confPath", "DEBUG", "info", "undefined", "nameToPaths", "cached", "err", "message", "error", "getDefaultTamaguiConfig", "getOptions", "root", "tsconfigPath", "host", "debug", "dotDir", "pkgJson", "mode", "getDefaultTamaguiConfigPath", "paths", "conf", "types", "resolveWebOrNativeSpecificEntry", "entry", "workspaceRoot", "resolved", "ext", "fileName", "replace", "specificExt", "specificFile", "defaultPaths", "hasWarnedOnce", "searchPaths", "path", "Set", "filter", "Boolean", "map", "p", "watchTamaguiConfig", "tamaguiOptions", "options", "disposeConfigWatcher", "themeBuilderInput", "disposeThemesWatcher", "inputPath", "getOptions", "config", "Error", "process", "env", "NODE_ENV", "dispose", "esbuildWatchFiles", "generateTamaguiStudioConfig", "themeBuilder", "input", "require", "resolve", "generateThemesAndLog", "entry", "onChanged", "hasRunOnce", "context", "esbuild", "bundle", "entryPoints", "resolveExtensions", "logLevel", "write", "plugins", "name", "setup", "onEnd", "watch"]
|
6
6
|
}
|
@@ -1,11 +1,29 @@
|
|
1
|
-
|
1
|
+
var prefix = " ", logLines = function(str) {
|
2
|
+
var singleLine = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
2
3
|
if (singleLine)
|
3
4
|
return prefix + str.split(" ").join(`
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
`.concat(prefix));
|
6
|
+
var lines = [
|
7
|
+
""
|
8
|
+
], items = str.split(" "), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
9
|
+
try {
|
10
|
+
for (var _iterator = items[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
11
|
+
var item = _step.value;
|
12
|
+
item.length + lines[lines.length - 1].length > 85 && lines.push(""), lines[lines.length - 1] += item + " ";
|
13
|
+
}
|
14
|
+
} catch (err) {
|
15
|
+
_didIteratorError = !0, _iteratorError = err;
|
16
|
+
} finally {
|
17
|
+
try {
|
18
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
19
|
+
} finally {
|
20
|
+
if (_didIteratorError)
|
21
|
+
throw _iteratorError;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return lines.map(function(line, i) {
|
25
|
+
return prefix + (i == 0 ? "" : " ") + line.trim();
|
26
|
+
}).join(`
|
9
27
|
`);
|
10
28
|
};
|
11
29
|
export {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/logLines.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/logLines.ts"],
|
4
|
+
"mappings": "AAAA,IAAMA,SAAS,eAEFC,WAAW,SAACC,KAAAA;MAAaC,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAa;AACjD,MAAIA;AACF,WAAOH,SAASE,IAAIE,MAAM,GAAA,EAAKC,KAAM;EAAW,OAAPL,MAAAA,CAAAA;AAE3C,MAAMM,QAAkB;IAAC;KACnBC,QAAQL,IAAIE,MAAM,GAAA,GACnB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAcG,MAAAA,OAAAA,QAAAA,EAAAA,GAAd,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAqB;AAArB,UAAMC,OAAN,MAAA;AACH,MAAIA,KAAKC,SAASH,MAAMA,MAAMG,SAAS,CAAA,EAAGA,SAAS,MACjDH,MAAMI,KAAK,EAAA,GAEbJ,MAAMA,MAAMG,SAAS,CAAA,KAAMD,OAAO;IACpC;;AALK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,SAAOF,MAAMK,IAAI,SAACC,MAAMC,GAAAA;WAAMb,UAAUa,KAAK,IAAI,KAAK,OAAOD,KAAKE,KAAI;KAAIT,KAAK;CAAA;AACjF;",
|
5
|
+
"names": ["prefix", "logLines", "str", "singleLine", "split", "join", "lines", "items", "item", "length", "push", "map", "line", "i", "trim"]
|
6
6
|
}
|
@@ -1,35 +1,86 @@
|
|
1
1
|
import generate from "@babel/generator";
|
2
2
|
import * as t from "@babel/types";
|
3
3
|
import invariant from "invariant";
|
4
|
+
function _define_property(obj, key, value) {
|
5
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
6
|
+
value,
|
7
|
+
enumerable: !0,
|
8
|
+
configurable: !0,
|
9
|
+
writable: !0
|
10
|
+
}) : obj[key] = value, obj;
|
11
|
+
}
|
12
|
+
function _object_spread(target) {
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
14
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
15
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
16
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
17
|
+
}))), ownKeys2.forEach(function(key) {
|
18
|
+
_define_property(target, key, source[key]);
|
19
|
+
});
|
20
|
+
}
|
21
|
+
return target;
|
22
|
+
}
|
23
|
+
function ownKeys(object, enumerableOnly) {
|
24
|
+
var keys = Object.keys(object);
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
26
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
27
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
28
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
29
|
+
})), keys.push.apply(keys, symbols);
|
30
|
+
}
|
31
|
+
return keys;
|
32
|
+
}
|
33
|
+
function _object_spread_props(target, source) {
|
34
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
35
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
36
|
+
}), target;
|
37
|
+
}
|
38
|
+
function _object_without_properties(source, excluded) {
|
39
|
+
if (source == null)
|
40
|
+
return {};
|
41
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
43
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
44
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
45
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
46
|
+
}
|
47
|
+
return target;
|
48
|
+
}
|
49
|
+
function _object_without_properties_loose(source, excluded) {
|
50
|
+
if (source == null)
|
51
|
+
return {};
|
52
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
53
|
+
for (i = 0; i < sourceKeys.length; i++)
|
54
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
55
|
+
return target;
|
56
|
+
}
|
4
57
|
function normalizeTernaries(ternaries) {
|
5
|
-
if (invariant(
|
6
|
-
Array.isArray(ternaries),
|
7
|
-
"extractStaticTernaries expects param 1 to be an array of ternaries"
|
8
|
-
), ternaries.length === 0)
|
58
|
+
if (invariant(Array.isArray(ternaries), "extractStaticTernaries expects param 1 to be an array of ternaries"), ternaries.length === 0)
|
9
59
|
return [];
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
60
|
+
for (var ternariesByKey = {}, idx = -1, len = ternaries.length; ++idx < len; ) {
|
61
|
+
var _ternaries_idx = ternaries[idx], test = _ternaries_idx.test, consequent = _ternaries_idx.consequent, alternate = _ternaries_idx.alternate, remove = _ternaries_idx.remove, rest = _object_without_properties(_ternaries_idx, [
|
62
|
+
"test",
|
63
|
+
"consequent",
|
64
|
+
"alternate",
|
65
|
+
"remove"
|
66
|
+
]), ternaryTest = test;
|
14
67
|
t.isExpressionStatement(test) && (ternaryTest = test.expression);
|
15
|
-
|
16
|
-
t.isUnaryExpression(test) && test.operator === "!" ? (ternaryTest = test.argument, shouldSwap = !0) : t.isBinaryExpression(test) && (test.operator === "!==" || test.operator === "!=") && (ternaryTest = t.binaryExpression(
|
17
|
-
|
18
|
-
|
19
|
-
test.right
|
20
|
-
), shouldSwap = !0);
|
21
|
-
const key = generate(ternaryTest).code;
|
22
|
-
ternariesByKey[key] || (ternariesByKey[key] = {
|
23
|
-
...rest,
|
68
|
+
var shouldSwap = !1;
|
69
|
+
t.isUnaryExpression(test) && test.operator === "!" ? (ternaryTest = test.argument, shouldSwap = !0) : t.isBinaryExpression(test) && (test.operator === "!==" || test.operator === "!=") && (ternaryTest = t.binaryExpression(test.operator.replace("!", "="), test.left, test.right), shouldSwap = !0);
|
70
|
+
var key = generate(ternaryTest).code;
|
71
|
+
ternariesByKey[key] || (ternariesByKey[key] = _object_spread_props(_object_spread({}, rest), {
|
24
72
|
alternate: {},
|
25
73
|
consequent: {},
|
26
74
|
test: ternaryTest,
|
27
75
|
remove
|
28
|
-
});
|
29
|
-
|
76
|
+
}));
|
77
|
+
var _ref, altStyle = (_ref = shouldSwap ? consequent : alternate) !== null && _ref !== void 0 ? _ref : {}, _ref1, consStyle = (_ref1 = shouldSwap ? alternate : consequent) !== null && _ref1 !== void 0 ? _ref1 : {};
|
30
78
|
Object.assign(ternariesByKey[key].alternate, altStyle), Object.assign(ternariesByKey[key].consequent, consStyle);
|
31
79
|
}
|
32
|
-
|
80
|
+
var ternaryExpression = Object.keys(ternariesByKey).map(function(key2) {
|
81
|
+
return ternariesByKey[key2];
|
82
|
+
});
|
83
|
+
return ternaryExpression;
|
33
84
|
}
|
34
85
|
export {
|
35
86
|
normalizeTernaries
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/normalizeTernaries.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor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AC,GACxCA,OAAbY,aAAaZ,QAAAA,aAAaN,YAAYD,gBAAAA,QAAzBO,UAAAA,SAAAA,QAAwC,CAAC;AAC5Da,WAAOC,OAAOzB,eAAeoB,GAAAA,EAAKf,WAAYiB,QAAAA,GAC9CE,OAAOC,OAAOzB,eAAeoB,GAAAA,EAAKhB,YAAamB,SAAAA;EACjD;AAEA,MAAMG,oBAAoBF,OAAOG,KAAK3B,cAAAA,EAAgB4B,IAAI,SAACR,MAAAA;AACzD,WAAOpB,eAAeoB,IAAAA;EACxB,CAAA;AAEA,SAAOM;AACT;",
|
5
|
+
"names": ["generate", "t", "invariant", "normalizeTernaries", "ternaries", "Array", "isArray", "length", "ternariesByKey", "idx", "len", "test", "consequent", "alternate", "remove", "rest", "ternaryTest", "isExpressionStatement", "expression", "shouldSwap", "isUnaryExpression", "operator", "argument", "isBinaryExpression", "binaryExpression", "replace", "left", "right", "key", "code", "altStyle", "consStyle", "Object", "assign", "ternaryExpression", "keys", "map"]
|
6
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
2
2
|
function setPropsToFontFamily(props, ff) {
|
3
3
|
cache.set(props, ff);
|
4
4
|
}
|
@@ -6,9 +6,9 @@ function getPropsToFontFamily(props) {
|
|
6
6
|
return cache.get(props);
|
7
7
|
}
|
8
8
|
function getFontFamilyClassNameFromProps(props) {
|
9
|
-
|
9
|
+
var ff = getPropsToFontFamily(props);
|
10
10
|
if (ff)
|
11
|
-
return
|
11
|
+
return " font_".concat(ff.replace("$", ""));
|
12
12
|
}
|
13
13
|
export {
|
14
14
|
getFontFamilyClassNameFromProps,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/propsToFontFamilyCache.ts"],
|
4
|
-
"mappings": "AAEA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/propsToFontFamilyCache.ts"],
|
4
|
+
"mappings": "AAEA,IAAMA,QAAQ,oBAAIC,QAAAA;AAEX,SAASC,qBAAqBC,OAAYC,IAAU;AACzDJ,QAAMK,IAAIF,OAAOC,EAAAA;AACnB;AAEO,SAASE,qBAAqBH,OAAU;AAC7C,SAAOH,MAAMO,IAAIJ,KAAAA;AACnB;AAEO,SAASK,gCAAgCL,OAAU;AACxD,MAAMC,KAAKE,qBAAqBH,KAAAA;AAChC,MAAIC;AACF,WAAQ,SAA4B,OAApBA,GAAGK,QAAQ,KAAK,EAAA,CAAA;AAEpC;",
|
5
|
+
"names": ["cache", "WeakMap", "setPropsToFontFamily", "props", "ff", "set", "getPropsToFontFamily", "get", "getFontFamilyClassNameFromProps", "replace"]
|
6
6
|
}
|
@@ -1,49 +1,83 @@
|
|
1
1
|
import * as t from "@babel/types";
|
2
|
-
|
2
|
+
var hooks = {
|
3
3
|
useMedia: !0,
|
4
4
|
useTheme: !0
|
5
5
|
};
|
6
6
|
function removeUnusedHooks(compFn, shouldPrintDebug) {
|
7
7
|
compFn.scope.crawl();
|
8
|
-
|
8
|
+
var bodyStatements = compFn == null ? void 0 : compFn.get("body");
|
9
9
|
if (!bodyStatements) {
|
10
10
|
console.info("no body statemnts?", compFn);
|
11
11
|
return;
|
12
12
|
}
|
13
|
-
if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !bodyStatements || !Array.isArray(bodyStatements))
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
13
|
+
if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !(!bodyStatements || !Array.isArray(bodyStatements))) {
|
14
|
+
var statements = bodyStatements, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
15
|
+
try {
|
16
|
+
for (var _loop = function() {
|
17
|
+
var statement = _step.value;
|
18
|
+
if (!statement.isVariableDeclaration())
|
19
|
+
return "continue";
|
20
|
+
var declarations = statement.get("declarations");
|
21
|
+
if (!Array.isArray(declarations))
|
22
|
+
return "continue";
|
23
|
+
var isBindingReferenced = function(name) {
|
24
|
+
var _statement_scope_getBinding;
|
25
|
+
return !!(!((_statement_scope_getBinding = statement.scope.getBinding(name)) === null || _statement_scope_getBinding === void 0) && _statement_scope_getBinding.referenced);
|
26
|
+
}, _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
27
|
+
try {
|
28
|
+
for (var _loop2 = function() {
|
29
|
+
var declarator = _step1.value, id = declarator.get("id"), init = declarator.node.init;
|
30
|
+
if (Array.isArray(id) || Array.isArray(init))
|
31
|
+
return "continue";
|
32
|
+
var shouldRemove = function() {
|
33
|
+
var isHook = init && t.isCallExpression(init) && t.isIdentifier(init.callee) && hooks[init.callee.name];
|
34
|
+
if (!isHook)
|
35
|
+
return !1;
|
36
|
+
if (t.isIdentifier(id.node)) {
|
37
|
+
var name = id.node.name;
|
38
|
+
return !isBindingReferenced(name);
|
39
|
+
}
|
40
|
+
if (t.isObjectPattern(id.node)) {
|
41
|
+
var propPaths = id.get("properties");
|
42
|
+
return propPaths.every(function(prop) {
|
43
|
+
if (!prop.isObjectProperty())
|
44
|
+
return !1;
|
45
|
+
var value = prop.get("value");
|
46
|
+
if (Array.isArray(value) || !value.isIdentifier())
|
47
|
+
return !1;
|
48
|
+
var name2 = value.node.name;
|
49
|
+
return !isBindingReferenced(name2);
|
50
|
+
});
|
51
|
+
}
|
52
|
+
return !1;
|
53
|
+
}();
|
54
|
+
if (shouldRemove && (declarator.remove(), shouldPrintDebug)) {
|
55
|
+
var _id_node_name;
|
56
|
+
console.info(" [\u{1FA9D}] removed ".concat((_id_node_name = id.node.name) !== null && _id_node_name !== void 0 ? _id_node_name : ""));
|
57
|
+
}
|
58
|
+
}, _iterator2 = declarations[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
|
59
|
+
_loop2();
|
60
|
+
} catch (err) {
|
61
|
+
_didIteratorError2 = !0, _iteratorError2 = err;
|
62
|
+
} finally {
|
63
|
+
try {
|
64
|
+
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
65
|
+
} finally {
|
66
|
+
if (_didIteratorError2)
|
67
|
+
throw _iteratorError2;
|
68
|
+
}
|
36
69
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
70
|
+
}, _iterator = statements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
71
|
+
_loop();
|
72
|
+
} catch (err) {
|
73
|
+
_didIteratorError = !0, _iteratorError = err;
|
74
|
+
} finally {
|
75
|
+
try {
|
76
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
77
|
+
} finally {
|
78
|
+
if (_didIteratorError)
|
79
|
+
throw _iteratorError;
|
80
|
+
}
|
47
81
|
}
|
48
82
|
}
|
49
83
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/removeUnusedHooks.ts"],
|
4
|
-
"mappings": "AACA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/removeUnusedHooks.ts"],
|
4
|
+
"mappings": "AACA,YAAYA,OAAO;AAEnB,IAAMC,QAAQ;EACZC,UAAU;EACVC,UAAU;AACZ;AAEO,SAASC,kBACdC,QACA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"bodyStatements", "get", "console", "info", "Array", "isArray", "isFunctionExpression", "path", "statements", "statement", "isVariableDeclaration", "declarations", "isBindingReferenced", "name", "getBinding", "referenced", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "declarator", "id", "init", "node", "shouldRemove", "isHook", "isCallExpression", "isIdentifier", "callee", "isObjectPattern", "propPaths", "every", "prop", "isObjectProperty", "value", "remove", "_iterator", "_loop"]
|
6
6
|
}
|
@@ -1,17 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
let last = start;
|
1
|
+
var timer = function() {
|
2
|
+
var start = Date.now(), last = start;
|
4
3
|
return {
|
5
|
-
mark: (name
|
4
|
+
mark: function(name) {
|
5
|
+
var print = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
6
6
|
if (print) {
|
7
|
-
|
8
|
-
last = Date.now(), console.info(
|
7
|
+
var took = Date.now() - last;
|
8
|
+
last = Date.now(), console.info("Time ".concat(name, ": ").concat(took, "ms")), took > 10 && console.info(" long timer");
|
9
9
|
}
|
10
10
|
},
|
11
|
-
done: (
|
11
|
+
done: function() {
|
12
|
+
var print = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
12
13
|
if (print) {
|
13
|
-
|
14
|
-
console.info(
|
14
|
+
var total = Date.now() - start;
|
15
|
+
console.info("Total time: ".concat(total, "ms")), total > 50 && console.info(" long timer");
|
15
16
|
}
|
16
17
|
}
|
17
18
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/timer.ts"],
|
4
|
-
"mappings": "AAAO,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/timer.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,QAAQ,WAAA;AACnB,MAAMC,QAAQC,KAAKC,IAAG,GAClBC,OAAOH;AACX,SAAO;IACLI,MAAM,SAACC,MAAAA;UAAcC,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAQ;AAC3B,UAAIA,OAAO;AACT,YAAMC,OAAON,KAAKC,IAAG,IAAKC;AAC1BA,eAAOF,KAAKC,IAAG,GACfM,QAAQC,KAAM,QAAgBF,OAATF,MAAK,IAAA,EAAS,OAALE,MAAK,IAAA,CAAA,GAC/BA,OAAO,MACTC,QAAQC,KAAK,cAAA;MAEjB;IACF;IACAC,MAAM,WAAA;UAACJ,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAQ;AACb,UAAIA,OAAO;AACT,YAAMK,QAAQV,KAAKC,IAAG,IAAKF;AAC3BQ,gBAAQC,KAAM,eAAoB,OAANE,OAAM,IAAA,CAAA,GAC9BA,QAAQ,MACVH,QAAQC,KAAK,cAAA;MAEjB;IACF;EACF;AACF;",
|
5
|
+
"names": ["timer", "start", "Date", "now", "last", "mark", "name", "print", "took", "console", "info", "done", "total"]
|
6
6
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/validHTMLAttributes.ts"],
|
4
|
-
"mappings": "AAAO,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/validHTMLAttributes.ts"],
|
4
|
+
"mappings": "AAAO,IAAMA,sBAAsB;EACjCC,cAAc;EACdC,QAAQ;EACRC,iBAAiB;EACjBC,aAAa;EACbC,KAAK;EACLC,WAAW;EACXC,SAAS;EACTC,aAAa;EACbC,YAAY;EACZC,YAAY;EACZC,WAAW;EACXC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,gBAAgB;EAChBC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,SAAS;EACTC,OAAO;EACPC,YAAY;EACZC,QAAQ;EACRC,WAAW;EACXC,MAAM;EACNC,MAAM;EACN,qBAAqB;EACrB,aAAa;EACb,gBAAgB;EAChB,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,wBAAwB;EACxB,oBAAoB;EACpB,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,aAAa;AACf;",
|
5
|
+
"names": ["validHTMLAttributes", "autocomplete", "border", "contenteditable", "crossorigin", "dir", "draggable", "enctype", "formenctype", "formmethod", "formtarget", "inputmode", "kind", "link", "method", "preload", "referrerpolicy", "rel", "rev", "role", "sandbox", "shape", "spellcheck", "target", "translate", "type", "wrap"]
|
6
6
|
}
|
@@ -1,18 +1,13 @@
|
|
1
|
-
function getPragmaOptions({
|
2
|
-
source,
|
3
|
-
path,
|
4
|
-
disableCommentCheck
|
5
|
-
}) {
|
6
|
-
var _a, _b;
|
1
|
+
function getPragmaOptions(param) {
|
2
|
+
var source = param.source, path = param.path, disableCommentCheck = param.disableCommentCheck, _process_env_DEBUG, _process_env_DEBUG1;
|
7
3
|
if (!disableCommentCheck && !source.startsWith("//") && !source.startsWith("/*"))
|
8
4
|
return {
|
9
5
|
shouldPrintDebug: !1,
|
10
6
|
shouldDisable: !1
|
11
7
|
};
|
12
|
-
|
13
|
-
const firstLine = source.slice(0, 800).split(`
|
8
|
+
var shouldPrintDebug = !1, shouldDisable = !1, firstLine = source.slice(0, 800).split(`
|
14
9
|
`)[0];
|
15
|
-
return firstLine.includes("tamagui-ignore") && (shouldDisable = !0), firstLine.includes("debug") && (shouldPrintDebug = !0), firstLine.includes("debug-verbose") && (shouldPrintDebug = "verbose"), process.env.TAMAGUI_DEBUG_FILE && path.includes(process.env.TAMAGUI_DEBUG_FILE) && (shouldPrintDebug = "verbose"), (
|
10
|
+
return firstLine.includes("tamagui-ignore") && (shouldDisable = !0), firstLine.includes("debug") && (shouldPrintDebug = !0), firstLine.includes("debug-verbose") && (shouldPrintDebug = "verbose"), 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"), {
|
16
11
|
shouldPrintDebug,
|
17
12
|
shouldDisable
|
18
13
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../src/getPragmaOptions.ts"],
|
4
|
-
"mappings": "AAAO,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/static/src/getPragmaOptions.ts"],
|
4
|
+
"mappings": "AAAO,SAASA,iBAAiB,OAQhC;MAPCC,SAD+B,MAC/BA,QACAC,OAF+B,MAE/BA,MACAC,sBAH+B,MAG/BA,qBAqCIC,oBAIAA;AAnCJ,MAAI,CAACD,uBAAuB,CAACF,OAAOI,WAAW,IAAA,KAAS,CAACJ,OAAOI,WAAW,IAAA;AACzE,WAAO;MACLC,kBAAkB;MAClBC,eAAe;IACjB;AAGF,MAAID,mBAAwC,IACxCC,gBAAgB,IAGdC,YAAYP,OAAOQ,MAAM,GAAG,GAAA,EAAKC,MAAM;CAAA,EAAM,CAAA;AAEnD,SAAIF,UAAUG,SAAS,gBAAA,MACrBJ,gBAAgB,KAGdC,UAAUG,SAAS,OAAA,MACrBL,mBAAmB,KAGjBE,UAAUG,SAAS,eAAA,MACrBL,mBAAmB,YAGjBF,QAAQQ,IAAIC,sBACVX,KAAKS,SAASP,QAAQQ,IAAIC,kBAAkB,MAC9CP,mBAAmB,YAInBF,wBAAAA,QAAQQ,IAAIE,WAAK,QAAjBV,uBAAAA,WAAAA,mBAAmBO,SAAS,SAAA,MAC9BL,qBAAAA,mBAAqB,MAGnBF,yBAAAA,QAAQQ,IAAIE,WAAK,QAAjBV,wBAAAA,WAAAA,oBAAmBO,SAAS,iBAAA,MAC9BL,mBAAmB,YAGd;IACLA;IACAC;EACF;AACF;",
|
5
|
+
"names": ["getPragmaOptions", "source", "path", "disableCommentCheck", "process", "startsWith", "shouldPrintDebug", "shouldDisable", "firstLine", "slice", "split", "includes", "env", "TAMAGUI_DEBUG_FILE", "DEBUG"]
|
6
6
|
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
function memoize(func, resolver) {
|
2
2
|
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
3
3
|
throw new TypeError("Expected a function");
|
4
|
-
|
5
|
-
|
4
|
+
var memoized = function() {
|
5
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
6
|
+
args[_key] = arguments[_key];
|
7
|
+
var key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
6
8
|
if (cache.has(key))
|
7
9
|
return cache.get(key);
|
8
|
-
|
10
|
+
var result = func.apply(this, args);
|
9
11
|
return memoized.cache = cache.set(key, result) || cache, result;
|
10
12
|
};
|
11
13
|
return memoized.cache = new (memoize.Cache || Map)(), memoized;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/helpers/memoize.ts"],
|
4
|
-
"mappings": "AACO,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/helpers/Users/n8/tamagui/packages/static/src/helpers/memoize.ts"],
|
4
|
+
"mappings": "AACO,SAASA,QAAQC,MAAiBC,UAAc;AACrD,MACE,OAAOD,QAAS,cACfC,YAAY,QAAQ,OAAOA,YAAa;AAEzC,UAAM,IAAIC,UAAU,qBAAA;AAEtB,MAAMC,WAAW,WAAA;AAAU,aAAA,OAAA,UAAA,QAAGC,OAAH,IAAA,MAAA,IAAA,GAAA,OAAA,GAAA,OAAA,MAAA;AAAGA,WAAH,IAAA,IAAA,UAAA,IAAA;AACzB,QAAMC,MAAMJ,WAAWA,SAASK,MAAM,MAAMF,IAAAA,IAAQA,KAAK,CAAA,GACnDG,QAAQJ,SAASI;AAEvB,QAAIA,MAAMC,IAAIH,GAAAA;AACZ,aAAOE,MAAME,IAAIJ,GAAAA;AAEnB,QAAMK,SAASV,KAAKM,MAAM,MAAMF,IAAAA;AAChCD,oBAASI,QAAQA,MAAMI,IAAIN,KAAKK,MAAAA,KAAWH,OACpCG;EACT;AACAP,kBAASI,QAAQ,KAAKR,QAAQa,SAASC,KAAE,GAClCV;AACT;AAEAJ,QAAQa,QAAQC;",
|
5
|
+
"names": ["memoize", "func", "resolver", "TypeError", "memoized", "args", "key", "apply", "cache", "has", "get", "result", "set", "Cache", "Map"]
|
6
6
|
}
|