@tamagui/static 1.74.8 → 1.74.9
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/package.json +16 -16
- package/dist/cjs/require.js +0 -89
- package/dist/cjs/require.js.map +0 -6
- package/dist/cjs/require.native.js +0 -90
- package/dist/cjs/require.native.js.map +0 -6
- package/dist/esm/require.js +0 -66
- package/dist/esm/require.js.map +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.9",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"@babel/runtime": "^7.21.5",
|
|
36
36
|
"@babel/traverse": "^7.21.5",
|
|
37
37
|
"@babel/types": "^7.21.5",
|
|
38
|
-
"@tamagui/build": "1.74.
|
|
39
|
-
"@tamagui/cli-color": "1.74.
|
|
40
|
-
"@tamagui/config-default": "1.74.
|
|
41
|
-
"@tamagui/core": "1.74.
|
|
42
|
-
"@tamagui/fake-react-native": "1.74.
|
|
43
|
-
"@tamagui/generate-themes": "1.74.
|
|
44
|
-
"@tamagui/helpers": "1.74.
|
|
45
|
-
"@tamagui/helpers-node": "1.74.
|
|
46
|
-
"@tamagui/proxy-worm": "1.74.
|
|
47
|
-
"@tamagui/react-native-prebuilt": "1.74.
|
|
48
|
-
"@tamagui/shorthands": "1.74.
|
|
49
|
-
"@tamagui/types": "1.74.
|
|
38
|
+
"@tamagui/build": "1.74.9",
|
|
39
|
+
"@tamagui/cli-color": "1.74.9",
|
|
40
|
+
"@tamagui/config-default": "1.74.9",
|
|
41
|
+
"@tamagui/core": "1.74.9",
|
|
42
|
+
"@tamagui/fake-react-native": "1.74.9",
|
|
43
|
+
"@tamagui/generate-themes": "1.74.9",
|
|
44
|
+
"@tamagui/helpers": "1.74.9",
|
|
45
|
+
"@tamagui/helpers-node": "1.74.9",
|
|
46
|
+
"@tamagui/proxy-worm": "1.74.9",
|
|
47
|
+
"@tamagui/react-native-prebuilt": "1.74.9",
|
|
48
|
+
"@tamagui/shorthands": "1.74.9",
|
|
49
|
+
"@tamagui/types": "1.74.9",
|
|
50
50
|
"babel-literal-to-ast": "^2.1.0",
|
|
51
51
|
"esbuild": "~0.19.3",
|
|
52
52
|
"esbuild-register": "^3.4.2",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"invariant": "^2.2.4",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"react-native-web": "^0.19.6",
|
|
59
|
-
"react-native-web-internals": "1.74.
|
|
60
|
-
"react-native-web-lite": "1.74.
|
|
59
|
+
"react-native-web-internals": "1.74.9",
|
|
60
|
+
"react-native-web-lite": "1.74.9"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@babel/plugin-syntax-typescript": "^7.21.4",
|
|
64
64
|
"@expo/match-media": "^0.4.0",
|
|
65
|
-
"@tamagui/test-design-system": "1.74.
|
|
65
|
+
"@tamagui/test-design-system": "1.74.9",
|
|
66
66
|
"@testing-library/react": "^14.0.0",
|
|
67
67
|
"@types/babel__generator": "^7.6.4",
|
|
68
68
|
"@types/babel__traverse": "^7.18.2",
|
package/dist/cjs/require.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var require_exports = {};
|
|
16
|
-
__export(require_exports, {
|
|
17
|
-
getNameToPaths: () => getNameToPaths,
|
|
18
|
-
registerRequire: () => registerRequire
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(require_exports);
|
|
21
|
-
var import_path = require("path");
|
|
22
|
-
const nameToPaths = {}, Module = require("module"), getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
23
|
-
let isRegistered = !1, og;
|
|
24
|
-
function registerRequire() {
|
|
25
|
-
if (isRegistered)
|
|
26
|
-
return () => {
|
|
27
|
-
};
|
|
28
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
29
|
-
hookIgnoreNodeModules: !1
|
|
30
|
-
});
|
|
31
|
-
return og = Module.prototype.require, isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
32
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS;
|
|
36
|
-
var _a;
|
|
37
|
-
const extraIgnores = IGNORES === "true" ? [] : (_a = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) == null ? void 0 : _a.split(","), knownIgnorableModules = {
|
|
38
|
-
"expo-modules": !0,
|
|
39
|
-
solito: !0,
|
|
40
|
-
...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map((k) => [k, !0])) || [])
|
|
41
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
42
|
-
function tamaguiRequire(path) {
|
|
43
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/i.test(path))
|
|
44
|
-
return {};
|
|
45
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
46
|
-
return proxyWorm;
|
|
47
|
-
if (path === "react-native/package.json")
|
|
48
|
-
return packageJson;
|
|
49
|
-
if (path === "react-native-web-lite" || path.startsWith("react-native") && // allow our rnw.tsx imports through
|
|
50
|
-
!path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, import_path.sep)))
|
|
51
|
-
return rnw;
|
|
52
|
-
if (path === "@tamagui/core" || path === "@tamagui/core-node" || path === "@tamagui/web")
|
|
53
|
-
return core;
|
|
54
|
-
if (path in knownIgnorableModules)
|
|
55
|
-
return proxyWorm;
|
|
56
|
-
try {
|
|
57
|
-
return og.apply(this, arguments);
|
|
58
|
-
} catch (err) {
|
|
59
|
-
return allowedIgnores[path] || IGNORES === "true" || (process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS ? console.error(
|
|
60
|
-
`Tamagui failed loading the pre-built tamagui.config.ts
|
|
61
|
-
|
|
62
|
-
${err.message}
|
|
63
|
-
${err.stack}
|
|
64
|
-
|
|
65
|
-
You can see if it loads in the node repl:
|
|
66
|
-
|
|
67
|
-
require("./${(0, import_path.relative)(process.cwd(), path)}").default
|
|
68
|
-
|
|
69
|
-
`
|
|
70
|
-
) : hasWarnedForModules.has(path) || (hasWarnedForModules.add(path), console.log(
|
|
71
|
-
`
|
|
72
|
-
\u26A0\uFE0F Tamagui Warning [001]: Skipping loading ${path} due to error bundling.
|
|
73
|
-
- message: ${err.message}
|
|
74
|
-
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
|
|
75
|
-
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
|
|
76
|
-
|
|
77
|
-
`
|
|
78
|
-
))), proxyWorm;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
const allowedIgnores = {
|
|
82
|
-
"expo-constants": !0
|
|
83
|
-
};
|
|
84
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
-
0 && (module.exports = {
|
|
86
|
-
getNameToPaths,
|
|
87
|
-
registerRequire
|
|
88
|
-
});
|
|
89
|
-
//# sourceMappingURL=require.js.map
|
package/dist/cjs/require.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/require.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B;AAE9B,MAAM,cAAc,CAAC,GACf,SAAS,QAAQ,QAAQ,GAElB,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe,IACf;AAEG,SAAS,kBAAkB;AAEhC,MAAI;AACF,WAAO,MAAM;AAAA,IAAC;AAGhB,QAAM,EAAE,WAAW,IAAI,QAAQ,4BAA4B,EAAE,SAAS;AAAA,IACpE,uBAAuB;AAAA,EACzB,CAAC;AAED,cAAK,OAAO,UAAU,SACtB,eAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,cAAc,QAAQ,+BAA+B,GACrD,UAAU,QAAQ,IAAI;AAtC5B;AAuCA,MAAM,eACJ,YAAY,SAAS,CAAC,KAAI,aAAQ,IAAI,iCAAZ,mBAA0C,MAAM,MACtE,wBAAwB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,GAAG,OAAO,aAAY,6CAAc,IAAI,CAAC,MAAM,CAAC,GAAG,EAAI,OAAM,CAAC,CAAC;AACjE,GAEM,sBAAsB,oBAAI,IAAY;AAE5C,SAAS,eAA0B,MAAc;AAC/C,MAAI,kDAAkD,KAAK,IAAI;AAC7D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,WAAO;AAET,MAAI,SAAS;AACX,WAAO;AAET,MACE,SAAS,2BACR,KAAK,WAAW,cAAc;AAAA,EAE7B,CAAC,KAAK,WAAW,oCAAoC,QAAQ,OAAO,eAAG,CAAC;AAE1E,WAAO;AAET,MACE,SAAS,mBACT,SAAS,wBACT,SAAS;AAET,WAAO;AAGT,MAAI,QAAQ;AACV,WAAO;AAGT,MAAI;AAyBF,WAxBY,GAAG,MAAM,MAAM,SAAS;AAAA,EAyBtC,SAAS,KAAU;AACjB,WAAI,eAAe,IAAI,KAAK,YAAY,WAE5B,QAAQ,IAAI,kCAgBtB,QAAQ;AAAA,MACN;AAAA;AAAA,IAEJ,IAAI,OAAO;AAAA,IACX,IAAI,KAAK;AAAA;AAAA;AAAA;AAAA,mBAIE,sBAAS,QAAQ,IAAI,GAAG,IAAI,CAAC;AAAA;AAAA;AAAA,IAGtC,IA1BI,oBAAoB,IAAI,IAAI,MAG9B,oBAAoB,IAAI,IAAI,GAE5B,QAAQ;AAAA,MACN;AAAA,uDAAgD,IAAI;AAAA,gBAA0C,IAAI,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAC3G,KAsBG;AAAA,EACT;AACF;AAEA,MAAM,iBAAiB;AAAA,EACrB,kBAAkB;AACpB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,90 +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
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var require_exports = {};
|
|
17
|
-
__export(require_exports, {
|
|
18
|
-
getNameToPaths: () => getNameToPaths,
|
|
19
|
-
registerRequire: () => registerRequire
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(require_exports);
|
|
22
|
-
var import_path = require("path");
|
|
23
|
-
const nameToPaths = {}, Module = require("module"), getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
24
|
-
let isRegistered = !1, og;
|
|
25
|
-
function registerRequire() {
|
|
26
|
-
if (isRegistered)
|
|
27
|
-
return () => {
|
|
28
|
-
};
|
|
29
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
30
|
-
hookIgnoreNodeModules: !1
|
|
31
|
-
});
|
|
32
|
-
return og = Module.prototype.require, isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
33
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS;
|
|
37
|
-
var _a;
|
|
38
|
-
const extraIgnores = IGNORES === "true" ? [] : (_a = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) == null ? void 0 : _a.split(","), knownIgnorableModules = {
|
|
39
|
-
"expo-modules": !0,
|
|
40
|
-
solito: !0,
|
|
41
|
-
...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map((k) => [k, !0])) || [])
|
|
42
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
43
|
-
function tamaguiRequire(path) {
|
|
44
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/i.test(path))
|
|
45
|
-
return {};
|
|
46
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
47
|
-
return proxyWorm;
|
|
48
|
-
if (path === "react-native/package.json")
|
|
49
|
-
return packageJson;
|
|
50
|
-
if (path === "react-native-web-lite" || path.startsWith("react-native") && // allow our rnw.tsx imports through
|
|
51
|
-
!path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, import_path.sep)))
|
|
52
|
-
return rnw;
|
|
53
|
-
if (path === "@tamagui/core" || path === "@tamagui/core-node" || path === "@tamagui/web")
|
|
54
|
-
return core;
|
|
55
|
-
if (path in knownIgnorableModules)
|
|
56
|
-
return proxyWorm;
|
|
57
|
-
try {
|
|
58
|
-
return og.apply(this, arguments);
|
|
59
|
-
} catch (err) {
|
|
60
|
-
return allowedIgnores[path] || IGNORES === "true" || (process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS ? console.error(
|
|
61
|
-
`Tamagui failed loading the pre-built tamagui.config.ts
|
|
62
|
-
|
|
63
|
-
${err.message}
|
|
64
|
-
${err.stack}
|
|
65
|
-
|
|
66
|
-
You can see if it loads in the node repl:
|
|
67
|
-
|
|
68
|
-
require("./${(0, import_path.relative)(process.cwd(), path)}").default
|
|
69
|
-
|
|
70
|
-
`
|
|
71
|
-
) : hasWarnedForModules.has(path) || (hasWarnedForModules.add(path), console.log(
|
|
72
|
-
`
|
|
73
|
-
\u26A0\uFE0F Tamagui Warning [001]: Skipping loading ${path} due to error bundling.
|
|
74
|
-
- message: ${err.message}
|
|
75
|
-
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
|
|
76
|
-
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
|
|
77
|
-
|
|
78
|
-
`
|
|
79
|
-
))), proxyWorm;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const allowedIgnores = {
|
|
83
|
-
"expo-constants": !0
|
|
84
|
-
};
|
|
85
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
86
|
-
0 && (module.exports = {
|
|
87
|
-
getNameToPaths,
|
|
88
|
-
registerRequire
|
|
89
|
-
});
|
|
90
|
-
//# sourceMappingURL=require.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/require.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B;AAE9B,MAAM,cAAc,CAAC,GACf,SAAS,QAAQ,QAAQ,GAElB,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe,IACf;AAEG,SAAS,kBAAkB;AAEhC,MAAI;AACF,WAAO,MAAM;AAAA,IAAC;AAGhB,QAAM,EAAE,WAAW,IAAI,QAAQ,4BAA4B,EAAE,SAAS;AAAA,IACpE,uBAAuB;AAAA,EACzB,CAAC;AAED,cAAK,OAAO,UAAU,SACtB,eAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,cAAc,QAAQ,+BAA+B,GACrD,UAAU,QAAQ,IAAI;AAtC5B;AAuCA,MAAM,eACJ,YAAY,SAAS,CAAC,KAAI,aAAQ,IAAI,iCAAZ,mBAA0C,MAAM,MACtE,wBAAwB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,GAAG,OAAO,aAAY,6CAAc,IAAI,CAAC,MAAM,CAAC,GAAG,EAAI,OAAM,CAAC,CAAC;AACjE,GAEM,sBAAsB,oBAAI,IAAY;AAE5C,SAAS,eAA0B,MAAc;AAC/C,MAAI,kDAAkD,KAAK,IAAI;AAC7D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,WAAO;AAET,MAAI,SAAS;AACX,WAAO;AAET,MACE,SAAS,2BACR,KAAK,WAAW,cAAc;AAAA,EAE7B,CAAC,KAAK,WAAW,oCAAoC,QAAQ,OAAO,eAAG,CAAC;AAE1E,WAAO;AAET,MACE,SAAS,mBACT,SAAS,wBACT,SAAS;AAET,WAAO;AAGT,MAAI,QAAQ;AACV,WAAO;AAGT,MAAI;AAyBF,WAxBY,GAAG,MAAM,MAAM,SAAS;AAAA,EAyBtC,SAAS,KAAU;AACjB,WAAI,eAAe,IAAI,KAAK,YAAY,WAE5B,QAAQ,IAAI,kCAgBtB,QAAQ;AAAA,MACN;AAAA;AAAA,IAEJ,IAAI,OAAO;AAAA,IACX,IAAI,KAAK;AAAA;AAAA;AAAA;AAAA,mBAIE,sBAAS,QAAQ,IAAI,GAAG,IAAI,CAAC;AAAA;AAAA;AAAA,IAGtC,IA1BI,oBAAoB,IAAI,IAAI,MAG9B,oBAAoB,IAAI,IAAI,GAE5B,QAAQ;AAAA,MACN;AAAA,uDAAgD,IAAI;AAAA,gBAA0C,IAAI,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAC3G,KAsBG;AAAA,EACT;AACF;AAEA,MAAM,iBAAiB;AAAA,EACrB,kBAAkB;AACpB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/require.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { relative, sep } from "path";
|
|
2
|
-
const nameToPaths = {}, Module = require("module"), getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
3
|
-
let isRegistered = !1, og;
|
|
4
|
-
function registerRequire() {
|
|
5
|
-
if (isRegistered)
|
|
6
|
-
return () => {
|
|
7
|
-
};
|
|
8
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
9
|
-
hookIgnoreNodeModules: !1
|
|
10
|
-
});
|
|
11
|
-
return og = Module.prototype.require, isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
12
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
const packageJson = require("react-native-web/package.json"), IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS?.split(","), knownIgnorableModules = {
|
|
16
|
-
"expo-modules": !0,
|
|
17
|
-
solito: !0,
|
|
18
|
-
...Object.fromEntries(extraIgnores?.map((k) => [k, !0]) || [])
|
|
19
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
20
|
-
function tamaguiRequire(path) {
|
|
21
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/i.test(path))
|
|
22
|
-
return {};
|
|
23
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
24
|
-
return proxyWorm;
|
|
25
|
-
if (path === "react-native/package.json")
|
|
26
|
-
return packageJson;
|
|
27
|
-
if (path === "react-native-web-lite" || path.startsWith("react-native") && // allow our rnw.tsx imports through
|
|
28
|
-
!path.startsWith("react-native-web/dist/cjs/exports".replace(/\//g, sep)))
|
|
29
|
-
return rnw;
|
|
30
|
-
if (path === "@tamagui/core" || path === "@tamagui/core-node" || path === "@tamagui/web")
|
|
31
|
-
return core;
|
|
32
|
-
if (path in knownIgnorableModules)
|
|
33
|
-
return proxyWorm;
|
|
34
|
-
try {
|
|
35
|
-
return og.apply(this, arguments);
|
|
36
|
-
} catch (err) {
|
|
37
|
-
return allowedIgnores[path] || IGNORES === "true" || (process.env.TAMAGUI_SHOW_FULL_BUNDLE_ERRORS ? console.error(
|
|
38
|
-
`Tamagui failed loading the pre-built tamagui.config.ts
|
|
39
|
-
|
|
40
|
-
${err.message}
|
|
41
|
-
${err.stack}
|
|
42
|
-
|
|
43
|
-
You can see if it loads in the node repl:
|
|
44
|
-
|
|
45
|
-
require("./${relative(process.cwd(), path)}").default
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
) : hasWarnedForModules.has(path) || (hasWarnedForModules.add(path), console.log(
|
|
49
|
-
`
|
|
50
|
-
\u26A0\uFE0F Tamagui Warning [001]: Skipping loading ${path} due to error bundling.
|
|
51
|
-
- message: ${err.message}
|
|
52
|
-
- for more info see: https://tamagui.dev/docs/intro/errors#warning-001
|
|
53
|
-
- set TAMAGUI_SHOW_FULL_BUNDLE_ERRORS=1 to see stack trace
|
|
54
|
-
|
|
55
|
-
`
|
|
56
|
-
))), proxyWorm;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const allowedIgnores = {
|
|
60
|
-
"expo-constants": !0
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
getNameToPaths,
|
|
64
|
-
registerRequire
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=require.js.map
|
package/dist/esm/require.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/require.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,UAAU,WAAW;AAE9B,MAAM,cAAc,CAAC,GACf,SAAS,QAAQ,QAAQ,GAElB,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe,IACf;AAEG,SAAS,kBAAkB;AAEhC,MAAI;AACF,WAAO,MAAM;AAAA,IAAC;AAGhB,QAAM,EAAE,WAAW,IAAI,QAAQ,4BAA4B,EAAE,SAAS;AAAA,IACpE,uBAAuB;AAAA,EACzB,CAAC;AAED,cAAK,OAAO,UAAU,SACtB,eAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,cAAc,QAAQ,+BAA+B,GACrD,UAAU,QAAQ,IAAI,8BACtB,eACJ,YAAY,SAAS,CAAC,IAAI,QAAQ,IAAI,8BAA8B,MAAM,GAAG,GACzE,wBAAwB;AAAA,EAC5B,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,GAAG,OAAO,YAAY,cAAc,IAAI,CAAC,MAAM,CAAC,GAAG,EAAI,CAAC,KAAK,CAAC,CAAC;AACjE,GAEM,sBAAsB,oBAAI,IAAY;AAE5C,SAAS,eAA0B,MAAc;AAC/C,MAAI,kDAAkD,KAAK,IAAI;AAC7D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,WAAO;AAET,MAAI,SAAS;AACX,WAAO;AAET,MACE,SAAS,2BACR,KAAK,WAAW,cAAc;AAAA,EAE7B,CAAC,KAAK,WAAW,oCAAoC,QAAQ,OAAO,GAAG,CAAC;AAE1E,WAAO;AAET,MACE,SAAS,mBACT,SAAS,wBACT,SAAS;AAET,WAAO;AAGT,MAAI,QAAQ;AACV,WAAO;AAGT,MAAI;AAyBF,WAxBY,GAAG,MAAM,MAAM,SAAS;AAAA,EAyBtC,SAAS,KAAU;AACjB,WAAI,eAAe,IAAI,KAAK,YAAY,WAE5B,QAAQ,IAAI,kCAgBtB,QAAQ;AAAA,MACN;AAAA;AAAA,IAEJ,IAAI,OAAO;AAAA,IACX,IAAI,KAAK;AAAA;AAAA;AAAA;AAAA,eAIE,SAAS,QAAQ,IAAI,GAAG,IAAI,CAAC;AAAA;AAAA;AAAA,IAGtC,IA1BI,oBAAoB,IAAI,IAAI,MAG9B,oBAAoB,IAAI,IAAI,GAE5B,QAAQ;AAAA,MACN;AAAA,uDAAgD,IAAI;AAAA,gBAA0C,IAAI,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAC3G,KAsBG;AAAA,EACT;AACF;AAEA,MAAM,iBAAiB;AAAA,EACrB,kBAAkB;AACpB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|