@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": "
|
5
|
-
"names": ["esbuild"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/loadTamagui.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+BAGhC,iBAAoB,6BACpB,kBAAwE,qBAExE,mBAA6B,yBAC7B,4BAAmC,0CACnC,mBAA0B,yBAC1B,yBAAgD,+BAChD,sBAKO,2BACP,qCAIO,0CACP,+CAAsD,oDACtD,kBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzB,IAAMA,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;AAAAA,wBAAf,oBAAA,SACLL,SAAgC;QAE1BM,OAEAC,YAiBIC,eAGFL,QAEEM,WAEAC,OAKAC,QACAC,KAAAA;;;;AAhCJN,yBAAQP,iBAAiBC,OAAA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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": ["getFilledOptions", "propsIn", "platform", "process", "config", "components", "loadTamagui", "props", "bundleInfo", "createTamagui", "outputCSS", "flush", "cssOut", "css", "getBundledConfig", "generateThemesAndLog", "console", "warn", "hasBundledConfigChanged", "requireTamaguiCore", "tamaguiConfig", "colorLog", "Color", "FgYellow", "writeFile", "_state", "getCSS", "disableMinifyCSS", "minifyCSS", "code", "readFile", "env", "NODE_ENV", "generateTamaguiStudioConfig", "waiting", "hasLoggedOnce", "options", "force", "didGenerate", "whitespaceBefore", "themeBuilder", "Promise", "res", "setTimeout", "generateTamaguiThemes", "relative", "cwd", "output", "last", "lastVersion", "loadTamaguiBuildConfigSync", "tamaguiOptions", "buildFilePath", "buildFile", "existsSync", "registered", "registerRequire", "out", "require", "default", "Error", "unregister", "loadTamaguiSync", "forceExports", "cacheKey", "key", "JSON", "stringify", "IS_STATIC", "TAMAGUI_IS_SERVER", "proxyWormImports", "devValueOG", "globalThis", "configPath", "getTamaguiConfigPathFromOptionsConfig", "exp", "parsed", "confPath", "resolve", "loadComponents", "DEBUG", "info", "undefined", "nameToPaths", "getNameToPaths", "writeFileSync", "readFileSync", "generateTamaguiStudioConfigSync", "cached", "err", "SHOULD_DEBUG", "message", "error", "getDefaultTamaguiConfig", "getOptions", "root", "tsconfigPath", "host", "debug", "dotDir", "pkgJson", "join", "readJSON", "mode", "getDefaultTamaguiConfigPath", "paths", "conf", "types", "resolveWebOrNativeSpecificEntry", "entry", "workspaceRoot", "resolved", "ext", "extname", "fileName", "basename", "replace", "specificExt", "specificFile", "dirname", "defaultPaths", "hasWarnedOnce", "searchPaths", "path", "Set", "filter", "Boolean", "map", "p", "pathExists", "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
|
}
|
@@ -18,14 +18,32 @@ __export(logLines_exports, {
|
|
18
18
|
logLines: () => logLines
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(logLines_exports);
|
21
|
-
|
21
|
+
var prefix = " ", logLines = function(str) {
|
22
|
+
var singleLine = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
22
23
|
if (singleLine)
|
23
24
|
return prefix + str.split(" ").join(`
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
`.concat(prefix));
|
26
|
+
var lines = [
|
27
|
+
""
|
28
|
+
], items = str.split(" "), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
29
|
+
try {
|
30
|
+
for (var _iterator = items[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
31
|
+
var item = _step.value;
|
32
|
+
item.length + lines[lines.length - 1].length > 85 && lines.push(""), lines[lines.length - 1] += item + " ";
|
33
|
+
}
|
34
|
+
} catch (err) {
|
35
|
+
_didIteratorError = !0, _iteratorError = err;
|
36
|
+
} finally {
|
37
|
+
try {
|
38
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
39
|
+
} finally {
|
40
|
+
if (_didIteratorError)
|
41
|
+
throw _iteratorError;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return lines.map(function(line, i) {
|
45
|
+
return prefix + (i == 0 ? "" : " ") + line.trim();
|
46
|
+
}).join(`
|
29
47
|
`);
|
30
48
|
};
|
31
49
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -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
|
}
|
@@ -27,35 +27,86 @@ __export(normalizeTernaries_exports, {
|
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(normalizeTernaries_exports);
|
29
29
|
var import_generator = __toESM(require("@babel/generator")), t = __toESM(require("@babel/types")), import_invariant = __toESM(require("invariant"));
|
30
|
+
function _define_property(obj, key, value) {
|
31
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
32
|
+
value,
|
33
|
+
enumerable: !0,
|
34
|
+
configurable: !0,
|
35
|
+
writable: !0
|
36
|
+
}) : obj[key] = value, obj;
|
37
|
+
}
|
38
|
+
function _object_spread(target) {
|
39
|
+
for (var i = 1; i < arguments.length; i++) {
|
40
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
41
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
42
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
43
|
+
}))), ownKeys2.forEach(function(key) {
|
44
|
+
_define_property(target, key, source[key]);
|
45
|
+
});
|
46
|
+
}
|
47
|
+
return target;
|
48
|
+
}
|
49
|
+
function ownKeys(object, enumerableOnly) {
|
50
|
+
var keys = Object.keys(object);
|
51
|
+
if (Object.getOwnPropertySymbols) {
|
52
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
53
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
54
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
55
|
+
})), keys.push.apply(keys, symbols);
|
56
|
+
}
|
57
|
+
return keys;
|
58
|
+
}
|
59
|
+
function _object_spread_props(target, source) {
|
60
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
61
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
62
|
+
}), target;
|
63
|
+
}
|
64
|
+
function _object_without_properties(source, excluded) {
|
65
|
+
if (source == null)
|
66
|
+
return {};
|
67
|
+
var target = _object_without_properties_loose(source, excluded), key, i;
|
68
|
+
if (Object.getOwnPropertySymbols) {
|
69
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
70
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
71
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
72
|
+
}
|
73
|
+
return target;
|
74
|
+
}
|
75
|
+
function _object_without_properties_loose(source, excluded) {
|
76
|
+
if (source == null)
|
77
|
+
return {};
|
78
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
79
|
+
for (i = 0; i < sourceKeys.length; i++)
|
80
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
81
|
+
return target;
|
82
|
+
}
|
30
83
|
function normalizeTernaries(ternaries) {
|
31
|
-
if ((0, import_invariant.default)(
|
32
|
-
Array.isArray(ternaries),
|
33
|
-
"extractStaticTernaries expects param 1 to be an array of ternaries"
|
34
|
-
), ternaries.length === 0)
|
84
|
+
if ((0, import_invariant.default)(Array.isArray(ternaries), "extractStaticTernaries expects param 1 to be an array of ternaries"), ternaries.length === 0)
|
35
85
|
return [];
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
86
|
+
for (var ternariesByKey = {}, idx = -1, len = ternaries.length; ++idx < len; ) {
|
87
|
+
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, [
|
88
|
+
"test",
|
89
|
+
"consequent",
|
90
|
+
"alternate",
|
91
|
+
"remove"
|
92
|
+
]), ternaryTest = test;
|
40
93
|
t.isExpressionStatement(test) && (ternaryTest = test.expression);
|
41
|
-
|
42
|
-
t.isUnaryExpression(test) && test.operator === "!" ? (ternaryTest = test.argument, shouldSwap = !0) : t.isBinaryExpression(test) && (test.operator === "!==" || test.operator === "!=") && (ternaryTest = t.binaryExpression(
|
43
|
-
|
44
|
-
|
45
|
-
test.right
|
46
|
-
), shouldSwap = !0);
|
47
|
-
const key = (0, import_generator.default)(ternaryTest).code;
|
48
|
-
ternariesByKey[key] || (ternariesByKey[key] = {
|
49
|
-
...rest,
|
94
|
+
var shouldSwap = !1;
|
95
|
+
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);
|
96
|
+
var key = (0, import_generator.default)(ternaryTest).code;
|
97
|
+
ternariesByKey[key] || (ternariesByKey[key] = _object_spread_props(_object_spread({}, rest), {
|
50
98
|
alternate: {},
|
51
99
|
consequent: {},
|
52
100
|
test: ternaryTest,
|
53
101
|
remove
|
54
|
-
});
|
55
|
-
|
102
|
+
}));
|
103
|
+
var _ref, altStyle = (_ref = shouldSwap ? consequent : alternate) !== null && _ref !== void 0 ? _ref : {}, _ref1, consStyle = (_ref1 = shouldSwap ? alternate : consequent) !== null && _ref1 !== void 0 ? _ref1 : {};
|
56
104
|
Object.assign(ternariesByKey[key].alternate, altStyle), Object.assign(ternariesByKey[key].consequent, consStyle);
|
57
105
|
}
|
58
|
-
|
106
|
+
var ternaryExpression = Object.keys(ternariesByKey).map(function(key2) {
|
107
|
+
return ternariesByKey[key2];
|
108
|
+
});
|
109
|
+
return ternaryExpression;
|
59
110
|
}
|
60
111
|
// Annotate the CommonJS export names for ESM import in node:
|
61
112
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/normalizeTernaries.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["invariant", "generate"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/normalizeTernaries.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAqB,sCACrB,IAAmB,kCACnB,mBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIf,SAASA,mBAAmBC,WAAoB;AAMrD,UALAC,iBAAAA,SACEC,MAAMC,QAAQH,SAAAA,GACd,oEAAA,GAGEA,UAAUI,WAAW;AACvB,WAAO,CAAA;AAKT,WAFMC,iBAA6C,CAAC,GAE3CC,MAAM,IAAIC,MAAMP,UAAUI,QAAQ,EAAEE,MAAMC,OAAO;AACxD,QAAyDP,iBAAAA,UAAUM,GAAAA,GAA3DE,OAAiDR,eAAjDQ,MAAMC,aAA2CT,eAA3CS,YAAYC,YAA+BV,eAA/BU,WAAWC,SAAoBX,eAApBW,QAAWC,OAAAA,2BAASZ,gBAAAA;MAAjDQ;MAAMC;MAAYC;MAAWC;QAEjCE,cAAcL;AAGlB,IAAIM,EAAEC,sBAAsBP,IAAAA,MAC1BK,cAAeL,KAAaQ;AAI9B,QAAIC,aAAa;AACjB,IAAIH,EAAEI,kBAAkBV,IAAAA,KAASA,KAAKW,aAAa,OACjDN,cAAcL,KAAKY,UACnBH,aAAa,MACJH,EAAEO,mBAAmBb,IAAAA,MAC1BA,KAAKW,aAAa,SAASX,KAAKW,aAAa,UAC/CN,cAAcC,EAAEQ,iBACdd,KAAKW,SAASI,QAAQ,KAAK,GAAA,GAC3Bf,KAAKgB,MACLhB,KAAKiB,KAAK,GAEZR,aAAa;AAKjB,QAAMS,UAAMC,iBAAAA,SAASd,WAAAA,EAAoBe;AAEzC,IAAKvB,eAAeqB,GAAAA,MAClBrB,eAAeqB,GAAAA,IAAO,qBAAA,eAAA,CAAA,GACjBd,IAAAA,GAAAA;MACHF,WAAW,CAAC;MACZD,YAAY,CAAC;MACbD,MAAMK;MACNF;;QAGcM,MAAZY,YAAYZ,OAAAA,aAAaR,aAAaC,eAAAA,QAA1BO,SAAAA,SAAAA,OAAwC,CAAC,GACxCA,OAAba,aAAab,QAAAA,aAAaP,YAAYD,gBAAAA,QAAzBQ,UAAAA,SAAAA,QAAwC,CAAC;AAC5Dc,WAAOC,OAAO3B,eAAeqB,GAAAA,EAAKhB,WAAYmB,QAAAA,GAC9CE,OAAOC,OAAO3B,eAAeqB,GAAAA,EAAKjB,YAAaqB,SAAAA;EACjD;AAEA,MAAMG,oBAAoBF,OAAOG,KAAK7B,cAAAA,EAAgB8B,IAAI,SAACT,MAAAA;AACzD,WAAOrB,eAAeqB,IAAAA;EACxB,CAAA;AAEA,SAAOO;AACT;",
|
5
|
+
"names": ["normalizeTernaries", "ternaries", "invariant", "Array", "isArray", "length", "ternariesByKey", "idx", "len", "test", "consequent", "alternate", "remove", "rest", "ternaryTest", "t", "isExpressionStatement", "expression", "shouldSwap", "isUnaryExpression", "operator", "argument", "isBinaryExpression", "binaryExpression", "replace", "left", "right", "key", "generate", "code", "altStyle", "consStyle", "Object", "assign", "ternaryExpression", "keys", "map"]
|
6
6
|
}
|
@@ -20,7 +20,7 @@ __export(propsToFontFamilyCache_exports, {
|
|
20
20
|
setPropsToFontFamily: () => setPropsToFontFamily
|
21
21
|
});
|
22
22
|
module.exports = __toCommonJS(propsToFontFamilyCache_exports);
|
23
|
-
|
23
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
24
24
|
function setPropsToFontFamily(props, ff) {
|
25
25
|
cache.set(props, ff);
|
26
26
|
}
|
@@ -28,9 +28,9 @@ function getPropsToFontFamily(props) {
|
|
28
28
|
return cache.get(props);
|
29
29
|
}
|
30
30
|
function getFontFamilyClassNameFromProps(props) {
|
31
|
-
|
31
|
+
var ff = getPropsToFontFamily(props);
|
32
32
|
if (ff)
|
33
|
-
return
|
33
|
+
return " font_".concat(ff.replace("$", ""));
|
34
34
|
}
|
35
35
|
// Annotate the CommonJS export names for ESM import in node:
|
36
36
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/propsToFontFamilyCache.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/propsToFontFamilyCache.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;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
|
}
|
@@ -26,52 +26,85 @@ __export(removeUnusedHooks_exports, {
|
|
26
26
|
removeUnusedHooks: () => removeUnusedHooks
|
27
27
|
});
|
28
28
|
module.exports = __toCommonJS(removeUnusedHooks_exports);
|
29
|
-
var t = __toESM(require("@babel/types"))
|
30
|
-
const hooks = {
|
29
|
+
var t = __toESM(require("@babel/types")), hooks = {
|
31
30
|
useMedia: !0,
|
32
31
|
useTheme: !0
|
33
32
|
};
|
34
33
|
function removeUnusedHooks(compFn, shouldPrintDebug) {
|
35
34
|
compFn.scope.crawl();
|
36
|
-
|
35
|
+
var bodyStatements = compFn == null ? void 0 : compFn.get("body");
|
37
36
|
if (!bodyStatements) {
|
38
37
|
console.info("no body statemnts?", compFn);
|
39
38
|
return;
|
40
39
|
}
|
41
|
-
if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !bodyStatements || !Array.isArray(bodyStatements))
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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())
|
71
|
+
return !1;
|
72
|
+
var value = prop.get("value");
|
73
|
+
if (Array.isArray(value) || !value.isIdentifier())
|
74
|
+
return !1;
|
75
|
+
var name2 = value.node.name;
|
76
|
+
return !isBindingReferenced(name2);
|
77
|
+
});
|
78
|
+
}
|
79
|
+
return !1;
|
80
|
+
}();
|
81
|
+
if (shouldRemove && (declarator.remove(), shouldPrintDebug)) {
|
82
|
+
var _id_node_name;
|
83
|
+
console.info(" [\u{1FA9D}] removed ".concat((_id_node_name = id.node.name) !== null && _id_node_name !== void 0 ? _id_node_name : ""));
|
84
|
+
}
|
85
|
+
}, _iterator2 = declarations[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
|
86
|
+
_loop2();
|
87
|
+
} catch (err) {
|
88
|
+
_didIteratorError2 = !0, _iteratorError2 = err;
|
89
|
+
} finally {
|
90
|
+
try {
|
91
|
+
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
92
|
+
} finally {
|
93
|
+
if (_didIteratorError2)
|
94
|
+
throw _iteratorError2;
|
95
|
+
}
|
64
96
|
}
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
97
|
+
}, _iterator = statements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
98
|
+
_loop();
|
99
|
+
} catch (err) {
|
100
|
+
_didIteratorError = !0, _iteratorError = err;
|
101
|
+
} finally {
|
102
|
+
try {
|
103
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
104
|
+
} finally {
|
105
|
+
if (_didIteratorError)
|
106
|
+
throw _iteratorError;
|
107
|
+
}
|
75
108
|
}
|
76
109
|
}
|
77
110
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/removeUnusedHooks.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/removeUnusedHooks.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AACA;;;;;QAAmB,kCAEbA,QAAQ;EACZC,UAAU;EACVC,UAAU;AACZ;AAEO,SAASC,kBACdC,QACAC,kBAAqC;AAErCD,SAAOE,MAAMC,MAAK;AAElB,MAAIC,iBAAiBJ,UAAAA,OAAAA,SAAAA,OAAQK,IAAI,MAAA;AACjC,MAAI,CAACD,gBAAgB;AACnBE,YAAQC,KAAK,sBAAsBP,MAAAA;AACnC;EACF;AAQA,MAPKQ,MAAMC,QAAQL,cAAAA,MACbA,eAAeM,qBAAoB,IACrCN,iBAAiBA,eAAeF,MAAMS,KAAKN,IAAI,MAAA,IAE/CD,iBAAiBA,eAAeC,IAAI,MAAA,IAGpC,GAACD,kBAAkB,CAACI,MAAMC,QAAQL,cAAAA,IAGtC;QAAMQ,aAAaR,gBACd,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL;AAAK,YAAMS,YAAN,MAAA;AACH,YAAI,CAACA,UAAUC,sBAAqB;AAClC,iBAAA;AAEF,YAAMC,eAAeF,UAAUR,IAAI,cAAA;AACnC,YAAI,CAACG,MAAMC,QAAQM,YAAAA;AACjB,iBAAA;AAEF,YAAMC,sBAAsB,SAACC,MAAAA;cACl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EAAA,CAAA;YACpD;UAEJ,GAvCKgB,aAAoBzB,aAAAA,OAAAA,QAAAA,EAAAA,GAApB,QAAA,EAAAK,8BAAA,SAAAoB,WAAA,KAAA,GAAA,OAAApB,6BAAA;AAAA,YAAAqB,OAAA;;AAAA,UAAApB,qBAAA,IAAAC,kBAAA;;;aAAAF,8BAAAoB,WAAA,UAAA,QAAAA,WAAA,OAAA;;gBAAAnB;oBAAAC;;;MAwCP,GAnDK,YAAmBV,WAAAA,OAAAA,QAAAA,EAAAA,GAAnB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA;AAAA,cAAA;;AAAA,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;;AAoDP;",
|
5
|
+
"names": ["hooks", "useMedia", "useTheme", "removeUnusedHooks", "compFn", "shouldPrintDebug", "scope", "crawl", "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", "t", "isCallExpression", "isIdentifier", "callee", "isObjectPattern", "propPaths", "every", "prop", "isObjectProperty", "value", "remove", "_iterator", "_loop"]
|
6
6
|
}
|
@@ -18,20 +18,21 @@ __export(timer_exports, {
|
|
18
18
|
timer: () => timer
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(timer_exports);
|
21
|
-
|
22
|
-
|
23
|
-
let last = start;
|
21
|
+
var timer = function() {
|
22
|
+
var start = Date.now(), last = start;
|
24
23
|
return {
|
25
|
-
mark: (name
|
24
|
+
mark: function(name) {
|
25
|
+
var print = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
26
26
|
if (print) {
|
27
|
-
|
28
|
-
last = Date.now(), console.info(
|
27
|
+
var took = Date.now() - last;
|
28
|
+
last = Date.now(), console.info("Time ".concat(name, ": ").concat(took, "ms")), took > 10 && console.info(" long timer");
|
29
29
|
}
|
30
30
|
},
|
31
|
-
done: (
|
31
|
+
done: function() {
|
32
|
+
var print = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
32
33
|
if (print) {
|
33
|
-
|
34
|
-
console.info(
|
34
|
+
var total = Date.now() - start;
|
35
|
+
console.info("Total time: ".concat(total, "ms")), total > 50 && console.info(" long timer");
|
35
36
|
}
|
36
37
|
}
|
37
38
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/timer.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/timer.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;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
|
}
|
@@ -18,7 +18,7 @@ __export(validHTMLAttributes_exports, {
|
|
18
18
|
validHTMLAttributes: () => validHTMLAttributes
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(validHTMLAttributes_exports);
|
21
|
-
|
21
|
+
var validHTMLAttributes = {
|
22
22
|
autocomplete: !0,
|
23
23
|
border: !0,
|
24
24
|
contenteditable: !0,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/validHTMLAttributes.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/validHTMLAttributes.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;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
|
}
|
@@ -18,21 +18,16 @@ __export(getPragmaOptions_exports, {
|
|
18
18
|
getPragmaOptions: () => getPragmaOptions
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(getPragmaOptions_exports);
|
21
|
-
function getPragmaOptions({
|
22
|
-
source,
|
23
|
-
path,
|
24
|
-
disableCommentCheck
|
25
|
-
}) {
|
26
|
-
var _a, _b;
|
21
|
+
function getPragmaOptions(param) {
|
22
|
+
var source = param.source, path = param.path, disableCommentCheck = param.disableCommentCheck, _process_env_DEBUG, _process_env_DEBUG1;
|
27
23
|
if (!disableCommentCheck && !source.startsWith("//") && !source.startsWith("/*"))
|
28
24
|
return {
|
29
25
|
shouldPrintDebug: !1,
|
30
26
|
shouldDisable: !1
|
31
27
|
};
|
32
|
-
|
33
|
-
const firstLine = source.slice(0, 800).split(`
|
28
|
+
var shouldPrintDebug = !1, shouldDisable = !1, firstLine = source.slice(0, 800).split(`
|
34
29
|
`)[0];
|
35
|
-
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"), (
|
30
|
+
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"), {
|
36
31
|
shouldPrintDebug,
|
37
32
|
shouldDisable
|
38
33
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../src/getPragmaOptions.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/static/src/getPragmaOptions.ts"],
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;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
|
}
|
@@ -21,11 +21,13 @@ module.exports = __toCommonJS(memoize_exports);
|
|
21
21
|
function memoize(func, resolver) {
|
22
22
|
if (typeof func != "function" || resolver != null && typeof resolver != "function")
|
23
23
|
throw new TypeError("Expected a function");
|
24
|
-
|
25
|
-
|
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;
|
26
28
|
if (cache.has(key))
|
27
29
|
return cache.get(key);
|
28
|
-
|
30
|
+
var result = func.apply(this, args);
|
29
31
|
return memoized.cache = cache.set(key, result) || cache, result;
|
30
32
|
};
|
31
33
|
return memoized.cache = new (memoize.Cache || Map)(), memoized;
|