@tamagui/static 1.88.21 → 1.88.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/constants.native.js +4 -37
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/extractor/accessSafe.native.js +3 -32
- package/dist/esm/extractor/accessSafe.native.js.map +1 -1
- package/dist/esm/extractor/babelParse.native.js +3 -33
- package/dist/esm/extractor/babelParse.native.js.map +1 -1
- package/dist/esm/extractor/buildClassName.native.js +3 -33
- package/dist/esm/extractor/buildClassName.native.js.map +1 -1
- package/dist/esm/extractor/bundle.native.js +14 -39
- package/dist/esm/extractor/bundle.native.js.map +2 -2
- package/dist/esm/extractor/bundleConfig.native.js +36 -59
- package/dist/esm/extractor/bundleConfig.native.js.map +2 -2
- package/dist/esm/extractor/createEvaluator.native.js +12 -37
- package/dist/esm/extractor/createEvaluator.native.js.map +2 -2
- package/dist/esm/extractor/createExtractor.native.js +86 -87
- package/dist/esm/extractor/createExtractor.native.js.map +2 -2
- package/dist/esm/extractor/ensureImportingConcat.native.js +3 -32
- package/dist/esm/extractor/ensureImportingConcat.native.js.map +1 -1
- package/dist/esm/extractor/esbuildAliasPlugin.native.js +2 -23
- package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +1 -1
- package/dist/esm/extractor/evaluateAstNode.native.js +3 -32
- package/dist/esm/extractor/evaluateAstNode.native.js.map +1 -1
- package/dist/esm/extractor/extractHelpers.native.js +11 -49
- package/dist/esm/extractor/extractHelpers.native.js.map +2 -2
- package/dist/esm/extractor/extractMediaStyle.native.js +10 -37
- package/dist/esm/extractor/extractMediaStyle.native.js.map +1 -1
- package/dist/esm/extractor/extractToClassNames.native.js +30 -43
- package/dist/esm/extractor/extractToClassNames.native.js.map +2 -2
- package/dist/esm/extractor/findTopmostFunction.native.js +2 -23
- package/dist/esm/extractor/findTopmostFunction.native.js.map +1 -1
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +18 -45
- package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
- package/dist/esm/extractor/generatedUid.native.js +3 -32
- package/dist/esm/extractor/generatedUid.native.js.map +1 -1
- package/dist/esm/extractor/getPrefixLogs.native.js +2 -23
- package/dist/esm/extractor/getPrefixLogs.native.js.map +1 -1
- package/dist/esm/extractor/getPropValueFromAttributes.native.js +7 -34
- package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +2 -2
- package/dist/esm/extractor/getSourceModule.native.js +3 -32
- package/dist/esm/extractor/getSourceModule.native.js.map +1 -1
- package/dist/esm/extractor/getStaticBindingsForScope.native.js +13 -39
- package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js +4 -25
- package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +1 -1
- package/dist/esm/extractor/hoistClassNames.native.js +3 -32
- package/dist/esm/extractor/hoistClassNames.native.js.map +1 -1
- package/dist/esm/extractor/literalToAst.native.js +3 -33
- package/dist/esm/extractor/literalToAst.native.js.map +1 -1
- package/dist/esm/extractor/loadFile.native.js +0 -1
- package/dist/esm/extractor/loadFile.native.js.map +1 -1
- package/dist/esm/extractor/loadTamagui.native.js +60 -73
- package/dist/esm/extractor/loadTamagui.native.js.map +2 -2
- package/dist/esm/extractor/logLines.native.js +2 -23
- package/dist/esm/extractor/logLines.native.js.map +1 -1
- package/dist/esm/extractor/normalizeTernaries.native.js +7 -34
- package/dist/esm/extractor/normalizeTernaries.native.js.map +2 -2
- package/dist/esm/extractor/propsToFontFamilyCache.native.js +2 -25
- package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +1 -1
- package/dist/esm/extractor/removeUnusedHooks.native.js +3 -32
- package/dist/esm/extractor/removeUnusedHooks.native.js.map +1 -1
- package/dist/esm/extractor/timer.native.js +2 -23
- package/dist/esm/extractor/timer.native.js.map +1 -1
- package/dist/esm/extractor/validHTMLAttributes.native.js +2 -23
- package/dist/esm/extractor/validHTMLAttributes.native.js.map +1 -1
- package/dist/esm/getPragmaOptions.native.js +2 -23
- package/dist/esm/getPragmaOptions.native.js.map +1 -1
- package/dist/esm/helpers/memoize.native.js +2 -23
- package/dist/esm/helpers/memoize.native.js.map +1 -1
- package/dist/esm/helpers/requireTamaguiCore.native.js +2 -23
- package/dist/esm/helpers/requireTamaguiCore.native.js.map +1 -1
- package/dist/esm/index.native.js +3 -22
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/minifyCSS.native.js +6 -34
- package/dist/esm/minifyCSS.native.js.map +2 -2
- package/dist/esm/registerRequire.native.js +6 -28
- package/dist/esm/registerRequire.native.js.map +1 -1
- package/dist/esm/server.native.js +5 -34
- package/dist/esm/server.native.js.map +2 -2
- package/dist/esm/setup.native.js +0 -1
- package/dist/esm/setup.native.js.map +1 -1
- package/dist/esm/static.native.js +12 -39
- package/dist/esm/static.native.js.map +1 -1
- package/dist/esm/types.native.js +0 -14
- package/dist/esm/types.native.js.map +2 -2
- package/dist/esm/webpackPlugin.native.js +2 -23
- package/dist/esm/webpackPlugin.native.js.map +1 -1
- package/package.json +14 -14
@@ -1,42 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
return to;
|
15
|
-
};
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
22
|
-
mod
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
-
var getStaticBindingsForScope_exports = {};
|
25
|
-
__export(getStaticBindingsForScope_exports, {
|
26
|
-
cleanupBeforeExit: () => cleanupBeforeExit,
|
27
|
-
getStaticBindingsForScope: () => getStaticBindingsForScope
|
28
|
-
});
|
29
|
-
module.exports = __toCommonJS(getStaticBindingsForScope_exports);
|
30
|
-
var import_child_process = require("child_process"), import_path = require("path"), t = __toESM(require("@babel/types")), import_evaluateAstNode = require("./evaluateAstNode"), import_getSourceModule = require("./getSourceModule");
|
1
|
+
import { fork } from "child_process";
|
2
|
+
import { dirname, extname, join, resolve } from "path";
|
3
|
+
import * as t from "@babel/types";
|
4
|
+
import { evaluateAstNode } from "./evaluateAstNode";
|
5
|
+
import { getSourceModule } from "./getSourceModule";
|
31
6
|
const isLocalImport = (path) => path.startsWith(".") || path.startsWith("/");
|
32
7
|
function resolveImportPath(sourcePath, path) {
|
33
|
-
const sourceDir =
|
34
|
-
return isLocalImport(path) ? (
|
8
|
+
const sourceDir = dirname(sourcePath);
|
9
|
+
return isLocalImport(path) ? (extname(path) === "" && (path += ".js"), resolve(sourceDir, path)) : path;
|
35
10
|
}
|
36
|
-
const cache = /* @__PURE__ */ new Map(), pending = /* @__PURE__ */ new Map(), loadCmd = `${
|
11
|
+
const cache = /* @__PURE__ */ new Map(), pending = /* @__PURE__ */ new Map(), loadCmd = `${join(__dirname, "loadFile.js")}`;
|
37
12
|
let exited = !1, child = null;
|
38
13
|
function forkChild() {
|
39
|
-
child =
|
14
|
+
child = fork(loadCmd, [], {
|
40
15
|
execArgv: ["-r", "esbuild-register"],
|
41
16
|
detached: !1,
|
42
17
|
stdio: "ignore"
|
@@ -100,7 +75,7 @@ async function getStaticBindingsForScope(scope, whitelist = [], sourcePath, bind
|
|
100
75
|
if (!bindingCache)
|
101
76
|
throw new Error("BindingCache is a required param");
|
102
77
|
for (const k in bindings) {
|
103
|
-
const binding = bindings[k], sourceModule =
|
78
|
+
const binding = bindings[k], sourceModule = getSourceModule(k, binding);
|
104
79
|
if (sourceModule) {
|
105
80
|
if (!sourceModule.sourceModule)
|
106
81
|
continue;
|
@@ -139,16 +114,15 @@ async function getStaticBindingsForScope(scope, whitelist = [], sourcePath, bind
|
|
139
114
|
continue;
|
140
115
|
}
|
141
116
|
try {
|
142
|
-
ret[k] =
|
117
|
+
ret[k] = evaluateAstNode(dec.init, void 0, shouldPrintDebug), bindingCache[cacheKey] = ret[k];
|
143
118
|
continue;
|
144
119
|
} catch {
|
145
120
|
}
|
146
121
|
}
|
147
122
|
return ret;
|
148
123
|
}
|
149
|
-
|
150
|
-
0 && (module.exports = {
|
124
|
+
export {
|
151
125
|
cleanupBeforeExit,
|
152
126
|
getStaticBindingsForScope
|
153
|
-
}
|
127
|
+
};
|
154
128
|
//# sourceMappingURL=getStaticBindingsForScope.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/getStaticBindingsForScope.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AACA,SAAS,YAAY;AACrB,SAAS,SAAS,SAAS,MAAM,eAAe;AAGhD,YAAY,OAAO;AAEnB,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAEhC,MAAM,gBAAgB,CAAC,SAAiB,KAAK,WAAW,GAAG,KAAK,KAAK,WAAW,GAAG;AAEnF,SAAS,kBAAkB,YAAoB,MAAc;AAC3D,QAAM,YAAY,QAAQ,UAAU;AACpC,SAAI,cAAc,IAAI,KAChB,QAAQ,IAAI,MAAM,OACpB,QAAQ,QAEH,QAAQ,WAAW,IAAI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AACT;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,29 +1,8 @@
|
|
1
|
-
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
-
return to;
|
14
|
-
};
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
16
|
-
var getTamaguiConfigPathFromOptionsConfig_exports = {};
|
17
|
-
__export(getTamaguiConfigPathFromOptionsConfig_exports, {
|
18
|
-
getTamaguiConfigPathFromOptionsConfig: () => getTamaguiConfigPathFromOptionsConfig
|
19
|
-
});
|
20
|
-
module.exports = __toCommonJS(getTamaguiConfigPathFromOptionsConfig_exports);
|
21
|
-
var import_path = require("path");
|
1
|
+
import { isAbsolute, join } from "path";
|
22
2
|
function getTamaguiConfigPathFromOptionsConfig(config) {
|
23
|
-
return
|
3
|
+
return isAbsolute(config) ? config : join(process.cwd(), config);
|
24
4
|
}
|
25
|
-
|
26
|
-
0 && (module.exports = {
|
5
|
+
export {
|
27
6
|
getTamaguiConfigPathFromOptionsConfig
|
28
|
-
}
|
7
|
+
};
|
29
8
|
//# sourceMappingURL=getTamaguiConfigPathFromOptionsConfig.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/getTamaguiConfigPathFromOptionsConfig.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AAAA,SAAS,YAAY,YAAY;AAI1B,SAAS,sCACd,QACA;AACA,SAAI,WAAW,MAAM,IACZ,SAGF,KAAK,QAAQ,IAAI,GAAG,MAAM;AACnC;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,32 +1,4 @@
|
|
1
|
-
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
return to;
|
15
|
-
};
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
22
|
-
mod
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
-
var hoistClassNames_exports = {};
|
25
|
-
__export(hoistClassNames_exports, {
|
26
|
-
hoistClassNames: () => hoistClassNames
|
27
|
-
});
|
28
|
-
module.exports = __toCommonJS(hoistClassNames_exports);
|
29
|
-
var t = __toESM(require("@babel/types"));
|
1
|
+
import * as t from "@babel/types";
|
30
2
|
function hoistClassNames(path, existing, expr) {
|
31
3
|
const hoist = hoistClassNames.bind(null, path, existing);
|
32
4
|
if (t.isStringLiteral(expr)) {
|
@@ -59,8 +31,7 @@ function hoistClassNames(path, existing, expr) {
|
|
59
31
|
return parent.unshiftContainer("body", variable), uid;
|
60
32
|
}
|
61
33
|
}
|
62
|
-
|
63
|
-
0 && (module.exports = {
|
34
|
+
export {
|
64
35
|
hoistClassNames
|
65
|
-
}
|
36
|
+
};
|
66
37
|
//# sourceMappingURL=hoistClassNames.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/hoistClassNames.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AACA,YAAY,OAAO;AAEZ,SAAS,gBACd,MACA,UACA,MACA;AACA,QAAM,QAAQ,gBAAgB,KAAK,MAAM,MAAM,QAAQ;AACvD,MAAI,EAAE,gBAAgB,IAAI,GAAG;AAC3B,QAAI,KAAK,MAAM,KAAK,MAAM;AACxB,aAAO;AAET,QAAI,SAAS,KAAK,KAAK;AACrB,aAAO,SAAS,KAAK,KAAK;AAE5B,UAAM,aAAa,0BAA0B,IAAI;AACjD,oBAAS,KAAK,KAAK,IAAI,YAChB;AAAA,EACT;AACA,MAAI,EAAE,mBAAmB,IAAI;AAC3B,WAAO,EAAE,iBAAiB,KAAK,UAAU,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC;AAE9E,MAAI,EAAE,oBAAoB,IAAI;AAC5B,WAAO,EAAE,kBAAkB,KAAK,UAAU,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC;AAE/E,MAAI,EAAE,wBAAwB,IAAI;AAChC,WAAO,EAAE;AAAA,MACP,KAAK;AAAA,MACL,MAAM,KAAK,UAAU;AAAA,MACrB,MAAM,KAAK,SAAS;AAAA,IACtB;AAEF,SAAO;AAEP,WAAS,0BAA0B,KAAoC;AAErE,UAAM,MAAM,KAAK,MAAM,sBAAsB,IAAI,GAC3C,SAAS,KAAK,WAAW,CAACA,UAASA,MAAK,UAAU,CAAC;AACzD,QAAI,CAAC;AAAQ,YAAM,IAAI,MAAM,aAAa;AAC1C,UAAM,WAAW,EAAE,oBAAoB,SAAS;AAAA;AAAA,MAE9C,EAAE,mBAAmB,KAAK,EAAE,cAAc,IAAI,IAAI,KAAK,EAAE,CAAC;AAAA,IAC5D,CAAC;AAED,kBAAO,iBAAiB,QAAQ,QAAQ,GACjC;AAAA,EACT;AACF;",
|
5
5
|
"names": ["path"]
|
6
6
|
}
|
@@ -1,33 +1,4 @@
|
|
1
|
-
|
2
|
-
var __create = Object.create;
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
return to;
|
15
|
-
};
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
22
|
-
mod
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
-
var literalToAst_exports = {};
|
25
|
-
__export(literalToAst_exports, {
|
26
|
-
astToLiteral: () => astToLiteral,
|
27
|
-
literalToAst: () => literalToAst
|
28
|
-
});
|
29
|
-
module.exports = __toCommonJS(literalToAst_exports);
|
30
|
-
var t = __toESM(require("@babel/types"));
|
1
|
+
import * as t from "@babel/types";
|
31
2
|
function literalToAst(literal) {
|
32
3
|
if (literal === null)
|
33
4
|
return t.nullLiteral();
|
@@ -88,9 +59,8 @@ function computeProps(props) {
|
|
88
59
|
return acc;
|
89
60
|
}, {});
|
90
61
|
}
|
91
|
-
|
92
|
-
0 && (module.exports = {
|
62
|
+
export {
|
93
63
|
astToLiteral,
|
94
64
|
literalToAst
|
95
|
-
}
|
65
|
+
};
|
96
66
|
//# sourceMappingURL=literalToAst.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/literalToAst.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AAAA,YAAY,OAAO;AAEZ,SAAS,aAAa,SAA4B;AACvD,MAAI,YAAY;AACd,WAAO,EAAE,YAAY;AAEvB,UAAQ,OAAO,SAAS;AAAA,IACtB,KAAK;AACH,YAAM,IAAI,MAAM,aAAa;AAAA,IAC/B,KAAK;AACH,aAAO,EAAE,eAAe,OAAO;AAAA,IACjC,KAAK;AACH,aAAO,EAAE,cAAc,OAAO;AAAA,IAChC,KAAK;AACH,aAAO,EAAE,eAAe,OAAO;AAAA,IACjC,KAAK;AACH,aAAO,EAAE,gBAAgB,QAAQ,EAAE,eAAe,CAAC,GAAG,EAAI;AAAA,IAC5D;AACE,aAAI,MAAM,QAAQ,OAAO,IAChB,EAAE,gBAAg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|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/loadFile.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AAAA,QAAQ,GAAG,WAAW,CAAC,SAAS;AAAhC;AACE,MAAI,OAAO,QAAS;AAClB,UAAM,IAAI,MAAM,iBAAiB,IAAI,EAAE;AAEzC,MAAI;AACF,UAAM,MAAM,QAAQ,IAAI;AACxB,kBAAQ,SAAR,yBAAe,KAAK,UAAU,GAAG;AAAA,EACnC,SAAS,KAAK;AACZ,IAAI,eAAe,SACjB,aAAQ,SAAR,yBAAe,IAAI,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,OAE5C,aAAQ,SAAR,yBAAe,IAAI,GAAG;AAAA,EAE1B;AACF,CAAC;AAED,YAAY,MAAM;AAAC,GAAG,GAAI;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,37 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
24
|
-
var loadTamagui_exports = {};
|
25
|
-
__export(loadTamagui_exports, {
|
26
|
-
TamaguiProjectInfo: () => import_bundleConfig.TamaguiProjectInfo,
|
27
|
-
getOptions: () => getOptions,
|
28
|
-
loadTamagui: () => loadTamagui,
|
29
|
-
loadTamaguiSync: () => loadTamaguiSync,
|
30
|
-
resolveWebOrNativeSpecificEntry: () => resolveWebOrNativeSpecificEntry,
|
31
|
-
watchTamaguiConfig: () => watchTamaguiConfig
|
32
|
-
});
|
33
|
-
module.exports = __toCommonJS(loadTamagui_exports);
|
34
|
-
var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_config_default = require("@tamagui/config-default"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
|
1
|
+
import { writeFileSync } from "fs";
|
2
|
+
import { basename, dirname, extname, join, relative, resolve } from "path";
|
3
|
+
import { Color, colorLog } from "@tamagui/cli-color";
|
4
|
+
import { getDefaultTamaguiConfig } from "@tamagui/config-default";
|
5
|
+
import esbuild from "esbuild";
|
6
|
+
import { existsSync, pathExists, readJSON, writeFile } from "fs-extra";
|
7
|
+
import { SHOULD_DEBUG } from "../constants";
|
8
|
+
import { requireTamaguiCore } from "../helpers/requireTamaguiCore";
|
9
|
+
import { minifyCSS } from "../minifyCSS";
|
10
|
+
import { getNameToPaths, registerRequire } from "../registerRequire";
|
11
|
+
import {
|
12
|
+
TamaguiProjectInfo,
|
13
|
+
getBundledConfig,
|
14
|
+
hasBundledConfigChanged,
|
15
|
+
loadComponents
|
16
|
+
} from "./bundleConfig";
|
17
|
+
import {
|
18
|
+
generateTamaguiStudioConfig,
|
19
|
+
generateTamaguiStudioConfigSync,
|
20
|
+
generateTamaguiThemes
|
21
|
+
} from "./generateTamaguiStudioConfig";
|
22
|
+
import { getTamaguiConfigPathFromOptionsConfig } from "./getTamaguiConfigPathFromOptionsConfig";
|
35
23
|
const getFilledOptions = (propsIn) => ({
|
36
24
|
// defaults
|
37
25
|
platform: "native",
|
@@ -40,34 +28,34 @@ const getFilledOptions = (propsIn) => ({
|
|
40
28
|
...propsIn
|
41
29
|
});
|
42
30
|
async function loadTamagui(propsIn) {
|
43
|
-
const props = getFilledOptions(propsIn), bundleInfo = await
|
31
|
+
const props = getFilledOptions(propsIn), bundleInfo = await getBundledConfig(props);
|
44
32
|
if (!bundleInfo)
|
45
33
|
return console.warn(
|
46
34
|
"No bundled config generated, maybe an error in bundling. Set DEBUG=tamagui and re-run to get logs."
|
47
35
|
), null;
|
48
|
-
if (await generateThemesAndLog(props, !0), !
|
36
|
+
if (await generateThemesAndLog(props, !0), !hasBundledConfigChanged())
|
49
37
|
return bundleInfo;
|
50
38
|
if (bundleInfo) {
|
51
|
-
const { createTamagui } =
|
39
|
+
const { createTamagui } = requireTamaguiCore(props.platform), config = createTamagui(bundleInfo.tamaguiConfig);
|
52
40
|
if (props.outputCSS) {
|
53
|
-
|
41
|
+
colorLog(Color.FgYellow, ` \u27A1 [tamagui] output css: ${props.outputCSS}
|
54
42
|
`);
|
55
|
-
const css = props.disableMinifyCSS === !1 ?
|
56
|
-
await
|
43
|
+
const css = props.disableMinifyCSS === !1 ? minifyCSS(config.getCSS()).code : config.getCSS();
|
44
|
+
await writeFile(props.outputCSS, css);
|
57
45
|
}
|
58
46
|
}
|
59
|
-
return process.env.NODE_ENV === "development" && await
|
47
|
+
return process.env.NODE_ENV === "development" && await generateTamaguiStudioConfig(props, bundleInfo), bundleInfo;
|
60
48
|
}
|
61
49
|
let waiting = !1, hasLoggedOnce = !1;
|
62
50
|
const generateThemesAndLog = async (options, force = !1) => {
|
63
51
|
if (!waiting && options.themeBuilder)
|
64
52
|
try {
|
65
53
|
waiting = !0, await new Promise((res) => setTimeout(res, 30));
|
66
|
-
const didGenerate = await
|
67
|
-
!hasLoggedOnce && didGenerate && (hasLoggedOnce = !0,
|
68
|
-
|
54
|
+
const didGenerate = await generateTamaguiThemes(options, force);
|
55
|
+
!hasLoggedOnce && didGenerate && (hasLoggedOnce = !0, colorLog(
|
56
|
+
Color.FgYellow,
|
69
57
|
`
|
70
|
-
\u27A1 [tamagui] generated themes: ${
|
58
|
+
\u27A1 [tamagui] generated themes: ${relative(
|
71
59
|
process.cwd(),
|
72
60
|
options.themeBuilder.output
|
73
61
|
)}`
|
@@ -82,12 +70,12 @@ function loadTamaguiSync({
|
|
82
70
|
...propsIn
|
83
71
|
}) {
|
84
72
|
const key = JSON.stringify(propsIn);
|
85
|
-
if (last[key] && !
|
73
|
+
if (last[key] && !hasBundledConfigChanged() && (!lastVersion[key] || lastVersion[key] === cacheKey))
|
86
74
|
return last[key];
|
87
75
|
lastVersion[key] = cacheKey || "";
|
88
76
|
const props = getFilledOptions(propsIn);
|
89
77
|
process.env.IS_STATIC = "is_static", process.env.TAMAGUI_IS_SERVER = "true";
|
90
|
-
const { unregister } =
|
78
|
+
const { unregister } = registerRequire(props.platform, {
|
91
79
|
proxyWormImports: !!forceExports
|
92
80
|
});
|
93
81
|
try {
|
@@ -96,7 +84,7 @@ function loadTamaguiSync({
|
|
96
84
|
try {
|
97
85
|
let tamaguiConfig = null;
|
98
86
|
if (propsIn.config) {
|
99
|
-
const configPath =
|
87
|
+
const configPath = getTamaguiConfigPathFromOptionsConfig(propsIn.config), exp = require(configPath);
|
100
88
|
if (tamaguiConfig = exp.default || exp.config || exp, !tamaguiConfig || !tamaguiConfig.parsed) {
|
101
89
|
const confPath = require.resolve(configPath);
|
102
90
|
throw new Error(`Can't find valid config in ${confPath}:
|
@@ -104,44 +92,44 @@ function loadTamaguiSync({
|
|
104
92
|
Be sure you "export default" or "export const config" the config.`);
|
105
93
|
}
|
106
94
|
if (tamaguiConfig) {
|
107
|
-
const { createTamagui } =
|
95
|
+
const { createTamagui } = requireTamaguiCore(props.platform);
|
108
96
|
createTamagui(tamaguiConfig);
|
109
97
|
}
|
110
98
|
}
|
111
|
-
const components =
|
99
|
+
const components = loadComponents(props, forceExports);
|
112
100
|
if (!components)
|
113
101
|
throw new Error("No components loaded");
|
114
102
|
process.env.DEBUG === "tamagui" && console.info("components", components), process.env.IS_STATIC = void 0, globalThis.__DEV__ = devValueOG;
|
115
103
|
const info = {
|
116
104
|
components,
|
117
105
|
tamaguiConfig,
|
118
|
-
nameToPaths:
|
106
|
+
nameToPaths: getNameToPaths()
|
119
107
|
};
|
120
108
|
if (tamaguiConfig) {
|
121
109
|
if (props.outputCSS) {
|
122
|
-
|
110
|
+
colorLog(Color.FgYellow, ` \u27A1 [tamagui] output css: ${props.outputCSS}
|
123
111
|
`);
|
124
|
-
const css = props.disableMinifyCSS === !1 ?
|
125
|
-
|
112
|
+
const css = props.disableMinifyCSS === !1 ? minifyCSS(tamaguiConfig.getCSS()).code : tamaguiConfig.getCSS();
|
113
|
+
writeFileSync(props.outputCSS, css);
|
126
114
|
}
|
127
|
-
|
115
|
+
generateTamaguiStudioConfigSync(props, info);
|
128
116
|
}
|
129
117
|
return last[key] = {
|
130
118
|
...info,
|
131
119
|
cached: !0
|
132
120
|
}, info;
|
133
121
|
} catch (err) {
|
134
|
-
err instanceof Error ? !
|
122
|
+
err instanceof Error ? !SHOULD_DEBUG && !forceExports ? (console.warn(
|
135
123
|
"Error loading tamagui.config.ts (set DEBUG=tamagui to see full stack), running tamagui without custom config"
|
136
124
|
), console.info(`
|
137
125
|
|
138
126
|
${err.message}
|
139
127
|
|
140
|
-
`)) :
|
141
|
-
const { createTamagui } =
|
128
|
+
`)) : SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
|
129
|
+
const { createTamagui } = requireTamaguiCore(props.platform);
|
142
130
|
return {
|
143
131
|
components: [],
|
144
|
-
tamaguiConfig: createTamagui(
|
132
|
+
tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
|
145
133
|
nameToPaths: {}
|
146
134
|
};
|
147
135
|
}
|
@@ -156,10 +144,10 @@ async function getOptions({
|
|
156
144
|
host,
|
157
145
|
debug
|
158
146
|
} = {}) {
|
159
|
-
const dotDir =
|
147
|
+
const dotDir = join(root, ".tamagui");
|
160
148
|
let pkgJson = {};
|
161
149
|
try {
|
162
|
-
pkgJson = await
|
150
|
+
pkgJson = await readJSON(join(root, "package.json"));
|
163
151
|
} catch {
|
164
152
|
}
|
165
153
|
return {
|
@@ -177,25 +165,25 @@ async function getOptions({
|
|
177
165
|
},
|
178
166
|
paths: {
|
179
167
|
dotDir,
|
180
|
-
conf:
|
181
|
-
types:
|
168
|
+
conf: join(dotDir, "tamagui.config.json"),
|
169
|
+
types: join(dotDir, "types.json")
|
182
170
|
}
|
183
171
|
};
|
184
172
|
}
|
185
173
|
function resolveWebOrNativeSpecificEntry(entry) {
|
186
|
-
const workspaceRoot =
|
187
|
-
return
|
174
|
+
const workspaceRoot = resolve(), resolved = require.resolve(entry, { paths: [workspaceRoot] }), ext = extname(resolved), fileName = basename(resolved).replace(ext, ""), specificFile = join(dirname(resolved), fileName + "." + "native" + ext);
|
175
|
+
return existsSync(specificFile) ? specificFile : entry;
|
188
176
|
}
|
189
|
-
const defaultPaths = ["tamagui.config.ts",
|
177
|
+
const defaultPaths = ["tamagui.config.ts", join("src", "tamagui.config.ts")];
|
190
178
|
let hasWarnedOnce = !1;
|
191
179
|
async function getDefaultTamaguiConfigPath(root, configPath) {
|
192
180
|
const searchPaths = [
|
193
181
|
...new Set(
|
194
|
-
[configPath, ...defaultPaths].filter(Boolean).map((p) =>
|
182
|
+
[configPath, ...defaultPaths].filter(Boolean).map((p) => join(root, p))
|
195
183
|
)
|
196
184
|
];
|
197
185
|
for (const path of searchPaths)
|
198
|
-
if (await
|
186
|
+
if (await pathExists(path))
|
199
187
|
return path;
|
200
188
|
hasWarnedOnce || (hasWarnedOnce = !0, console.warn(`Warning: couldn't find tamagui.config.ts in the following paths given configuration "${configPath}":
|
201
189
|
${searchPaths.join(`
|
@@ -215,7 +203,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
|
|
215
203
|
const disposeConfigWatcher = await esbuildWatchFiles(
|
216
204
|
options.tamaguiOptions.config,
|
217
205
|
() => {
|
218
|
-
|
206
|
+
generateTamaguiStudioConfig(options.tamaguiOptions, null, !0);
|
219
207
|
}
|
220
208
|
), themeBuilderInput = (_a = options.tamaguiOptions.themeBuilder) == null ? void 0 : _a.input;
|
221
209
|
let disposeThemesWatcher;
|
@@ -237,7 +225,7 @@ async function watchTamaguiConfig(tamaguiOptions) {
|
|
237
225
|
}
|
238
226
|
async function esbuildWatchFiles(entry, onChanged) {
|
239
227
|
let hasRunOnce = !1;
|
240
|
-
const context = await
|
228
|
+
const context = await esbuild.context({
|
241
229
|
bundle: !0,
|
242
230
|
entryPoints: [entry],
|
243
231
|
resolveExtensions: [".ts", ".tsx", ".js", ".jsx", ".mjs"],
|
@@ -258,13 +246,12 @@ async function esbuildWatchFiles(entry, onChanged) {
|
|
258
246
|
context.dispose();
|
259
247
|
};
|
260
248
|
}
|
261
|
-
|
262
|
-
0 && (module.exports = {
|
249
|
+
export {
|
263
250
|
TamaguiProjectInfo,
|
264
251
|
getOptions,
|
265
252
|
loadTamagui,
|
266
253
|
loadTamaguiSync,
|
267
254
|
resolveWebOrNativeSpecificEntry,
|
268
255
|
watchTamaguiConfig
|
269
|
-
}
|
256
|
+
};
|
270
257
|
//# sourceMappingURL=loadTamagui.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/loadTamagui.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": [
|
4
|
+
"mappings": "AAAA,SAAS,qBAAqB;AAC9B,SAAS,UAAU,SAAS,SAAS,MAAM,UAAU,eAAe;AAEpE,SAAS,OAAO,gBAAgB;AAChC,SAAS,+BAA+B;AAGxC,OAAO,aAAa;AACpB,SAAS,YAAY,YAAY,UAAU,iBAAiB;AAE5D,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,uBAAuB;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6CAA6C;AAEtD,MAAM,mBAAmB,CAAC,aAAsD;AAAA;AAAA,EAE9E,UAAW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AGF,QAAM,uBAAuB,MAAM;AAAA,IACjC,QAAQ,eAAe;AAAA,IACvB,MAAM;AACJ,MAAK,4BAA4B,QAAQ,gBAAgB,MAAM,EAAI;AAAA,IACrE;AAAA,EACF,GAEM,qBAAoB,aAAQ,eAAe,iBAAvB,mBAAqC;AAC/D,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,YAAY;AAChB,QAAI;AACF,kBAAY,QAAQ,QAAQ,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IAER;AACA,2BAAuB,MAAM,kBAAkB,WAAW,MAAM;AAC9D,MAAK,qBAAqB,QAAQ,cAAc;AAAA,IAClD,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL,UAAU;AACR,2BAAqB,GACrB;AAAA,IACF;AAAA,EACF;AACF;AAEA,eAAe,kBAAkB,OAAe,WAAuB;AACrE,MAAI,aAAa;AAOjB,QAAM,UAAU,MAAM,QAAQ,QAAQ;AAAA,IACpC,QAAQ;AAAA,IACR,aAAa,CAAC,KAAK;AAAA,IACnB,mBAAmB,CAAC,OAAO,QAAQ,OAAO,QAAQ,MAAM;AAAA,IACxD,UAAU;AAAA,IACV,OAAO;AAAA,IACP,SAAS;AAAA,MACP;AAAA,QACE,MAAM;AAAA,QACN,MAAM,EAAE,MAAM,GAAG;AACf,gBAAM,MAAM;AACV,YAAK,aAGH,UAAU,IAFV,aAAa;AAAA,UAIjB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAGD,SAAK,QAAQ,MAAM,GAEZ,MAAM;AACX,YAAQ,QAAQ;AAAA,EAClB;AACF;",
|
5
|
+
"names": []
|
6
6
|
}
|
@@ -1,23 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
-
return to;
|
14
|
-
};
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
16
|
-
var logLines_exports = {};
|
17
|
-
__export(logLines_exports, {
|
18
|
-
logLines: () => logLines
|
19
|
-
});
|
20
|
-
module.exports = __toCommonJS(logLines_exports);
|
21
1
|
const prefix = " ", logLines = (str, singleLine = !1) => {
|
22
2
|
if (singleLine)
|
23
3
|
return prefix + str.split(" ").join(`
|
@@ -28,8 +8,7 @@ ${prefix}`);
|
|
28
8
|
return lines.map((line, i) => prefix + (i == 0 ? "" : " ") + line.trim()).join(`
|
29
9
|
`);
|
30
10
|
};
|
31
|
-
|
32
|
-
0 && (module.exports = {
|
11
|
+
export {
|
33
12
|
logLines
|
34
|
-
}
|
13
|
+
};
|
35
14
|
//# sourceMappingURL=logLines.js.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/extractor/logLines.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AAAA,MAAM,SAAS,eAEF,WAAW,CAAC,KAAa,aAAa,OAAU;AAC3D,MAAI;AACF,WAAO,SAAS,IAAI,MAAM,GAAG,EAAE,KAAK;AAAA,EAAK,MAAM,EAAE;AAEnD,QAAM,QAAkB,CAAC,EAAE,GACrB,QAAQ,IAAI,MAAM,GAAG;AAC3B,aAAW,QAAQ;AACjB,IAAI,KAAK,SAAS,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,MACjD,MAAM,KAAK,EAAE,GAEf,MAAM,MAAM,SAAS,CAAC,KAAK,OAAO;AAEpC,SAAO,MAAM,IAAI,CAAC,MAAM,MAAM,UAAU,KAAK,IAAI,KAAK,OAAO,KAAK,KAAK,CAAC,EAAE,KAAK;AAAA,CAAI;AACrF;",
|
5
5
|
"names": []
|
6
6
|
}
|