tamagui-loader 1.135.4 → 1.135.6
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/cjs/TamaguiPlugin.cjs +3 -3
- package/dist/cjs/TamaguiPlugin.js +1 -3
- package/dist/cjs/TamaguiPlugin.js.map +1 -1
- package/dist/cjs/loader.cjs +1 -1
- package/dist/cjs/loader.js +1 -1
- package/dist/cjs/loader.js.map +1 -1
- package/dist/cjs/shouldExclude.cjs +1 -1
- package/dist/cjs/shouldExclude.js +1 -1
- package/dist/esm/TamaguiPlugin.js +0 -2
- package/dist/esm/TamaguiPlugin.js.map +1 -1
- package/dist/esm/TamaguiPlugin.mjs +1 -1
- package/dist/esm/TamaguiPlugin.mjs.map +1 -1
- package/package.json +10 -10
- package/src/TamaguiPlugin.ts +0 -2
- package/types/TamaguiPlugin.d.ts.map +1 -1
- package/dist/cjs/TamaguiPlugin.native.js +0 -322
- package/dist/cjs/TamaguiPlugin.native.js.map +0 -6
- package/dist/cjs/css.native.js +0 -33
- package/dist/cjs/css.native.js.map +0 -6
- package/dist/cjs/index.native.js +0 -30
- package/dist/cjs/index.native.js.map +0 -6
- package/dist/cjs/loader.native.js +0 -93
- package/dist/cjs/loader.native.js.map +0 -6
- package/dist/cjs/polyfills.native.js +0 -5
- package/dist/cjs/polyfills.native.js.map +0 -6
- package/dist/cjs/requireResolve.native.js +0 -28
- package/dist/cjs/requireResolve.native.js.map +0 -6
- package/dist/cjs/shouldExclude.native.js +0 -39
- package/dist/cjs/shouldExclude.native.js.map +0 -6
- package/dist/cjs/test.native.js +0 -26
- package/dist/cjs/test.native.js.map +0 -6
- package/dist/esm/TamaguiPlugin.native.js +0 -231
- package/dist/esm/TamaguiPlugin.native.js.map +0 -1
- package/dist/esm/css.native.js +0 -14
- package/dist/esm/css.native.js.map +0 -1
- package/dist/esm/index.native.js +0 -7
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/loader.native.js +0 -74
- package/dist/esm/loader.native.js.map +0 -1
- package/dist/esm/polyfills.native.js +0 -4
- package/dist/esm/polyfills.native.js.map +0 -1
- package/dist/esm/requireResolve.native.js +0 -4
- package/dist/esm/requireResolve.native.js.map +0 -1
- package/dist/esm/shouldExclude.native.js +0 -9
- package/dist/esm/shouldExclude.native.js.map +0 -1
- package/dist/esm/test.native.js +0 -8
- package/dist/esm/test.native.js.map +0 -1
package/dist/cjs/css.native.js
DELETED
|
@@ -1,33 +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 css_exports = {};
|
|
17
|
-
__export(css_exports, {
|
|
18
|
-
default: () => loader
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(css_exports);
|
|
21
|
-
function loader() {
|
|
22
|
-
this.async();
|
|
23
|
-
var options = {
|
|
24
|
-
...this.getOptions()
|
|
25
|
-
}, out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
26
|
-
if (out)
|
|
27
|
-
return this.callback(null, out || "");
|
|
28
|
-
this.callback({
|
|
29
|
-
message: "No CSS found",
|
|
30
|
-
name: "missing_css"
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=css.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/css.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAe,SAAR,SAA0B;AAC7B,OAAK,MAAM;AACX,MAAI,UAAU;AAAA,IACV,GAAG,KAAK,WAAW;AAAA,EACvB,GACI,MAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AACjE,MAAI;AAEA,WAAO,KAAK,SAAS,MAAM,OAAO,EAAE;AAExC,OAAK,SAAS;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,EACV,CAAC;AACL;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/index.native.js
DELETED
|
@@ -1,30 +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 index_exports = {};
|
|
17
|
-
__export(index_exports, {
|
|
18
|
-
default: () => index_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(index_exports);
|
|
21
|
-
var import_polyfills = require("./polyfills"), import_loader = require("./loader");
|
|
22
|
-
__reExport(index_exports, require("./TamaguiPlugin"), module.exports);
|
|
23
|
-
__reExport(index_exports, require("./shouldExclude"), module.exports);
|
|
24
|
-
var index_default = import_loader.loader;
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
...require("./TamaguiPlugin"),
|
|
28
|
-
...require("./shouldExclude")
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,93 +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 loader_exports = {};
|
|
25
|
-
__export(loader_exports, {
|
|
26
|
-
loader: () => loader
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(loader_exports);
|
|
29
|
-
var import_static = __toESM(require("@tamagui/static")), import_requireResolve = require("./requireResolve"), { createExtractor, extractToClassNames, getPragmaOptions } = import_static.default;
|
|
30
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
31
|
-
var CSS_LOADER_PATH = "";
|
|
32
|
-
try {
|
|
33
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.cjs");
|
|
34
|
-
} catch {
|
|
35
|
-
try {
|
|
36
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.esm");
|
|
37
|
-
} catch {
|
|
38
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.js");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
42
|
-
var extractor = createExtractor(), index = 0;
|
|
43
|
-
process.env.TAMAGUI_TARGET = "web";
|
|
44
|
-
var loader = async function(sourceIn) {
|
|
45
|
-
this.cacheable(!0);
|
|
46
|
-
var callback = this.async(), sourcePath = `${this.resourcePath}`;
|
|
47
|
-
if (sourcePath.includes("node_modules") || sourcePath.includes("lucide-icons"))
|
|
48
|
-
return callback(null, sourceIn);
|
|
49
|
-
var source = sourceIn.toString();
|
|
50
|
-
try {
|
|
51
|
-
var options = {
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
platform: "web",
|
|
54
|
-
...this.getOptions()
|
|
55
|
-
}, { shouldDisable, shouldPrintDebug } = getPragmaOptions({
|
|
56
|
-
source,
|
|
57
|
-
path: sourcePath
|
|
58
|
-
});
|
|
59
|
-
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
60
|
-
|
|
61
|
-
--- Incoming source ---
|
|
62
|
-
|
|
63
|
-
`), console.warn(source)), shouldDisable)
|
|
64
|
-
return shouldPrintDebug && console.info("Disabling on file via pragma"), callback(null, source);
|
|
65
|
-
var cssPath = `${sourcePath}.${index++}.tamagui.css`, extracted = await extractToClassNames({
|
|
66
|
-
extractor,
|
|
67
|
-
source,
|
|
68
|
-
sourcePath,
|
|
69
|
-
options,
|
|
70
|
-
shouldPrintDebug
|
|
71
|
-
});
|
|
72
|
-
if (!extracted)
|
|
73
|
-
return callback(null, source);
|
|
74
|
-
if (extracted.styles) {
|
|
75
|
-
var cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`, remReq = this.remainingRequest, importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
76
|
-
extracted.js = `${extracted.js}
|
|
77
|
-
|
|
78
|
-
require(${JSON.stringify(importPath)})`;
|
|
79
|
-
}
|
|
80
|
-
callback(null, extracted.js, extracted.map);
|
|
81
|
-
} catch (err) {
|
|
82
|
-
var message = err instanceof Error ? `${err.message}
|
|
83
|
-
${err.stack}` : String(err);
|
|
84
|
-
console.error(`Tamagui Webpack Loader Error:
|
|
85
|
-
`, ` ${message}
|
|
86
|
-
`), message.includes("Cannot create proxy") && console.info("This is usually due to components not loading at build-time. Check for logs just below the line above:"), callback(null, source);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
loader
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=loader.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|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AAO,SAAS,MAAM,MAAM;AAGhC,QAAI,UAAU,QAAQ;AAClB,UAAI,WAAW,WAAW,OAAO,KAAK,UAAU,MAAM,EAAE,SAAS,QAAQ,CAAC,IACtE,SAAS,KAAK,kBACd,aAAa,GAAG,OAAO,MAAM,eAAe,IAAI,QAAQ,IAAI,MAAM;AACtE,gBAAU,KAAK,GAAG,UAAU,EAAE;AAAA;AAAA,UAAe,KAAK,UAAU,UAAU,CAAC;AAAA,IAC3E;AACA,aAAS,MAAM,UAAU,IAAI,UAAU,GAAG;AAAA,EAC9C,SAAS,KAAK;AACV,QAAI,UAAU,eAAe,QAAQ,GAAG,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,KAAK,OAAO,GAAG;AAChF,YAAQ,MAAM;AAAA,GAAmC,KAAK,OAAO;AAAA,CAAI,GAC7D,QAAQ,SAAS,qBAAqB,KACtC,QAAQ,KAAK,wGAAwG,GAEzH,SAAS,MAAM,MAAM;AAAA,EACzB;AACJ;",
|
|
5
|
-
"names": ["Static"]
|
|
6
|
-
}
|
|
@@ -1,28 +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 requireResolve_exports = {};
|
|
17
|
-
__export(requireResolve_exports, {
|
|
18
|
-
requireResolve: () => requireResolve
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(requireResolve_exports);
|
|
21
|
-
var import_node_module = require("node:module");
|
|
22
|
-
const import_meta = {};
|
|
23
|
-
var requireResolve = "url" in import_meta ? (0, import_node_module.createRequire)(import_meta.url).resolve : require.resolve;
|
|
24
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
-
0 && (module.exports = {
|
|
26
|
-
requireResolve
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=requireResolve.js.map
|
|
@@ -1,39 +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 shouldExclude_exports = {};
|
|
25
|
-
__export(shouldExclude_exports, {
|
|
26
|
-
shouldExclude: () => shouldExclude
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(shouldExclude_exports);
|
|
29
|
-
var import_node_path = __toESM(require("node:path")), shouldExclude = function(filePath, projectRoot) {
|
|
30
|
-
return !(projectRoot && filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
31
|
-
};
|
|
32
|
-
function isTamaguiDistJSX(filePath) {
|
|
33
|
-
return filePath.includes("/dist/jsx/".replace(/\//g, import_node_path.default.sep));
|
|
34
|
-
}
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
shouldExclude
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=shouldExclude.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/shouldExclude.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAiB,+BAEN,gBAAgB,SAAS,UAAU,aAAa;AACvD,SAAI,iBAAe,SAAS,SAAS,WAAW,KAAK,SAAS,SAAS,IAAI,KAAK,iBAAiB,QAAQ;AAI7G;AACA,SAAS,iBAAiB,UAAU;AAChC,SAAO,SAAS,SAAS,aAAa,QAAQ,OAAO,iBAAAA,QAAK,GAAG,CAAC;AAClE;",
|
|
5
|
-
"names": ["path"]
|
|
6
|
-
}
|
package/dist/cjs/test.native.js
DELETED
|
@@ -1,26 +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 test_exports = {};
|
|
17
|
-
__export(test_exports, {
|
|
18
|
-
default: () => loader
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(test_exports);
|
|
21
|
-
async function loader(sourceIn) {
|
|
22
|
-
this.cacheable(!0);
|
|
23
|
-
var callback = this.async(), sourcePath = `${this.resourcePath}`;
|
|
24
|
-
return callback(null, sourceIn);
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=test.js.map
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import Static from "@tamagui/static";
|
|
2
|
-
import { existsSync } from "node:fs";
|
|
3
|
-
import { dirname, join } from "node:path";
|
|
4
|
-
import webpack from "webpack";
|
|
5
|
-
import { requireResolve } from "./requireResolve.native.js";
|
|
6
|
-
function _class_call_check(instance, Constructor) {
|
|
7
|
-
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
8
|
-
}
|
|
9
|
-
function _defineProperties(target, props) {
|
|
10
|
-
for (var i = 0; i < props.length; i++) {
|
|
11
|
-
var descriptor = props[i];
|
|
12
|
-
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
16
|
-
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
17
|
-
}
|
|
18
|
-
function _define_property(obj, key, value) {
|
|
19
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
20
|
-
value,
|
|
21
|
-
enumerable: !0,
|
|
22
|
-
configurable: !0,
|
|
23
|
-
writable: !0
|
|
24
|
-
}) : obj[key] = value, obj;
|
|
25
|
-
}
|
|
26
|
-
var {
|
|
27
|
-
watchTamaguiConfig
|
|
28
|
-
} = Static,
|
|
29
|
-
TamaguiPlugin = /* @__PURE__ */function () {
|
|
30
|
-
"use strict";
|
|
31
|
-
|
|
32
|
-
function TamaguiPlugin2() {
|
|
33
|
-
var _this = this,
|
|
34
|
-
options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
35
|
-
platform: "web",
|
|
36
|
-
components: ["@tamagui/core"]
|
|
37
|
-
};
|
|
38
|
-
_class_call_check(this, TamaguiPlugin2), _define_property(this, "options", void 0), _define_property(this, "pluginName", void 0), _define_property(this, "safeResolves", void 0), _define_property(this, "isInComponentModule", void 0), this.options = options, this.pluginName = "TamaguiPlugin", this.safeResolves = function (resolves) {
|
|
39
|
-
var multiple = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
40
|
-
res = [],
|
|
41
|
-
_iteratorNormalCompletion = !0,
|
|
42
|
-
_didIteratorError = !1,
|
|
43
|
-
_iteratorError = void 0;
|
|
44
|
-
try {
|
|
45
|
-
for (var _iterator = resolves[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
46
|
-
var [out, mod] = _step.value;
|
|
47
|
-
if (out.endsWith("$")) {
|
|
48
|
-
res.push([out, mod]);
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
try {
|
|
52
|
-
res.push([out, requireResolve(mod)]), multiple && res.push([out, requireResolve(mod)]);
|
|
53
|
-
} catch (err) {
|
|
54
|
-
var _process_env_DEBUG;
|
|
55
|
-
if (out.includes("@gorhom/bottom-sheet")) continue;
|
|
56
|
-
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info(` withTamagui skipping resolving ${out}`, err);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
} catch (err) {
|
|
60
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
61
|
-
} finally {
|
|
62
|
-
try {
|
|
63
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
64
|
-
} finally {
|
|
65
|
-
if (_didIteratorError) throw _iteratorError;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return res;
|
|
69
|
-
}, this.isInComponentModule = function (fullPath) {
|
|
70
|
-
return _this.componentsBaseDirs.some(function (componentDir) {
|
|
71
|
-
return fullPath.startsWith(componentDir);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
return _create_class(TamaguiPlugin2, [{
|
|
76
|
-
key: "componentsFullPaths",
|
|
77
|
-
get: function () {
|
|
78
|
-
var _this_options_components;
|
|
79
|
-
return this.safeResolves(((_this_options_components = this.options.components) === null || _this_options_components === void 0 ? void 0 : _this_options_components.map(function (moduleName) {
|
|
80
|
-
return [moduleName, moduleName];
|
|
81
|
-
})) || [], !0);
|
|
82
|
-
}
|
|
83
|
-
}, {
|
|
84
|
-
key: "componentsBaseDirs",
|
|
85
|
-
get: function () {
|
|
86
|
-
return this.componentsFullPaths.map(function (param) {
|
|
87
|
-
for (var [_, fullPath] = param, rootPath = dirname(fullPath); rootPath.length > 1;) {
|
|
88
|
-
var pkg = join(rootPath, "package.json"),
|
|
89
|
-
hasPkg = existsSync(pkg);
|
|
90
|
-
if (hasPkg) return rootPath;
|
|
91
|
-
rootPath = join(rootPath, "..");
|
|
92
|
-
}
|
|
93
|
-
throw new Error(`Couldn't find package.json in any path above: ${fullPath}`);
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
|
-
key: "defaultAliases",
|
|
98
|
-
get: function () {
|
|
99
|
-
return Object.fromEntries(this.safeResolves([["@tamagui/core/reset.css", "@tamagui/core/reset.css"], ["@tamagui/core", "@tamagui/core"], ["@tamagui/web", "@tamagui/web"],
|
|
100
|
-
// fixes https://github.com/kentcdodds/mdx-bundler/issues/143
|
|
101
|
-
// `react/jsx-runtime` and `react/jsx-dev-runtime` will break the build in nextjs 15 + app router
|
|
102
|
-
["react/jsx-runtime.js", "react/jsx-runtime"], ["react/jsx-dev-runtime.js", "react/jsx-dev-runtime"], ...(this.options.useTamaguiSVG ? [["react-native-svg", "@tamagui/react-native-svg"]] : []), ...(this.options.useReactNativeWebLite ? [["react-native$", "@tamagui/react-native-web-lite"], ["react-native-web$", "@tamagui/react-native-web-lite"]] : [["react-native$", "react-native-web"], ["react-native-web$", "react-native-web"]])]));
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
key: "apply",
|
|
106
|
-
value: function (compiler) {
|
|
107
|
-
var _this = this,
|
|
108
|
-
_existing_find,
|
|
109
|
-
_compiler_options_resolve,
|
|
110
|
-
_compiler_options_resolve_fallback,
|
|
111
|
-
_crypto;
|
|
112
|
-
if (Static.loadTamaguiSync(this.options), compiler.options.mode === "development" && !this.options.disableWatchConfig && watchTamaguiConfig(this.options).then(function (watcher) {
|
|
113
|
-
process.once("exit", function () {
|
|
114
|
-
watcher?.dispose();
|
|
115
|
-
});
|
|
116
|
-
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, function (nmf) {
|
|
117
|
-
nmf.hooks.createModule.tap(_this.pluginName,
|
|
118
|
-
// @ts-expect-error CreateData is typed as 'object'...
|
|
119
|
-
function (createData) {
|
|
120
|
-
var _createData_matchResource;
|
|
121
|
-
!((_createData_matchResource = createData.matchResource) === null || _createData_matchResource === void 0) && _createData_matchResource.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
122
|
-
});
|
|
123
|
-
}), !this.options.disableAliases) {
|
|
124
|
-
var existingAlias = compiler.options.resolve.alias;
|
|
125
|
-
Array.isArray(existingAlias) || typeof existingAlias == "object" && Object.assign(existingAlias, this.defaultAliases);
|
|
126
|
-
}
|
|
127
|
-
var excludeExports = this.options.excludeReactNativeWebExports;
|
|
128
|
-
if (excludeExports && Array.isArray(excludeExports)) try {
|
|
129
|
-
var regexStr = `react-native-web(-lite)?/.*(${excludeExports.join("|")}).*js`,
|
|
130
|
-
regex = new RegExp(regexStr);
|
|
131
|
-
compiler.hooks.environment.tap("MyPlugin", function () {
|
|
132
|
-
var definePlugin = new webpack.NormalModuleReplacementPlugin(regex, requireResolve("@tamagui/proxy-worm"));
|
|
133
|
-
definePlugin.apply(compiler);
|
|
134
|
-
});
|
|
135
|
-
} catch {
|
|
136
|
-
console.warn(`Invalid names provided to excludeReactNativeWebExports: ${excludeExports.join(", ")}`);
|
|
137
|
-
}
|
|
138
|
-
this.options.emitSingleCSSFile && (console.info(" \u27A1 [tamagui] \u{1F3A8} combining css into one file"), compiler.hooks.make.tap(this.pluginName, function (compilation) {
|
|
139
|
-
compilation.hooks.processAssets.tap(_this.pluginName, function (assets) {
|
|
140
|
-
try {
|
|
141
|
-
var cssFiles = Object.keys(assets).filter(function (asset) {
|
|
142
|
-
return asset.endsWith(".css");
|
|
143
|
-
});
|
|
144
|
-
if (cssFiles.length === 0) return;
|
|
145
|
-
var combinedCSS = cssFiles.reduce(function (acc, file) {
|
|
146
|
-
var cssContent = compilation.assets[file].source();
|
|
147
|
-
return `${acc}
|
|
148
|
-
${cssContent}`;
|
|
149
|
-
}, ""),
|
|
150
|
-
_iteratorNormalCompletion2 = !0,
|
|
151
|
-
_didIteratorError2 = !1,
|
|
152
|
-
_iteratorError2 = void 0;
|
|
153
|
-
try {
|
|
154
|
-
for (var _iterator2 = cssFiles.entries()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
155
|
-
var [index2, cssFile] = _step2.value;
|
|
156
|
-
index2 > 0 ? compilation.updateAsset(cssFile, new compiler.webpack.sources.RawSource("")) : (console.info(` \u27A1 [tamagui] \u{1F3A8} emitting single css to ${cssFile}`), compilation.updateAsset(cssFile, new compiler.webpack.sources.RawSource(Buffer.from(combinedCSS))));
|
|
157
|
-
}
|
|
158
|
-
} catch (err) {
|
|
159
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
160
|
-
} finally {
|
|
161
|
-
try {
|
|
162
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
163
|
-
} finally {
|
|
164
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
} catch (error) {
|
|
168
|
-
compilation.errors.push(error);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
})), compiler.options.resolve.extensions = [... /* @__PURE__ */new Set([".web.tsx", ".web.ts", ".web.js", ".ts", ".tsx", ".js", ...(compiler.options.resolve.extensions || [])])], (_compiler_options_resolve = compiler.options.resolve).fallback || (_compiler_options_resolve.fallback = {}), (_compiler_options_resolve_fallback = compiler.options.resolve.fallback)[_crypto = "crypto"] || (_compiler_options_resolve_fallback[_crypto] = !1);
|
|
172
|
-
var mainFields = compiler.options.resolve.mainFields;
|
|
173
|
-
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !!compiler.options.module) {
|
|
174
|
-
var {
|
|
175
|
-
jsLoader
|
|
176
|
-
} = this.options,
|
|
177
|
-
existing = compiler.options.module.rules,
|
|
178
|
-
_existing_find_oneOf,
|
|
179
|
-
rules = (_existing_find_oneOf = (_existing_find = existing.find(function (x) {
|
|
180
|
-
return typeof x == "object" && "oneOf" in x ? x : null;
|
|
181
|
-
})) === null || _existing_find === void 0 ? void 0 : _existing_find.oneOf) !== null && _existing_find_oneOf !== void 0 ? _existing_find_oneOf : existing,
|
|
182
|
-
tamaguiLoader = {
|
|
183
|
-
loader: requireResolve("tamagui-loader"),
|
|
184
|
-
options: {
|
|
185
|
-
...this.options,
|
|
186
|
-
_disableLoadTamagui: !0
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
didReplaceNextJS = !1,
|
|
190
|
-
_iteratorNormalCompletion = !0,
|
|
191
|
-
_didIteratorError = !1,
|
|
192
|
-
_iteratorError = void 0;
|
|
193
|
-
try {
|
|
194
|
-
for (var _iterator = rules.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
195
|
-
var [index, rule] = _step.value,
|
|
196
|
-
_rule_use,
|
|
197
|
-
shouldReplaceNextJSRule = ((rule == null || (_rule_use = rule.use) === null || _rule_use === void 0 ? void 0 : _rule_use.loader) === "next-swc-loader" || Array.isArray(rule?.use) && rule?.use[0].loader === "next-swc-loader") && !rule.issuerLayer;
|
|
198
|
-
if (shouldReplaceNextJSRule) {
|
|
199
|
-
didReplaceNextJS = !0;
|
|
200
|
-
var _this_options_test, _ref, _this_options_exclude;
|
|
201
|
-
rules[index] = {
|
|
202
|
-
...rule,
|
|
203
|
-
test: (_ref = (_this_options_test = this.options.test) !== null && _this_options_test !== void 0 ? _this_options_test : rule.test) !== null && _ref !== void 0 ? _ref : /\.m?[jt]sx?$/,
|
|
204
|
-
exclude: (_this_options_exclude = this.options.exclude) !== null && _this_options_exclude !== void 0 ? _this_options_exclude : rule.exclude,
|
|
205
|
-
use: [...(jsLoader ? [jsLoader] : []), ...(rule.use ? [].concat(rule.use) : []), tamaguiLoader]
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
} catch (err) {
|
|
210
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
211
|
-
} finally {
|
|
212
|
-
try {
|
|
213
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
214
|
-
} finally {
|
|
215
|
-
if (_didIteratorError) throw _iteratorError;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (!didReplaceNextJS && compiler.options.mode === "development") {
|
|
219
|
-
var _this_options_test1;
|
|
220
|
-
existing.push({
|
|
221
|
-
test: (_this_options_test1 = this.options.test) !== null && _this_options_test1 !== void 0 ? _this_options_test1 : /\.tsx$/,
|
|
222
|
-
exclude: this.options.exclude,
|
|
223
|
-
use: [tamaguiLoader]
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}]), TamaguiPlugin2;
|
|
229
|
-
}();
|
|
230
|
-
export { TamaguiPlugin };
|
|
231
|
-
//# sourceMappingURL=TamaguiPlugin.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Static","existsSync","dirname","join","webpack","requireResolve","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","value","watchTamaguiConfig","TamaguiPlugin","TamaguiPlugin2","_this","options","arguments","platform","components","pluginName","safeResolves","resolves","multiple","res","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","out","mod","endsWith","push","err","_process_env_DEBUG","includes","process","env","DEBUG","startsWith","console","info","return","isInComponentModule","fullPath","componentsBaseDirs","some","componentDir","get","_this_options_components","map","moduleName","componentsFullPaths","param","_","rootPath","pkg","hasPkg","Error","fromEntries","useTamaguiSVG","useReactNativeWebLite","compiler","_existing_find","_compiler_options_resolve","_compiler_options_resolve_fallback","_crypto","loadTamaguiSync","mode","disableWatchConfig","then","watcher","once","dispose","hooks","normalModuleFactory","tap","nmf","createModule"],"sources":["../../src/TamaguiPlugin.ts"],"sourcesContent":[null],"mappings":"AACA,OAAOA,MAAA,MAAY;AACnB,SAASC,UAAA,QAAkB;AAC3B,SAASC,OAAA,EAASC,IAAA,QAAY;AAE9B,OAAOC,OAAA,MAAa;AACpB,SAASC,cAAA,QAAsB;AAE/B,SAAQC,kBAAmBC,QAAI,EAAAC,WAAA;EAcxB,IAAM,EAAAD,QAAA,YAAcC,WAAA,GAGzB,UACSC,SAAA,CAAyB;AAAA;AACpB,SACVC,iBAAaA,CAAAC,MAAe,EAAAC,KAAA;EAC9B,KACA,IAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA;IAJO,IAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA;IAINE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,QAAAD,UAAA,CAAAE,YAAA,kBAAAF,UAAA,KAAAA,UAAA,CAAAG,QAAA,QAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAI,UAAA,CAAAM,GAAA,EAAAN,UAAA;EAPH;AAAa;AAUX,SAAAO,aAAyBA,CAAAd,WAAA,EAAAe,UAAA,EAAAC,WAAA;EACzB,OAAAD,UAAY,IAAKb,iBAAkB,CAAAF,WAAA,CAAAiB,SAAA,EAAAF,UAAA,GAAAC,WAAA,IAAAd,iBAAA,CAAAF,WAAA,EAAAgB,WAAA,GAAAhB,WAAA;AACjC;AACE,SAAAkB,gBAAeA,CAAGC,GAAC,EAAAN,GAAA,EAAAO,KAAA;EACnB,OAAAP,GAAA,IAAAM,GAAA,GAAAR,MAAA,CAAAC,cAAA,CAAAO,GAAA,EAAAN,GAAA;IAAAO,KACF;IACAZ,UAAI;IACFC,YAAI,EAAM;IAE2BC,QAEvC,GAAS;EACP,KAAAS,GAAA,CAAAN,GAAI,IAAIO,K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
|
2
|
-
this.async();
|
|
3
|
-
var options = {
|
|
4
|
-
...this.getOptions()
|
|
5
|
-
},
|
|
6
|
-
out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
7
|
-
if (out) return this.callback(null, out || "");
|
|
8
|
-
this.callback({
|
|
9
|
-
message: "No CSS found",
|
|
10
|
-
name: "missing_css"
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export { loader as default };
|
|
14
|
-
//# sourceMappingURL=css.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["loader","async","options","getOptions","out","Buffer","from","cssData","toString","callback"],"sources":["../../src/css.ts"],"sourcesContent":[null],"mappings":"AAGe,SAARA,OAAA,EAA6D;EAClE,KAAKC,KAAA,CAAM;EACX,IAAAC,OAAM;MACN,GAAI,KAAMC,UAAO;IACjB;IAAAC,GAAI,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,OAAA,CAAAK,OAAA,YAAAC,QAAA;EAEF,IAAAJ,GAAA,EAEF,OAAK,KAASK,QAAE,KAAS,EAAAL,GAAA;EAC3B,KAAAK,QAAA","ignoreList":[]}
|
package/dist/esm/index.native.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "./polyfills.native.js";
|
|
2
|
-
import { loader } from "./loader.native.js";
|
|
3
|
-
export * from "./TamaguiPlugin.native.js";
|
|
4
|
-
export * from "./shouldExclude.native.js";
|
|
5
|
-
var index_default = loader;
|
|
6
|
-
export { index_default as default };
|
|
7
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["loader","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,SAASA,MAAA,QAAc;AAGvB,cAAc;AACd,cAAc;AAFd,IAAOC,aAAA,GAAQD,MAAA","ignoreList":[]}
|