@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/bundleConfig.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": ["forceExports"]
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/bundleConfig.ts"],
|
4
|
+
"mappings": "AAAA,SAASA,oBAAoB;AAC7B,SAASC,UAAUC,SAASC,SAASC,MAAMC,UAAUC,WAAW;AAEhE,OAAOC,cAAc;AACrB,OAAOC,cAAc;AACrB,YAAYC,OAAO;AACnB,SAASC,OAAOC,gBAAgB;AAEhC,OAAOC,aAAa;AACpB,SAASC,WAAWC,YAAYC,qBAAqB;AAErD,SAASC,iBAAiBC,wBAAwB;AAElD,SAASC,kBAAkB;AAC3B,SAASC,QAAQC,2BAA2B;AAC5C,SAASC,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBtD,IAAMC,WAAW;EACf;EACA;EACA;EACA;EACA;GAGIC,sBAAsB;EAC1BC,QAAQ;IACNC,SAAU,GAAyC,OAAvCC,QAAQC,IAAIC,aAAa,aAAA;EACvC;AACF,GAEaC,iBAAiB,eAAA;EAC5BC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,U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"names": ["readFileSync", "basename", "dirname", "extname", "join", "relative", "sep", "generate", "traverse", "t", "Color", "colorLog", "esbuild", "ensureDir", "removeSync", "writeFileSync", "registerRequire", "setRequireResult", "babelParse", "bundle", "esbuildLoaderConfig", "getTamaguiConfigPathFromOptionsConfig", "external", "esbuildExtraOptions", "define", "__DEV__", "process", "env", "NODE_ENV", "esbuildOptions", "target", "format", "jsx", "platform", "currentBundle", "isBundling", "lastBundle", "waitForBundle", "Set", "hasBundledConfigChanged", "getBundledConfig", "props", "rebuild", "Promise", "res", "add", "bundleConfig", "configEntry", "tmpDir", "configOutPath", "baseComponents", "componentOutPaths", "start", "out", "unregister", "config", "components", "component", "err", "cwd", "filter", "x", "map", "componentModule", "split", "replace", "DEBUG", "startsWith", "console", "info", "disableInitialBuild", "Date", "now", "all", "entryPoints", "outfile", "i", "resolvePlatformSpecificEntries", "FgYellow", "Dim", "p", "require", "default", "tokens", "Error", "loadComponents", "moduleName", "indexOf", "includes", "IS_TAMAGUI_DEV", "warn", "JSON", "stringify", "nameToPaths", "tamaguiConfig", "error", "message", "stack", "forEach", "cb", "clear", "forceExports", "coreComponents", "getCoreComponents", "otherComponents", "loadComponentsInner", "loaded", "componentsModules", "key", "cacheComponents", "proxyWormImports", "flatMap", "name", "attemptLoad", "isDynamic", "writtenContents", "transformAddExports", "esbuildit", "fileContents", "loadModule", "buildSync", "alias", "packages", "allowOverwrite", "sourcemap", "loader", "resolve", "moduleResult", "nameToInfo", "getComponentStaticConfigByName", "interopDefaultExport", "extension", "isLocal", "Boolean", "didBabel", "dispose", "TAMAGUI_ENABLE_WARN_DYNAMIC_LOAD", "src", "transformSync", "code", "exported", "Array", "isArray", "found", "getTamaguiComponent", "staticConfig", "Component", "sc", "toUpperCase", "mod", "ast", "usedNames", "ExportNamedDeclaration", "nodePath", "node", "specifiers", "spec", "isIdentifier", "value", "VariableDeclaration", "isProgram", "parent", "decs", "declarations", "length", "dec", "id", "init", "has", "replaceWith", "exportNamedDeclaration", "variableDeclaration", "exportSpecifier", "identifier", "concise", "filename", "retainLines", "sourceMaps"]
|
6
6
|
}
|
@@ -4,23 +4,21 @@ import * as t from "@babel/types";
|
|
4
4
|
import esbuild from "esbuild";
|
5
5
|
import { FAILED_EVAL } from "../constants";
|
6
6
|
import { evaluateAstNode } from "./evaluateAstNode";
|
7
|
-
function createEvaluator({
|
8
|
-
props,
|
9
|
-
staticNamespace,
|
10
|
-
sourcePath,
|
11
|
-
traversePath,
|
12
|
-
shouldPrintDebug
|
13
|
-
}) {
|
14
|
-
const evalFn = (n) => {
|
7
|
+
function createEvaluator(param) {
|
8
|
+
var props = param.props, staticNamespace = param.staticNamespace, sourcePath = param.sourcePath, traversePath = param.traversePath, shouldPrintDebug = param.shouldPrintDebug, evalFn = function(n) {
|
15
9
|
if (t.isIdentifier(n) && typeof staticNamespace[n.name] < "u")
|
16
10
|
return staticNamespace[n.name];
|
17
|
-
|
11
|
+
var evalContext = vm.createContext(staticNamespace), codeWithTypescriptAnnotations = "(".concat(generate(n).code, ")"), code = esbuild.transformSync(codeWithTypescriptAnnotations, {
|
12
|
+
loader: "tsx"
|
13
|
+
}).code.replace(/;\n$/, "");
|
18
14
|
return shouldPrintDebug && console.info("evaluating", code), vm.runInContext(code, evalContext);
|
19
15
|
};
|
20
|
-
return (n)
|
16
|
+
return function(n) {
|
17
|
+
return evaluateAstNode(n, evalFn);
|
18
|
+
};
|
21
19
|
}
|
22
20
|
function createSafeEvaluator(attemptEval) {
|
23
|
-
return (n)
|
21
|
+
return function(n) {
|
24
22
|
try {
|
25
23
|
return attemptEval(n);
|
26
24
|
} catch {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../../../src/extractor/createEvaluator.ts"],
|
4
|
-
"mappings": "AAAA,
|
5
|
-
"names": []
|
3
|
+
"sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/createEvaluator.ts"],
|
4
|
+
"mappings": "AAAA,OAAOA,QAAQ;AAEf,OAAOC,cAAc;AAErB,YAAYC,OAAO;AACnB,OAAOC,aAAa;AAEpB,SAASC,mBAAmB;AAE5B,SAASC,uBAAuB;AAEzB,SAASC,gBAAgB,OAY/B;MAXCC,QAD8B,MAC9BA,OACAC,kBAF8B,MAE9BA,iBACAC,aAH8B,MAG9BA,YACAC,eAJ8B,MAI9BA,cACAC,mBAL8B,MAK9BA,kBASMC,SAAS,SAACC,GAAAA;AAEd,QAAIX,EAAEY,aAAaD,CAAAA,KAAM,OAAOL,gBAAgBK,EAAEE,IAAI,IAAM;AAC1D,aAAOP,gBAAgBK,EAAEE,IAAI;AAE/B,QAAMC,cAAchB,GAAGiB,cAAcT,eAAAA,GAE/BU,gCAAiC,IAA2B,OAAxBjB,SAASY,CAAAA,EAAUM,MAAK,GAAA,GAC5DA,OAAOhB,QACViB,cAAcF,+BAA+B;MAAEG,QAAQ;IAAM,CAAA,EAC7DF,KAAKG,QAAQ,QAAQ,EAAA;AAExB,WAAIX,oBACFY,QAAQC,KAAK,cAAcL,IAAAA,GAEtBnB,GAAGyB,aAAaN,MAAMH,WAAAA;EAC/B;AAEA,SAAO,SAACH,GAAAA;AACN,WAAOR,gBAAgBQ,GAAGD,MAAAA;EAC5B;AACF;AAEO,SAASc,oBAAoBC,aAA+B;AACjE,SAAO,SAACd,GAAAA;AACN,QAAI;AACF,aAAOc,YAAYd,CAAAA;IACrB,QAAc;AACZ,aAAOT;IACT;EACF;AACF;",
|
5
|
+
"names": ["vm", "generate", "t", "esbuild", "FAILED_EVAL", "evaluateAstNode", "createEvaluator", "props", "staticNamespace", "sourcePath", "traversePath", "shouldPrintDebug", "evalFn", "n", "isIdentifier", "name", "evalContext", "createContext", "codeWithTypescriptAnnotations", "code", "transformSync", "loader", "replace", "console", "info", "runInContext", "createSafeEvaluator", "attemptEval"]
|
6
6
|
}
|