@tamagui/static 1.135.4 → 1.135.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/check-dep-versions.mjs +268 -0
- package/dist/check-dep-versions.mjs.map +1 -0
- package/dist/checkDeps.mjs +33 -0
- package/dist/checkDeps.mjs.map +1 -0
- package/dist/constants.mjs +50 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/exports.mjs +42 -0
- package/dist/exports.mjs.map +1 -0
- package/dist/extractor/accessSafe.mjs +47 -0
- package/dist/extractor/accessSafe.mjs.map +1 -0
- package/dist/extractor/babelParse.mjs +55 -0
- package/dist/extractor/babelParse.mjs.map +1 -0
- package/dist/extractor/bundle.mjs +149 -0
- package/dist/extractor/bundle.mjs.map +1 -0
- package/dist/extractor/bundleConfig.mjs +331 -0
- package/dist/extractor/bundleConfig.mjs.map +1 -0
- package/dist/extractor/concatClassName.mjs +79 -0
- package/dist/extractor/concatClassName.mjs.map +1 -0
- package/dist/extractor/createEvaluator.mjs +76 -0
- package/dist/extractor/createEvaluator.mjs.map +1 -0
- package/dist/extractor/createExtractor.mjs +976 -0
- package/dist/extractor/createExtractor.mjs.map +1 -0
- package/dist/extractor/createLogger.mjs +46 -0
- package/dist/extractor/createLogger.mjs.map +1 -0
- package/dist/extractor/errors.mjs +27 -0
- package/dist/extractor/errors.mjs.map +1 -0
- package/dist/extractor/esbuildAliasPlugin.mjs +45 -0
- package/dist/extractor/esbuildAliasPlugin.mjs.map +1 -0
- package/dist/extractor/esbuildTsconfigPaths.mjs +85 -0
- package/dist/extractor/esbuildTsconfigPaths.mjs.map +1 -0
- package/dist/extractor/evaluateAstNode.mjs +84 -0
- package/dist/extractor/evaluateAstNode.mjs.map +1 -0
- package/dist/extractor/extractHelpers.mjs +121 -0
- package/dist/extractor/extractHelpers.mjs.map +1 -0
- package/dist/extractor/extractMediaStyle.mjs +129 -0
- package/dist/extractor/extractMediaStyle.mjs.map +1 -0
- package/dist/extractor/extractToClassNames.mjs +304 -0
- package/dist/extractor/extractToClassNames.mjs.map +1 -0
- package/dist/extractor/extractToNative.mjs +262 -0
- package/dist/extractor/extractToNative.mjs.map +1 -0
- package/dist/extractor/findTopmostFunction.mjs +35 -0
- package/dist/extractor/findTopmostFunction.mjs.map +1 -0
- package/dist/extractor/{generatedUid.native.js → generatedUid.mjs} +26 -23
- package/dist/extractor/generatedUid.mjs.map +1 -0
- package/dist/extractor/getPrefixLogs.mjs +30 -0
- package/dist/extractor/getPrefixLogs.mjs.map +1 -0
- package/dist/extractor/getPropValueFromAttributes.mjs +68 -0
- package/dist/extractor/getPropValueFromAttributes.mjs.map +1 -0
- package/dist/extractor/getSourceModule.mjs +65 -0
- package/dist/extractor/getSourceModule.mjs.map +1 -0
- package/dist/extractor/getStaticBindingsForScope.mjs +149 -0
- package/dist/extractor/getStaticBindingsForScope.mjs.map +1 -0
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs +36 -0
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.mjs.map +1 -0
- package/dist/extractor/literalToAst.mjs +85 -0
- package/dist/extractor/literalToAst.mjs.map +1 -0
- package/dist/extractor/loadFile.mjs +12 -0
- package/dist/extractor/loadFile.mjs.map +1 -0
- package/dist/extractor/loadTamagui.mjs +296 -0
- package/dist/extractor/loadTamagui.mjs.map +1 -0
- package/dist/extractor/logLines.mjs +36 -0
- package/dist/extractor/logLines.mjs.map +1 -0
- package/dist/extractor/{normalizeTernaries.native.js → normalizeTernaries.mjs} +45 -31
- package/dist/extractor/normalizeTernaries.mjs.map +1 -0
- package/dist/extractor/propsToFontFamilyCache.mjs +39 -0
- package/dist/extractor/propsToFontFamilyCache.mjs.map +1 -0
- package/dist/extractor/regenerateConfig.mjs +145 -0
- package/dist/extractor/regenerateConfig.mjs.map +1 -0
- package/dist/extractor/removeUnusedHooks.mjs +77 -0
- package/dist/extractor/removeUnusedHooks.mjs.map +1 -0
- package/dist/extractor/timer.mjs +44 -0
- package/dist/extractor/timer.mjs.map +1 -0
- package/dist/extractor/{validHTMLAttributes.native.js → validHTMLAttributes.mjs} +17 -16
- package/dist/extractor/validHTMLAttributes.mjs.map +1 -0
- package/dist/extractor/watchTamaguiConfig.mjs +59 -0
- package/dist/extractor/watchTamaguiConfig.mjs.map +1 -0
- package/dist/getPragmaOptions.mjs +55 -0
- package/dist/getPragmaOptions.mjs.map +1 -0
- package/dist/helpers/memoize.mjs +38 -0
- package/dist/helpers/memoize.mjs.map +1 -0
- package/dist/helpers/requireTamaguiCore.mjs +34 -0
- package/dist/helpers/requireTamaguiCore.mjs.map +1 -0
- package/dist/index.mjs +41 -0
- package/dist/index.mjs.map +1 -0
- package/dist/registerRequire.mjs +107 -0
- package/dist/registerRequire.mjs.map +1 -0
- package/dist/server.mjs +76 -0
- package/dist/server.mjs.map +1 -0
- package/dist/setup.mjs +2 -0
- package/dist/setup.mjs.map +1 -0
- package/dist/{types.native.js → types.mjs} +8 -6
- package/dist/types.mjs.map +1 -0
- package/package.json +19 -21
- package/dist/check-dep-versions.native.js +0 -602
- package/dist/check-dep-versions.native.js.map +0 -6
- package/dist/checkDeps.native.js +0 -34
- package/dist/checkDeps.native.js.map +0 -6
- package/dist/constants.native.js +0 -45
- package/dist/constants.native.js.map +0 -6
- package/dist/exports.native.js +0 -52
- package/dist/exports.native.js.map +0 -6
- package/dist/extractor/accessSafe.native.js +0 -48
- package/dist/extractor/accessSafe.native.js.map +0 -6
- package/dist/extractor/babelParse.native.js +0 -62
- package/dist/extractor/babelParse.native.js.map +0 -6
- package/dist/extractor/bundle.native.js +0 -168
- package/dist/extractor/bundle.native.js.map +0 -6
- package/dist/extractor/bundleConfig.native.js +0 -394
- package/dist/extractor/bundleConfig.native.js.map +0 -6
- package/dist/extractor/concatClassName.native.js +0 -69
- package/dist/extractor/concatClassName.native.js.map +0 -6
- package/dist/extractor/createEvaluator.native.js +0 -63
- package/dist/extractor/createEvaluator.native.js.map +0 -6
- package/dist/extractor/createExtractor.native.js +0 -1229
- package/dist/extractor/createExtractor.native.js.map +0 -6
- package/dist/extractor/createLogger.native.js +0 -35
- package/dist/extractor/createLogger.native.js.map +0 -6
- package/dist/extractor/errors.native.js +0 -119
- package/dist/extractor/errors.native.js.map +0 -6
- package/dist/extractor/esbuildAliasPlugin.native.js +0 -52
- package/dist/extractor/esbuildAliasPlugin.native.js.map +0 -6
- package/dist/extractor/esbuildTsconfigPaths.native.js +0 -79
- package/dist/extractor/esbuildTsconfigPaths.native.js.map +0 -6
- package/dist/extractor/evaluateAstNode.native.js +0 -98
- package/dist/extractor/evaluateAstNode.native.js.map +0 -6
- package/dist/extractor/extractHelpers.native.js +0 -183
- package/dist/extractor/extractHelpers.native.js.map +0 -6
- package/dist/extractor/extractMediaStyle.native.js +0 -138
- package/dist/extractor/extractMediaStyle.native.js.map +0 -6
- package/dist/extractor/extractToClassNames.native.js +0 -332
- package/dist/extractor/extractToClassNames.native.js.map +0 -6
- package/dist/extractor/extractToNative.native.js +0 -276
- package/dist/extractor/extractToNative.native.js.map +0 -6
- package/dist/extractor/findTopmostFunction.native.js +0 -37
- package/dist/extractor/findTopmostFunction.native.js.map +0 -6
- package/dist/extractor/generatedUid.native.js.map +0 -6
- package/dist/extractor/getPrefixLogs.native.js +0 -30
- package/dist/extractor/getPrefixLogs.native.js.map +0 -6
- package/dist/extractor/getPropValueFromAttributes.native.js +0 -68
- package/dist/extractor/getPropValueFromAttributes.native.js.map +0 -6
- package/dist/extractor/getSourceModule.native.js +0 -80
- package/dist/extractor/getSourceModule.native.js.map +0 -6
- package/dist/extractor/getStaticBindingsForScope.native.js +0 -183
- package/dist/extractor/getStaticBindingsForScope.native.js.map +0 -6
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js +0 -37
- package/dist/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +0 -6
- package/dist/extractor/literalToAst.native.js +0 -106
- package/dist/extractor/literalToAst.native.js.map +0 -6
- package/dist/extractor/loadFile.native.js +0 -21
- package/dist/extractor/loadFile.native.js.map +0 -6
- package/dist/extractor/loadTamagui.native.js +0 -314
- package/dist/extractor/loadTamagui.native.js.map +0 -6
- package/dist/extractor/logLines.native.js +0 -53
- package/dist/extractor/logLines.native.js.map +0 -6
- package/dist/extractor/normalizeTernaries.native.js.map +0 -6
- package/dist/extractor/propsToFontFamilyCache.native.js +0 -40
- package/dist/extractor/propsToFontFamilyCache.native.js.map +0 -6
- package/dist/extractor/regenerateConfig.native.js +0 -148
- package/dist/extractor/regenerateConfig.native.js.map +0 -6
- package/dist/extractor/removeUnusedHooks.native.js +0 -111
- package/dist/extractor/removeUnusedHooks.native.js.map +0 -6
- package/dist/extractor/timer.native.js +0 -44
- package/dist/extractor/timer.native.js.map +0 -6
- package/dist/extractor/validHTMLAttributes.native.js.map +0 -6
- package/dist/extractor/watchTamaguiConfig.native.js +0 -60
- package/dist/extractor/watchTamaguiConfig.native.js.map +0 -6
- package/dist/getPragmaOptions.native.js +0 -62
- package/dist/getPragmaOptions.native.js.map +0 -6
- package/dist/helpers/memoize.native.js +0 -40
- package/dist/helpers/memoize.native.js.map +0 -6
- package/dist/helpers/requireTamaguiCore.native.js +0 -34
- package/dist/helpers/requireTamaguiCore.native.js.map +0 -6
- package/dist/index.native.js +0 -35
- package/dist/index.native.js.map +0 -6
- package/dist/registerRequire.native.js +0 -124
- package/dist/registerRequire.native.js.map +0 -6
- package/dist/server.native.js +0 -70
- package/dist/server.native.js.map +0 -6
- package/dist/setup.native.js +0 -2
- package/dist/setup.native.js.map +0 -6
- package/dist/types.native.js.map +0 -6
package/dist/constants.native.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var constants_exports = {};
|
|
25
|
-
__export(constants_exports, {
|
|
26
|
-
CSS_FILE_NAME: () => CSS_FILE_NAME,
|
|
27
|
-
FAILED_EVAL: () => FAILED_EVAL,
|
|
28
|
-
MEDIA_SEP: () => MEDIA_SEP,
|
|
29
|
-
SHOULD_DEBUG: () => SHOULD_DEBUG,
|
|
30
|
-
cacheDir: () => cacheDir
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(constants_exports);
|
|
33
|
-
var import_find_cache_dir = __toESM(require("find-cache-dir")), _process_env_DEBUG, CSS_FILE_NAME = "__snack.css", MEDIA_SEP = "_", cacheDir = (0, import_find_cache_dir.default)({
|
|
34
|
-
name: "tamagui",
|
|
35
|
-
create: !0
|
|
36
|
-
}), FAILED_EVAL = Symbol("failed_style_eval"), SHOULD_DEBUG = process.env.DEBUG === "*" || ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith("tamagui"));
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
CSS_FILE_NAME,
|
|
40
|
-
FAILED_EVAL,
|
|
41
|
-
MEDIA_SEP,
|
|
42
|
-
SHOULD_DEBUG,
|
|
43
|
-
cacheDir
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/constants.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,4BAAyB,oCADrB,oBAEO,gBAAgB,eAEhB,YAAY,KAEZ,eAAW,sBAAAA,SAAa;AAAA,EAC/B,MAAM;AAAA,EACN,QAAQ;AACZ,CAAC,GACU,cAAc,OAAO,mBAAmB,GACxC,eAAe,QAAQ,IAAI,UAAU,SAAS,qBAAqB,QAAQ,IAAI,WAAW,QAAQ,uBAAuB,SAAS,SAAS,mBAAmB,WAAW,SAAS;",
|
|
5
|
-
"names": ["findCacheDir"]
|
|
6
|
-
}
|
package/dist/exports.native.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var exports_exports = {};
|
|
17
|
-
__export(exports_exports, {
|
|
18
|
-
createExtractor: () => import_createExtractor.createExtractor,
|
|
19
|
-
literalToAst: () => import_literalToAst.literalToAst
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(exports_exports);
|
|
22
|
-
__reExport(exports_exports, require("./checkDeps"), module.exports);
|
|
23
|
-
__reExport(exports_exports, require("./types"), module.exports);
|
|
24
|
-
var import_createExtractor = require("./extractor/createExtractor"), import_literalToAst = require("./extractor/literalToAst");
|
|
25
|
-
__reExport(exports_exports, require("./constants"), module.exports);
|
|
26
|
-
__reExport(exports_exports, require("./extractor/extractToClassNames"), module.exports);
|
|
27
|
-
__reExport(exports_exports, require("./extractor/concatClassName"), module.exports);
|
|
28
|
-
__reExport(exports_exports, require("./extractor/extractToNative"), module.exports);
|
|
29
|
-
__reExport(exports_exports, require("./extractor/extractHelpers"), module.exports);
|
|
30
|
-
__reExport(exports_exports, require("./extractor/loadTamagui"), module.exports);
|
|
31
|
-
__reExport(exports_exports, require("./extractor/watchTamaguiConfig"), module.exports);
|
|
32
|
-
__reExport(exports_exports, require("./extractor/createLogger"), module.exports);
|
|
33
|
-
__reExport(exports_exports, require("./registerRequire"), module.exports);
|
|
34
|
-
__reExport(exports_exports, require("./getPragmaOptions"), module.exports);
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
createExtractor,
|
|
38
|
-
literalToAst,
|
|
39
|
-
...require("./checkDeps"),
|
|
40
|
-
...require("./types"),
|
|
41
|
-
...require("./constants"),
|
|
42
|
-
...require("./extractor/extractToClassNames"),
|
|
43
|
-
...require("./extractor/concatClassName"),
|
|
44
|
-
...require("./extractor/extractToNative"),
|
|
45
|
-
...require("./extractor/extractHelpers"),
|
|
46
|
-
...require("./extractor/loadTamagui"),
|
|
47
|
-
...require("./extractor/watchTamaguiConfig"),
|
|
48
|
-
...require("./extractor/createLogger"),
|
|
49
|
-
...require("./registerRequire"),
|
|
50
|
-
...require("./getPragmaOptions")
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=exports.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/exports.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,wBAAd;AACA,4BAAc,oBADd;AAEA,6BAAgC,wCAChC,sBAA6B;AAC7B,4BAAc,wBAJd;AAKA,4BAAc,4CALd;AAMA,4BAAc,wCANd;AAOA,4BAAc,wCAPd;AAQA,4BAAc,uCARd;AASA,4BAAc,oCATd;AAUA,4BAAc,2CAVd;AAWA,4BAAc,qCAXd;AAYA,4BAAc,8BAZd;AAaA,4BAAc,+BAbd;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var accessSafe_exports = {};
|
|
25
|
-
__export(accessSafe_exports, {
|
|
26
|
-
accessSafe: () => accessSafe
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(accessSafe_exports);
|
|
29
|
-
var t = __toESM(require("@babel/types"));
|
|
30
|
-
function accessSafe(obj, member) {
|
|
31
|
-
return t.logicalExpression(
|
|
32
|
-
"&&",
|
|
33
|
-
t.logicalExpression(
|
|
34
|
-
"&&",
|
|
35
|
-
// typeof obj === 'object
|
|
36
|
-
t.binaryExpression("===", t.unaryExpression("typeof", obj), t.stringLiteral("object")),
|
|
37
|
-
// obj !== null
|
|
38
|
-
t.binaryExpression("!==", obj, t.nullLiteral())
|
|
39
|
-
),
|
|
40
|
-
// obj.member
|
|
41
|
-
t.memberExpression(obj, t.identifier(member), !1)
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
-
0 && (module.exports = {
|
|
46
|
-
accessSafe
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=accessSafe.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/accessSafe.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAmB;AAGZ,SAAS,WAAW,KAAK,QAAQ;AACpC,SAAO,EAAE;AAAA,IAAkB;AAAA,IAAM,EAAE;AAAA,MAAkB;AAAA;AAAA,MACrD,EAAE,iBAAiB,OAAO,EAAE,gBAAgB,UAAU,GAAG,GAAG,EAAE,cAAc,QAAQ,CAAC;AAAA;AAAA,MACrF,EAAE,iBAAiB,OAAO,KAAK,EAAE,YAAY,CAAC;AAAA,IAAC;AAAA;AAAA,IAC/C,EAAE,iBAAiB,KAAK,EAAE,WAAW,MAAM,GAAG,EAAK;AAAA,EAAC;AACxD;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var babelParse_exports = {};
|
|
25
|
-
__export(babelParse_exports, {
|
|
26
|
-
babelParse: () => babelParse,
|
|
27
|
-
parserOptions: () => parserOptions
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(babelParse_exports);
|
|
30
|
-
var babelParser = __toESM(require("@babel/parser")), plugins = [
|
|
31
|
-
"asyncGenerators",
|
|
32
|
-
"classProperties",
|
|
33
|
-
"dynamicImport",
|
|
34
|
-
"functionBind",
|
|
35
|
-
"jsx",
|
|
36
|
-
"numericSeparator",
|
|
37
|
-
"objectRestSpread",
|
|
38
|
-
"optionalCatchBinding",
|
|
39
|
-
"decorators-legacy",
|
|
40
|
-
"typescript",
|
|
41
|
-
"optionalChaining",
|
|
42
|
-
"nullishCoalescingOperator"
|
|
43
|
-
], parserOptions = Object.freeze({
|
|
44
|
-
plugins,
|
|
45
|
-
sourceType: "module"
|
|
46
|
-
}), parser = babelParser.parse.bind(babelParser);
|
|
47
|
-
function babelParse(code, fileName) {
|
|
48
|
-
var codeString = code.toString();
|
|
49
|
-
try {
|
|
50
|
-
return parser(codeString, parserOptions);
|
|
51
|
-
} catch (err) {
|
|
52
|
-
throw new Error(`Error parsing babel: ${err} in ${fileName}, code:
|
|
53
|
-
${codeString}
|
|
54
|
-
${err.stack}`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
babelParse,
|
|
60
|
-
parserOptions
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=babelParse.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/extractor/babelParse.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B,mCACzB,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GACW,gBAAgB,OAAO,OAAO;AAAA,EACrC;AAAA,EACA,YAAY;AAChB,CAAC,GACG,SAAS,YAAY,MAAM,KAAK,WAAW;AACxC,SAAS,WAAW,MAAM,UAAU;AACvC,MAAI,aAAa,KAAK,SAAS;AAC/B,MAAI;AACA,WAAO,OAAO,YAAY,aAAa;AAAA,EAC3C,SAAS,KAAK;AACV,UAAM,IAAI,MAAM,wBAAwB,GAAG,OAAO,QAAQ;AAAA,EAAY,UAAU;AAAA,GAAM,IAAI,KAAK,EAAE;AAAA,EACrG;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var bundle_exports = {};
|
|
25
|
-
__export(bundle_exports, {
|
|
26
|
-
esbuildIgnoreFilesRegex: () => esbuildIgnoreFilesRegex,
|
|
27
|
-
esbuildLoaderConfig: () => esbuildLoaderConfig,
|
|
28
|
-
esbundleTamaguiConfig: () => esbundleTamaguiConfig
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(bundle_exports);
|
|
31
|
-
var import_node_path = require("node:path"), import_esbuild = __toESM(require("esbuild")), FS = __toESM(require("fs-extra")), import_esbuildAliasPlugin = require("./esbuildAliasPlugin"), import_loadTamagui = require("./loadTamagui"), import_esbuildTsconfigPaths = require("./esbuildTsconfigPaths"), esbuildLoaderConfig = {
|
|
32
|
-
".js": "jsx",
|
|
33
|
-
".png": "dataurl",
|
|
34
|
-
".jpg": "dataurl",
|
|
35
|
-
".jpeg": "dataurl",
|
|
36
|
-
".svg": "dataurl",
|
|
37
|
-
".gif": "dataurl",
|
|
38
|
-
".webp": "dataurl",
|
|
39
|
-
".woff2": "dataurl",
|
|
40
|
-
".woff": "dataurl",
|
|
41
|
-
".eot": "dataurl",
|
|
42
|
-
".otf": "dataurl",
|
|
43
|
-
".ttf": "dataurl",
|
|
44
|
-
".mp4": "file",
|
|
45
|
-
".mpeg4": "file",
|
|
46
|
-
".mov": "file",
|
|
47
|
-
".avif": "file",
|
|
48
|
-
".wmv": "file",
|
|
49
|
-
".webm": "file",
|
|
50
|
-
".wav": "file",
|
|
51
|
-
".aac": "file",
|
|
52
|
-
".ogg": "file",
|
|
53
|
-
".flac": "file",
|
|
54
|
-
".node": "empty"
|
|
55
|
-
}, dataExtensions = Object.keys(esbuildLoaderConfig).filter(function(k) {
|
|
56
|
-
return esbuildLoaderConfig[k] === "file" || esbuildLoaderConfig[k] === "dataurl";
|
|
57
|
-
}).map(function(k) {
|
|
58
|
-
return k.slice(1);
|
|
59
|
-
}), esbuildIgnoreFilesRegex = new RegExp(`.(${dataExtensions.join("|")})$`, "i");
|
|
60
|
-
function getESBuildConfig(param, platform, aliases) {
|
|
61
|
-
var { entryPoints, resolvePlatformSpecificEntries, ...options } = param, _process_env_DEBUG;
|
|
62
|
-
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info("Building", entryPoints);
|
|
63
|
-
var resolvedEntryPoints = resolvePlatformSpecificEntries ? entryPoints.map(import_loadTamagui.resolveWebOrNativeSpecificEntry) : entryPoints, res = {
|
|
64
|
-
bundle: !0,
|
|
65
|
-
entryPoints: resolvedEntryPoints,
|
|
66
|
-
format: "cjs",
|
|
67
|
-
target: "node20",
|
|
68
|
-
jsx: "transform",
|
|
69
|
-
jsxFactory: "react",
|
|
70
|
-
allowOverwrite: !0,
|
|
71
|
-
keepNames: !0,
|
|
72
|
-
resolveExtensions: [
|
|
73
|
-
".native.tsx",
|
|
74
|
-
".native.ts",
|
|
75
|
-
".native.jsx",
|
|
76
|
-
".native.js",
|
|
77
|
-
".tsx",
|
|
78
|
-
".ts",
|
|
79
|
-
".jsx",
|
|
80
|
-
".js"
|
|
81
|
-
],
|
|
82
|
-
platform: "node",
|
|
83
|
-
tsconfigRaw: {
|
|
84
|
-
compilerOptions: {
|
|
85
|
-
jsx: "react-jsx"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
loader: esbuildLoaderConfig,
|
|
89
|
-
logLevel: "warning",
|
|
90
|
-
plugins: [
|
|
91
|
-
(0, import_esbuildTsconfigPaths.TsconfigPathsPlugin)(),
|
|
92
|
-
{
|
|
93
|
-
name: "external",
|
|
94
|
-
setup(build) {
|
|
95
|
-
build.onResolve({
|
|
96
|
-
filter: /@tamagui\/core/
|
|
97
|
-
}, function(args) {
|
|
98
|
-
return {
|
|
99
|
-
path: platform === "native" ? "@tamagui/core/native" : "@tamagui/core",
|
|
100
|
-
external: !0
|
|
101
|
-
};
|
|
102
|
-
}), build.onResolve({
|
|
103
|
-
filter: /react-native\/package.json$/
|
|
104
|
-
}, function(args) {
|
|
105
|
-
return {
|
|
106
|
-
path: "react-native/package.json",
|
|
107
|
-
external: !0
|
|
108
|
-
};
|
|
109
|
-
}), build.onResolve({
|
|
110
|
-
filter: /@tamagui\/web/
|
|
111
|
-
}, function(args) {
|
|
112
|
-
return {
|
|
113
|
-
path: platform === "native" ? "@tamagui/core/native" : "@tamagui/core",
|
|
114
|
-
external: !0
|
|
115
|
-
};
|
|
116
|
-
}), build.onResolve({
|
|
117
|
-
filter: /^(react-native|react-native\/.*)$/
|
|
118
|
-
}, function(args) {
|
|
119
|
-
return {
|
|
120
|
-
path: "@tamagui/react-native-web-lite",
|
|
121
|
-
external: !0
|
|
122
|
-
};
|
|
123
|
-
}), build.onResolve({
|
|
124
|
-
filter: /react-native-reanimated/
|
|
125
|
-
}, function(args) {
|
|
126
|
-
return {
|
|
127
|
-
path: "react-native-reanimated",
|
|
128
|
-
external: !0
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
(0, import_esbuildAliasPlugin.esbuildAliasPlugin)({
|
|
134
|
-
...aliases
|
|
135
|
-
})
|
|
136
|
-
],
|
|
137
|
-
...options
|
|
138
|
-
};
|
|
139
|
-
return res;
|
|
140
|
-
}
|
|
141
|
-
async function esbundleTamaguiConfig(props, platform, aliases) {
|
|
142
|
-
await asyncLock(props);
|
|
143
|
-
var config = getESBuildConfig(props, platform, aliases);
|
|
144
|
-
return await import_esbuild.default.build(config);
|
|
145
|
-
}
|
|
146
|
-
async function asyncLock(props) {
|
|
147
|
-
var lockFile = (0, import_node_path.join)((0, import_node_path.dirname)(props.outfile), (0, import_node_path.basename)(props.outfile, ".lock")), lockStat = await FS.stat(lockFile).catch(function() {
|
|
148
|
-
}), lockedMsAgo = lockStat ? (/* @__PURE__ */ new Date()).getTime() - new Date(lockStat.mtime).getTime() : Number.POSITIVE_INFINITY;
|
|
149
|
-
if (lockedMsAgo < 500) {
|
|
150
|
-
var _process_env_DEBUG;
|
|
151
|
-
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info("Waiting for existing build", props.entryPoints);
|
|
152
|
-
for (var tries = 5; tries--; ) {
|
|
153
|
-
if (await FS.pathExists(props.outfile))
|
|
154
|
-
return;
|
|
155
|
-
await new Promise(function(res) {
|
|
156
|
-
return setTimeout(res, 50);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
FS.writeFile(lockFile, "");
|
|
161
|
-
}
|
|
162
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
163
|
-
0 && (module.exports = {
|
|
164
|
-
esbuildIgnoreFilesRegex,
|
|
165
|
-
esbuildLoaderConfig,
|
|
166
|
-
esbundleTamaguiConfig
|
|
167
|
-
});
|
|
168
|
-
//# source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