@tamagui/static 1.74.13 → 1.74.14
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 -86
- package/dist/cjs/require.js.map +0 -6
- package/dist/cjs/require.native.js +0 -87
- package/dist/cjs/require.native.js.map +0 -6
- package/dist/esm/require.js +0 -63
- package/dist/esm/require.js.map +0 -6
- package/dist/esm/require.native.js +0 -63
- package/dist/esm/require.native.js.map +0 -6
- package/types/require.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.74.
|
|
3
|
+
"version": "1.74.14",
|
|
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.14",
|
|
39
|
+
"@tamagui/cli-color": "1.74.14",
|
|
40
|
+
"@tamagui/config-default": "1.74.14",
|
|
41
|
+
"@tamagui/core": "1.74.14",
|
|
42
|
+
"@tamagui/fake-react-native": "1.74.14",
|
|
43
|
+
"@tamagui/generate-themes": "1.74.14",
|
|
44
|
+
"@tamagui/helpers": "1.74.14",
|
|
45
|
+
"@tamagui/helpers-node": "1.74.14",
|
|
46
|
+
"@tamagui/proxy-worm": "1.74.14",
|
|
47
|
+
"@tamagui/react-native-prebuilt": "1.74.14",
|
|
48
|
+
"@tamagui/shorthands": "1.74.14",
|
|
49
|
+
"@tamagui/types": "1.74.14",
|
|
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.14",
|
|
60
|
+
"react-native-web-lite": "1.74.14"
|
|
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.14",
|
|
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,86 +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"), og = Module.prototype.require;
|
|
23
|
-
globalThis.ogRequire = og;
|
|
24
|
-
const getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
25
|
-
let isRegistered = !1;
|
|
26
|
-
function registerRequire() {
|
|
27
|
-
if (isRegistered)
|
|
28
|
-
return () => {
|
|
29
|
-
};
|
|
30
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
31
|
-
hookIgnoreNodeModules: !1
|
|
32
|
-
});
|
|
33
|
-
return isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
34
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS;
|
|
38
|
-
var _a;
|
|
39
|
-
const extraIgnores = IGNORES === "true" ? [] : (_a = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) == null ? void 0 : _a.split(","), knownIgnorableModules = {
|
|
40
|
-
"expo-modules": !0,
|
|
41
|
-
solito: !0,
|
|
42
|
-
...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map((k) => [k, !0])) || [])
|
|
43
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
44
|
-
function tamaguiRequire(path) {
|
|
45
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/.test(path))
|
|
46
|
-
return {};
|
|
47
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
48
|
-
return proxyWorm;
|
|
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 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
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
82
|
-
0 && (module.exports = {
|
|
83
|
-
getNameToPaths,
|
|
84
|
-
registerRequire
|
|
85
|
-
});
|
|
86
|
-
//# 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,GACzB,KAAK,OAAO,UAAU;AAC5B,WAAW,YAAe;AAEnB,MAAM,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe;AAEZ,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,wBAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,UAAU,QAAQ,IAAI;AArC5B;AAsCA,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,iDAAiD,KAAK,IAAI;AAC5D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,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,YAAY,WAEJ,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;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,87 +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"), og = Module.prototype.require;
|
|
24
|
-
globalThis.ogRequire = og;
|
|
25
|
-
const getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
26
|
-
let isRegistered = !1;
|
|
27
|
-
function registerRequire() {
|
|
28
|
-
if (isRegistered)
|
|
29
|
-
return () => {
|
|
30
|
-
};
|
|
31
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
32
|
-
hookIgnoreNodeModules: !1
|
|
33
|
-
});
|
|
34
|
-
return isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
35
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS;
|
|
39
|
-
var _a;
|
|
40
|
-
const extraIgnores = IGNORES === "true" ? [] : (_a = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS) == null ? void 0 : _a.split(","), knownIgnorableModules = {
|
|
41
|
-
"expo-modules": !0,
|
|
42
|
-
solito: !0,
|
|
43
|
-
...Object.fromEntries((extraIgnores == null ? void 0 : extraIgnores.map((k) => [k, !0])) || [])
|
|
44
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
45
|
-
function tamaguiRequire(path) {
|
|
46
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/.test(path))
|
|
47
|
-
return {};
|
|
48
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
49
|
-
return proxyWorm;
|
|
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 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
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
-
0 && (module.exports = {
|
|
84
|
-
getNameToPaths,
|
|
85
|
-
registerRequire
|
|
86
|
-
});
|
|
87
|
-
//# 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,GACzB,KAAK,OAAO,UAAU;AAC5B,WAAW,YAAe;AAEnB,MAAM,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe;AAEZ,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,wBAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,UAAU,QAAQ,IAAI;AArC5B;AAsCA,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,iDAAiD,KAAK,IAAI;AAC5D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,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,YAAY,WAEJ,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;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/require.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { relative, sep } from "path";
|
|
2
|
-
const nameToPaths = {}, Module = require("module"), og = Module.prototype.require;
|
|
3
|
-
globalThis.ogRequire = og;
|
|
4
|
-
const getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
5
|
-
let isRegistered = !1;
|
|
6
|
-
function registerRequire() {
|
|
7
|
-
if (isRegistered)
|
|
8
|
-
return () => {
|
|
9
|
-
};
|
|
10
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
11
|
-
hookIgnoreNodeModules: !1
|
|
12
|
-
});
|
|
13
|
-
return isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
14
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS?.split(","), knownIgnorableModules = {
|
|
18
|
-
"expo-modules": !0,
|
|
19
|
-
solito: !0,
|
|
20
|
-
...Object.fromEntries(extraIgnores?.map((k) => [k, !0]) || [])
|
|
21
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
22
|
-
function tamaguiRequire(path) {
|
|
23
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/.test(path))
|
|
24
|
-
return {};
|
|
25
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
26
|
-
return proxyWorm;
|
|
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 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
|
-
export {
|
|
60
|
-
getNameToPaths,
|
|
61
|
-
registerRequire
|
|
62
|
-
};
|
|
63
|
-
//# 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,GACzB,KAAK,OAAO,UAAU;AAC5B,WAAW,YAAe;AAEnB,MAAM,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe;AAEZ,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,wBAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,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,iDAAiD,KAAK,IAAI;AAC5D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,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,YAAY,WAEJ,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;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { relative, sep } from "path";
|
|
2
|
-
const nameToPaths = {}, Module = require("module"), og = Module.prototype.require;
|
|
3
|
-
globalThis.ogRequire = og;
|
|
4
|
-
const getNameToPaths = () => nameToPaths, proxyWorm = require("@tamagui/proxy-worm"), rnw = require("react-native-web"), core = require("@tamagui/core-node");
|
|
5
|
-
let isRegistered = !1;
|
|
6
|
-
function registerRequire() {
|
|
7
|
-
if (isRegistered)
|
|
8
|
-
return () => {
|
|
9
|
-
};
|
|
10
|
-
const { unregister } = require("esbuild-register/dist/node").register({
|
|
11
|
-
hookIgnoreNodeModules: !1
|
|
12
|
-
});
|
|
13
|
-
return isRegistered = !0, Module.prototype.require = tamaguiRequire, () => {
|
|
14
|
-
unregister(), isRegistered = !1, Module.prototype.require = og;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const IGNORES = process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS, extraIgnores = IGNORES === "true" ? [] : process.env.TAMAGUI_IGNORE_BUNDLE_ERRORS?.split(","), knownIgnorableModules = {
|
|
18
|
-
"expo-modules": !0,
|
|
19
|
-
solito: !0,
|
|
20
|
-
...Object.fromEntries(extraIgnores?.map((k) => [k, !0]) || [])
|
|
21
|
-
}, hasWarnedForModules = /* @__PURE__ */ new Set();
|
|
22
|
-
function tamaguiRequire(path) {
|
|
23
|
-
if (/\.(gif|jpe?g|png|svg|ttf|otf|woff2?|bmp|webp)$/.test(path))
|
|
24
|
-
return {};
|
|
25
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient" || path === "@expo/vector-icons")
|
|
26
|
-
return proxyWorm;
|
|
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 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
|
-
export {
|
|
60
|
-
getNameToPaths,
|
|
61
|
-
registerRequire
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=require.js.map
|
|
@@ -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,GACzB,KAAK,OAAO,UAAU;AAC5B,WAAW,YAAe;AAEnB,MAAM,iBAAiB,MAAM,aAE9B,YAAY,QAAQ,qBAAqB,GAEzC,MAAM,QAAQ,kBAAkB,GAChC,OAAO,QAAQ,oBAAoB;AAEzC,IAAI,eAAe;AAEZ,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,wBAAe,IAEf,OAAO,UAAU,UAAU,gBAEpB,MAAM;AACX,eAAW,GACX,eAAe,IACf,OAAO,UAAU,UAAU;AAAA,EAC7B;AACF;AAEA,MAAM,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,iDAAiD,KAAK,IAAI;AAC5D,WAAO,CAAC;AAEV,MACE,SAAS,0BACT,KAAK,WAAW,yBAAyB,KACzC,SAAS,0BACT,SAAS;AAET,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,YAAY,WAEJ,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;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/types/require.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"require.d.ts","sourceRoot":"","sources":["../src/require.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc,UAAoB,CAAA;AAS/C,wBAAgB,eAAe,eAmB9B"}
|