tamagui-loader 1.61.2 → 1.62.0
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.js +30 -55
- package/dist/cjs/TamaguiPlugin.js.map +2 -2
- package/dist/cjs/TamaguiPlugin.native.js +126 -0
- package/dist/cjs/TamaguiPlugin.native.js.map +6 -0
- package/dist/cjs/css.js +6 -11
- package/dist/cjs/css.js.map +1 -1
- package/dist/cjs/css.native.js +29 -0
- package/dist/cjs/css.native.js.map +6 -0
- package/dist/cjs/index.js +10 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +44 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/loader.js +24 -48
- package/dist/cjs/loader.js.map +2 -2
- package/dist/cjs/loader.native.js +80 -0
- package/dist/cjs/loader.native.js.map +6 -0
- package/dist/esm/TamaguiPlugin.js +23 -42
- package/dist/esm/TamaguiPlugin.js.map +2 -2
- package/dist/esm/css.js +1 -2
- package/dist/esm/css.js.map +1 -1
- package/dist/esm/index.js +3 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +17 -35
- package/dist/esm/loader.js.map +2 -2
- package/package.json +4 -4
- package/src/TamaguiPlugin.ts +1 -0
- package/types/TamaguiPlugin.d.ts.map +1 -1
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
14
11
|
for (let key of __getOwnPropNames(from))
|
|
15
|
-
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
13
|
return to;
|
|
19
14
|
};
|
|
20
15
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -22,10 +17,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
17
|
// file that has been converted to a CommonJS file using a Babel-
|
|
23
18
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
19
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable:
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
26
21
|
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
29
23
|
var TamaguiPlugin_exports = {};
|
|
30
24
|
__export(TamaguiPlugin_exports, {
|
|
31
25
|
TamaguiPlugin: () => TamaguiPlugin
|
|
@@ -34,33 +28,26 @@ module.exports = __toCommonJS(TamaguiPlugin_exports);
|
|
|
34
28
|
var import_static = require("@tamagui/static");
|
|
35
29
|
class TamaguiPlugin {
|
|
36
30
|
constructor(options = {
|
|
31
|
+
platform: "web",
|
|
37
32
|
components: ["@tamagui/core"]
|
|
38
33
|
}) {
|
|
39
34
|
this.options = options;
|
|
40
|
-
this.pluginName = "TamaguiPlugin";
|
|
41
35
|
}
|
|
36
|
+
pluginName = "TamaguiPlugin";
|
|
42
37
|
apply(compiler) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
process.once("exit", () => {
|
|
47
|
-
watcher.dispose();
|
|
48
|
-
});
|
|
38
|
+
this.options.disableWatchConfig || (0, import_static.watchTamaguiConfig)(this.options).then((watcher) => {
|
|
39
|
+
process.once("exit", () => {
|
|
40
|
+
watcher.dispose();
|
|
49
41
|
});
|
|
50
|
-
}
|
|
51
|
-
compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
|
|
42
|
+
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
|
|
52
43
|
nmf.hooks.createModule.tap(
|
|
53
44
|
this.pluginName,
|
|
54
45
|
// @ts-expect-error CreateData is typed as 'object'...
|
|
55
46
|
(createData) => {
|
|
56
|
-
|
|
57
|
-
if ((_a2 = createData.matchResource) == null ? void 0 : _a2.endsWith(".tamagui.css")) {
|
|
58
|
-
createData.settings.sideEffects = true;
|
|
59
|
-
}
|
|
47
|
+
createData.matchResource?.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
60
48
|
}
|
|
61
49
|
);
|
|
62
|
-
})
|
|
63
|
-
compiler.options.resolve.extensions = [
|
|
50
|
+
}), compiler.options.resolve.extensions = [
|
|
64
51
|
.../* @__PURE__ */ new Set([
|
|
65
52
|
".web.tsx",
|
|
66
53
|
".web.ts",
|
|
@@ -72,30 +59,20 @@ class TamaguiPlugin {
|
|
|
72
59
|
])
|
|
73
60
|
];
|
|
74
61
|
const mainFields = compiler.options.resolve.mainFields;
|
|
75
|
-
if (mainFields)
|
|
76
|
-
compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields];
|
|
77
|
-
if (!this.options.disableModuleJSXEntry)
|
|
78
|
-
mainFields.unshift("module:jsx");
|
|
79
|
-
}
|
|
80
|
-
if (!compiler.options.module) {
|
|
62
|
+
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !compiler.options.module)
|
|
81
63
|
return;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const rules = ((_a = existing.find((x) => typeof x === "object" && "oneOf" in x ? x : null)) == null ? void 0 : _a.oneOf) ?? existing;
|
|
86
|
-
const nextJsRules = rules.findIndex(
|
|
87
|
-
(x) => (x == null ? void 0 : x.use) && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api"
|
|
88
|
-
);
|
|
89
|
-
const esbuildLoader = {
|
|
64
|
+
const { jsLoader } = this.options, existing = compiler.options.module.rules, rules = existing.find((x) => typeof x == "object" && "oneOf" in x ? x : null)?.oneOf ?? existing, nextJsRules = rules.findIndex(
|
|
65
|
+
(x) => x?.use && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api"
|
|
66
|
+
), esbuildLoader = {
|
|
90
67
|
loader: require.resolve("esbuild-loader"),
|
|
91
68
|
options: {
|
|
92
69
|
target: "es2021",
|
|
93
|
-
keepNames:
|
|
70
|
+
keepNames: !0,
|
|
94
71
|
loader: "tsx",
|
|
95
72
|
tsconfigRaw: {
|
|
96
73
|
module: this.options.isServer ? "commonjs" : "esnext",
|
|
97
|
-
isolatedModules:
|
|
98
|
-
resolveJsonModule:
|
|
74
|
+
isolatedModules: !0,
|
|
75
|
+
resolveJsonModule: !0
|
|
99
76
|
}
|
|
100
77
|
}
|
|
101
78
|
};
|
|
@@ -106,36 +83,34 @@ class TamaguiPlugin {
|
|
|
106
83
|
...this.options
|
|
107
84
|
}
|
|
108
85
|
};
|
|
109
|
-
if (nextJsRules === -1)
|
|
86
|
+
if (nextJsRules === -1)
|
|
110
87
|
existing.push({
|
|
111
88
|
test: /\/jsx\/.*\.m?[jt]sx?$/,
|
|
112
89
|
exclude: this.options.exclude,
|
|
113
90
|
resolve: {
|
|
114
|
-
fullySpecified:
|
|
91
|
+
fullySpecified: !1
|
|
115
92
|
},
|
|
116
93
|
use: [esbuildLoader]
|
|
117
|
-
})
|
|
118
|
-
existing.push({
|
|
94
|
+
}), existing.push({
|
|
119
95
|
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
120
96
|
exclude: this.options.exclude,
|
|
121
97
|
resolve: {
|
|
122
|
-
fullySpecified:
|
|
98
|
+
fullySpecified: !1
|
|
123
99
|
},
|
|
124
100
|
use: [tamaguiLoader]
|
|
125
101
|
});
|
|
126
|
-
|
|
127
|
-
const startIndex = nextJsRules ? nextJsRules + 1 : 0;
|
|
128
|
-
const existingLoader = nextJsRules ? rules[startIndex] : void 0;
|
|
102
|
+
else if (!this.options.disableEsbuildLoader) {
|
|
103
|
+
const startIndex = nextJsRules ? nextJsRules + 1 : 0, existingLoader = nextJsRules ? rules[startIndex] : void 0;
|
|
129
104
|
rules.splice(startIndex, 0, {
|
|
130
105
|
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
131
106
|
exclude: this.options.exclude,
|
|
132
107
|
resolve: {
|
|
133
|
-
fullySpecified:
|
|
108
|
+
fullySpecified: !1
|
|
134
109
|
},
|
|
135
110
|
use: [
|
|
136
111
|
...jsLoader ? [jsLoader] : [],
|
|
137
112
|
...existingLoader && nextJsRules ? [].concat(existingLoader.use) : [],
|
|
138
|
-
|
|
113
|
+
...jsLoader || existingLoader ? [] : [esbuildLoader],
|
|
139
114
|
tamaguiLoader
|
|
140
115
|
]
|
|
141
116
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TamaguiPlugin.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names":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AAAA,YAC7B,GAAI,kBAAkB,cAAc,CAAC,EAAE,OAAO,eAAe,GAAG,IAAI,CAAC;AAAA,YACrE,GAAM,YAAY,iBAAoC,CAAC,IAAnB,CAAC,aAAa;AAAA,YAClD;AAAA,UACF;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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 TamaguiPlugin_exports = {};
|
|
25
|
+
__export(TamaguiPlugin_exports, {
|
|
26
|
+
TamaguiPlugin: () => TamaguiPlugin
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(TamaguiPlugin_exports);
|
|
29
|
+
var import_static = require("@tamagui/static");
|
|
30
|
+
class TamaguiPlugin {
|
|
31
|
+
constructor(options = {
|
|
32
|
+
platform: "web",
|
|
33
|
+
components: ["@tamagui/core"]
|
|
34
|
+
}) {
|
|
35
|
+
this.options = options;
|
|
36
|
+
this.pluginName = "TamaguiPlugin";
|
|
37
|
+
}
|
|
38
|
+
apply(compiler) {
|
|
39
|
+
this.options.disableWatchConfig || (0, import_static.watchTamaguiConfig)(this.options).then((watcher) => {
|
|
40
|
+
process.once("exit", () => {
|
|
41
|
+
watcher.dispose();
|
|
42
|
+
});
|
|
43
|
+
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
|
|
44
|
+
nmf.hooks.createModule.tap(
|
|
45
|
+
this.pluginName,
|
|
46
|
+
// @ts-expect-error CreateData is typed as 'object'...
|
|
47
|
+
(createData) => {
|
|
48
|
+
createData.matchResource?.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}), compiler.options.resolve.extensions = [
|
|
52
|
+
.../* @__PURE__ */ new Set([
|
|
53
|
+
".web.tsx",
|
|
54
|
+
".web.ts",
|
|
55
|
+
".web.js",
|
|
56
|
+
".ts",
|
|
57
|
+
".tsx",
|
|
58
|
+
".js",
|
|
59
|
+
...compiler.options.resolve.extensions || []
|
|
60
|
+
])
|
|
61
|
+
];
|
|
62
|
+
const mainFields = compiler.options.resolve.mainFields;
|
|
63
|
+
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !compiler.options.module)
|
|
64
|
+
return;
|
|
65
|
+
const { jsLoader } = this.options, existing = compiler.options.module.rules, rules = existing.find((x) => typeof x == "object" && "oneOf" in x ? x : null)?.oneOf ?? existing, nextJsRules = rules.findIndex(
|
|
66
|
+
(x) => x?.use && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api"
|
|
67
|
+
), esbuildLoader = {
|
|
68
|
+
loader: require.resolve("esbuild-loader"),
|
|
69
|
+
options: {
|
|
70
|
+
target: "es2021",
|
|
71
|
+
keepNames: !0,
|
|
72
|
+
loader: "tsx",
|
|
73
|
+
tsconfigRaw: {
|
|
74
|
+
module: this.options.isServer ? "commonjs" : "esnext",
|
|
75
|
+
isolatedModules: !0,
|
|
76
|
+
resolveJsonModule: !0
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
if (!this.options.disable) {
|
|
81
|
+
const tamaguiLoader = {
|
|
82
|
+
loader: require.resolve("tamagui-loader"),
|
|
83
|
+
options: {
|
|
84
|
+
...this.options
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
if (nextJsRules === -1)
|
|
88
|
+
existing.push({
|
|
89
|
+
test: /\/jsx\/.*\.m?[jt]sx?$/,
|
|
90
|
+
exclude: this.options.exclude,
|
|
91
|
+
resolve: {
|
|
92
|
+
fullySpecified: !1
|
|
93
|
+
},
|
|
94
|
+
use: [esbuildLoader]
|
|
95
|
+
}), existing.push({
|
|
96
|
+
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
97
|
+
exclude: this.options.exclude,
|
|
98
|
+
resolve: {
|
|
99
|
+
fullySpecified: !1
|
|
100
|
+
},
|
|
101
|
+
use: [tamaguiLoader]
|
|
102
|
+
});
|
|
103
|
+
else if (!this.options.disableEsbuildLoader) {
|
|
104
|
+
const startIndex = nextJsRules ? nextJsRules + 1 : 0, existingLoader = nextJsRules ? rules[startIndex] : void 0;
|
|
105
|
+
rules.splice(startIndex, 0, {
|
|
106
|
+
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
107
|
+
exclude: this.options.exclude,
|
|
108
|
+
resolve: {
|
|
109
|
+
fullySpecified: !1
|
|
110
|
+
},
|
|
111
|
+
use: [
|
|
112
|
+
...jsLoader ? [jsLoader] : [],
|
|
113
|
+
...existingLoader && nextJsRules ? [].concat(existingLoader.use) : [],
|
|
114
|
+
...jsLoader || existingLoader ? [] : [esbuildLoader],
|
|
115
|
+
tamaguiLoader
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
123
|
+
0 && (module.exports = {
|
|
124
|
+
TamaguiPlugin
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=TamaguiPlugin.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/TamaguiPlugin.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmD;AAc5C,MAAM,cAAc;AAAA,EAGzB,YACS,UAAyB;AAAA,IAC9B,UAAU;AAAA,IACV,YAAY,CAAC,eAAe;AAAA,EAC9B,GACA;AAJO;AAHT,sBAAa;AAAA,EAOV;AAAA,EAEH,MAAM,UAAoB;AACxB,IAAK,KAAK,QAAQ,0BACX,kCAAmB,KAAK,OAAO,EAAE,KAAK,CAAC,YAAY;AAEtD,cAAQ,KAAK,QAAQ,MAAM;AACzB,gBAAQ,QAAQ;AAAA,MAClB,CAAC;AAAA,IACH,CAAC,GAIH,SAAS,MAAM,oBAAoB,IAAI,KAAK,YAAY,CAAC,QAAQ;AAC/D,UAAI,MAAM,aAAa;AAAA,QACrB,KAAK;AAAA;AAAA,QAEL,CAAC,eAAgF;AAC/E,UAAI,WAAW,eAAe,SAAS,cAAc,MACnD,WAAW,SAAS,cAAc;AAAA,QAEtC;AAAA,MACF;AAAA,IACF,CAAC,GAED,SAAS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A,KAAK,CAAC,aAAa;AAAA,QACrB,CAAC,GAGD,SAAS,KAAK;AAAA,UACZ,MAAM,KAAK,QAAQ,QAAQ;AAAA,UAC3B,SAAS,KAAK,QAAQ;AAAA,UACtB,SAAS;AAAA,YACP,gBAAgB;AAAA,UAClB;AAAA,UACA,KAAK,CAAC,aAAa;AAAA,QACrB,CAAC;AAAA,eACQ,CAAC,KAAK,QAAQ,sBAAsB;AAC7C,cAAM,aAAa,cAAc,cAAc,IAAI,GAC7C,iBAAiB,cAAc,MAAM,UAAU,IAAI;AAEzD,cAAM,OAAO,YAAY,GAAG;AAAA,UAC1B,MAAM,KAAK,QAAQ,QAAQ;AAAA,UAC3B,SAAS,KAAK,QAAQ;AAAA,UACtB,SAAS;AAAA,YACP,gBAAgB;AAAA,UAClB;AAAA,UACA,KAAK;AAAA,YACH,GAAI,WAAW,CAAC,QAAQ,IAAI,CAAC;AAAA,YAC7B,GAAI,kBAAkB,cAAc,CAAC,EAAE,OAAO,eAAe,GAAG,IAAI,CAAC;AAAA,YACrE,GAAM,YAAY,iBAAoC,CAAC,IAAnB,CAAC,aAAa;AAAA,YAClD;AAAA,UACF;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/css.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var css_exports = {};
|
|
20
16
|
__export(css_exports, {
|
|
21
17
|
default: () => loader
|
|
@@ -25,9 +21,8 @@ function loader() {
|
|
|
25
21
|
this.async();
|
|
26
22
|
const options = { ...this.getOptions() };
|
|
27
23
|
let out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
28
|
-
if (out)
|
|
24
|
+
if (out)
|
|
29
25
|
return this.callback(null, out || "");
|
|
30
|
-
}
|
|
31
26
|
this.callback({ message: "No CSS found", name: "missing_css" });
|
|
32
27
|
}
|
|
33
28
|
//# sourceMappingURL=css.js.map
|
package/dist/cjs/css.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/css.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGe,SAAR,SAA6D;AAClE,OAAK,MAAM;AACX,QAAM,UAAU,EAAE,GAAG,KAAK,WAAW,EAAE;AACvC,MAAI,MAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AACjE,MAAI;AAEF,WAAO,KAAK,SAAS,MAAM,OAAO,EAAE;AAEtC,OAAK,SAAS,EAAE,SAAS,gBAAgB,MAAM,cAAc,CAAC;AAChE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const options = { ...this.getOptions() };
|
|
24
|
+
let out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
25
|
+
if (out)
|
|
26
|
+
return this.callback(null, out || "");
|
|
27
|
+
this.callback({ message: "No CSS found", name: "missing_css" });
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=css.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/css.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGe,SAAR,SAA6D;AAClE,OAAK,MAAM;AACX,QAAM,UAAU,EAAE,GAAG,KAAK,WAAW,EAAE;AACvC,MAAI,MAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AACjE,MAAI;AAEF,WAAO,KAAK,SAAS,MAAM,OAAO,EAAE;AAEtC,OAAK,SAAS,EAAE,SAAS,gBAAgB,MAAM,cAAc,CAAC;AAChE;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
14
11
|
for (let key of __getOwnPropNames(from))
|
|
15
|
-
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
13
|
return to;
|
|
19
|
-
}
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
14
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
15
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
16
|
// file that has been converted to a CommonJS file using a Babel-
|
|
24
17
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
18
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable:
|
|
19
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
27
20
|
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
30
22
|
var src_exports = {};
|
|
31
23
|
__export(src_exports, {
|
|
32
24
|
default: () => src_default,
|
|
@@ -35,16 +27,11 @@ __export(src_exports, {
|
|
|
35
27
|
module.exports = __toCommonJS(src_exports);
|
|
36
28
|
var import_path = __toESM(require("path"));
|
|
37
29
|
__reExport(src_exports, require("./TamaguiPlugin"), module.exports);
|
|
38
|
-
process.env.TAMAGUI_TARGET =
|
|
30
|
+
process.env.TAMAGUI_TARGET = "web";
|
|
39
31
|
process.env.IS_STATIC = "is_static";
|
|
40
32
|
process.env.TAMAGUI_IS_SERVER = "true";
|
|
41
33
|
var src_default = require("./loader").loader;
|
|
42
|
-
const shouldExclude = (filePath, projectRoot) =>
|
|
43
|
-
if (filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath)) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
return true;
|
|
47
|
-
};
|
|
34
|
+
const shouldExclude = (filePath, projectRoot) => !(filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
48
35
|
function isTamaguiDistJSX(filePath) {
|
|
49
36
|
return filePath.includes("/dist/jsx/".replace(/\//g, import_path.default.sep));
|
|
50
37
|
}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AAQjB,wBAAc,4BARd;AAIA,QAAQ,IAAI,iBAAiB;AAC7B,QAAQ,IAAI,YAAY;AACxB,QAAQ,IAAI,oBAAoB;AAIhC,IAAO,cAAQ,QAAQ,UAAU,EAAE;AAI5B,MAAM,gBAAgB,CAAC,UAAkB,gBAE3C,WAAS,SAAS,WAAW,KAAK,SAAS,SAAS,IAAI,KACzD,iBAAiB,QAAQ;AAO7B,SAAS,iBAAiB,UAAkB;AAC1C,SAAO,SAAS,SAAS,aAAa,QAAQ,OAAO,YAAAA,QAAK,GAAG,CAAC;AAChE;",
|
|
5
5
|
"names": ["path"]
|
|
6
6
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var src_exports = {};
|
|
24
|
+
__export(src_exports, {
|
|
25
|
+
default: () => src_default,
|
|
26
|
+
shouldExclude: () => shouldExclude
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(src_exports);
|
|
29
|
+
var import_path = __toESM(require("path"));
|
|
30
|
+
__reExport(src_exports, require("./TamaguiPlugin"), module.exports);
|
|
31
|
+
process.env.TAMAGUI_TARGET = "native";
|
|
32
|
+
process.env.IS_STATIC = "is_static";
|
|
33
|
+
process.env.TAMAGUI_IS_SERVER = "true";
|
|
34
|
+
var src_default = require("./loader").loader;
|
|
35
|
+
const shouldExclude = (filePath, projectRoot) => !(filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
36
|
+
function isTamaguiDistJSX(filePath) {
|
|
37
|
+
return filePath.includes("/dist/jsx/".replace(/\//g, import_path.default.sep));
|
|
38
|
+
}
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
shouldExclude,
|
|
42
|
+
...require("./TamaguiPlugin")
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AAQjB,wBAAc,4BARd;AAIA,QAAQ,IAAI,iBAAiB;AAC7B,QAAQ,IAAI,YAAY;AACxB,QAAQ,IAAI,oBAAoB;AAIhC,IAAO,cAAQ,QAAQ,UAAU,EAAE;AAI5B,MAAM,gBAAgB,CAAC,UAAkB,gBAE3C,WAAS,SAAS,WAAW,KAAK,SAAS,SAAS,IAAI,KACzD,iBAAiB,QAAQ;AAO7B,SAAS,iBAAiB,UAAkB;AAC1C,SAAO,SAAS,SAAS,aAAa,QAAQ,OAAO,YAAAA,QAAK,GAAG,CAAC;AAChE;",
|
|
5
|
+
"names": ["path"]
|
|
6
|
+
}
|
package/dist/cjs/loader.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
14
11
|
for (let key of __getOwnPropNames(from))
|
|
15
|
-
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
13
|
return to;
|
|
19
14
|
};
|
|
20
15
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
@@ -22,62 +17,46 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
17
|
// file that has been converted to a CommonJS file using a Babel-
|
|
23
18
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
19
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable:
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
26
21
|
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
29
23
|
var loader_exports = {};
|
|
30
24
|
__export(loader_exports, {
|
|
31
25
|
loader: () => loader
|
|
32
26
|
});
|
|
33
27
|
module.exports = __toCommonJS(loader_exports);
|
|
34
28
|
var import_static = require("@tamagui/static");
|
|
35
|
-
Error.stackTraceLimit =
|
|
29
|
+
Error.stackTraceLimit = 1 / 0;
|
|
36
30
|
const CSS_LOADER_PATH = require.resolve("./css");
|
|
37
|
-
Error.stackTraceLimit =
|
|
31
|
+
Error.stackTraceLimit = 1 / 0;
|
|
38
32
|
const extractor = (0, import_static.createExtractor)();
|
|
39
33
|
let index = 0;
|
|
40
34
|
process.env.TAMAGUI_TARGET = "web";
|
|
41
|
-
const loader = async function
|
|
42
|
-
this.cacheable(
|
|
43
|
-
const callback = this.async();
|
|
44
|
-
const source = sourceIn.toString();
|
|
35
|
+
const loader = async function(sourceIn) {
|
|
36
|
+
this.cacheable(!0);
|
|
37
|
+
const callback = this.async(), source = sourceIn.toString();
|
|
45
38
|
try {
|
|
46
|
-
const options = { ...this.getOptions() }
|
|
47
|
-
const sourcePath = `${this.resourcePath}`;
|
|
48
|
-
const { shouldDisable, shouldPrintDebug } = (0, import_static.getPragmaOptions)({
|
|
39
|
+
const options = { ...this.getOptions() }, sourcePath = `${this.resourcePath}`, { shouldDisable, shouldPrintDebug } = (0, import_static.getPragmaOptions)({
|
|
49
40
|
source,
|
|
50
41
|
path: sourcePath
|
|
51
42
|
});
|
|
52
|
-
if (shouldPrintDebug === "verbose"
|
|
53
|
-
console.warn(`
|
|
43
|
+
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
54
44
|
|
|
55
45
|
--- Incoming source ---
|
|
56
46
|
|
|
57
|
-
`)
|
|
58
|
-
console.
|
|
59
|
-
}
|
|
60
|
-
if (shouldDisable) {
|
|
61
|
-
if (shouldPrintDebug) {
|
|
62
|
-
console.log("Disabling on file via pragma");
|
|
63
|
-
}
|
|
64
|
-
return callback(null, source);
|
|
65
|
-
}
|
|
66
|
-
const cssPath = `${sourcePath}.${index++}.tamagui.css`;
|
|
67
|
-
const extracted = await (0, import_static.extractToClassNames)({
|
|
47
|
+
`), console.warn(source)), shouldDisable)
|
|
48
|
+
return shouldPrintDebug && console.log("Disabling on file via pragma"), callback(null, source);
|
|
49
|
+
const cssPath = `${sourcePath}.${index++}.tamagui.css`, extracted = await (0, import_static.extractToClassNames)({
|
|
68
50
|
extractor,
|
|
69
51
|
source,
|
|
70
52
|
sourcePath,
|
|
71
53
|
options,
|
|
72
54
|
shouldPrintDebug
|
|
73
55
|
});
|
|
74
|
-
if (!extracted)
|
|
56
|
+
if (!extracted)
|
|
75
57
|
return callback(null, source);
|
|
76
|
-
}
|
|
77
58
|
if (extracted.styles) {
|
|
78
|
-
const cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`;
|
|
79
|
-
const remReq = this.remainingRequest;
|
|
80
|
-
const importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
59
|
+
const cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`, remReq = this.remainingRequest, importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
81
60
|
extracted.js = `${extracted.js}
|
|
82
61
|
|
|
83
62
|
require(${JSON.stringify(importPath)})`;
|
|
@@ -86,14 +65,11 @@ require(${JSON.stringify(importPath)})`;
|
|
|
86
65
|
} catch (err) {
|
|
87
66
|
const message = err instanceof Error ? `${err.message}
|
|
88
67
|
${err.stack}` : String(err);
|
|
89
|
-
console.error(
|
|
90
|
-
`
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
callback(null, source);
|
|
68
|
+
console.error(`Tamagui Webpack Loader Error:
|
|
69
|
+
`, ` ${message}
|
|
70
|
+
`), message.includes("Cannot create proxy") && console.log(
|
|
71
|
+
"This is usually due to components not loading at build-time. Check for logs just below the line above:"
|
|
72
|
+
), callback(null, source);
|
|
97
73
|
}
|
|
98
74
|
};
|
|
99
75
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/cjs/loader.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
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,IACzE;AAEA,aAAS,MAAM,UAAU,IAAI,UAAU,GAAG;AAAA,EAC5C,SAAS,KAAK;AACZ,UAAM,UAAU,eAAe,QAAQ,GAAG,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,KAAK,OAAO,GAAG;AAElF,YAAQ,MAAM;AAAA,GAAmC,KAAK,OAAO;AAAA,CAAI,GAE7D,QAAQ,SAAS,qBAAqB,KAExC,QAAQ;AAAA,MACN;AAAA,IACF,GAGF,SAAS,MAAM,MAAM;AAAA,EACvB;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 = require("@tamagui/static");
|
|
30
|
+
Error.stackTraceLimit = 1 / 0;
|
|
31
|
+
const CSS_LOADER_PATH = require.resolve("./css");
|
|
32
|
+
Error.stackTraceLimit = 1 / 0;
|
|
33
|
+
const extractor = (0, import_static.createExtractor)();
|
|
34
|
+
let index = 0;
|
|
35
|
+
process.env.TAMAGUI_TARGET = "web";
|
|
36
|
+
const loader = async function(sourceIn) {
|
|
37
|
+
this.cacheable(!0);
|
|
38
|
+
const callback = this.async(), source = sourceIn.toString();
|
|
39
|
+
try {
|
|
40
|
+
const options = { ...this.getOptions() }, sourcePath = `${this.resourcePath}`, { shouldDisable, shouldPrintDebug } = (0, import_static.getPragmaOptions)({
|
|
41
|
+
source,
|
|
42
|
+
path: sourcePath
|
|
43
|
+
});
|
|
44
|
+
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
45
|
+
|
|
46
|
+
--- Incoming source ---
|
|
47
|
+
|
|
48
|
+
`), console.warn(source)), shouldDisable)
|
|
49
|
+
return shouldPrintDebug && console.log("Disabling on file via pragma"), callback(null, source);
|
|
50
|
+
const cssPath = `${sourcePath}.${index++}.tamagui.css`, extracted = await (0, import_static.extractToClassNames)({
|
|
51
|
+
extractor,
|
|
52
|
+
source,
|
|
53
|
+
sourcePath,
|
|
54
|
+
options,
|
|
55
|
+
shouldPrintDebug
|
|
56
|
+
});
|
|
57
|
+
if (!extracted)
|
|
58
|
+
return callback(null, source);
|
|
59
|
+
if (extracted.styles) {
|
|
60
|
+
const cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`, remReq = this.remainingRequest, importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
61
|
+
extracted.js = `${extracted.js}
|
|
62
|
+
|
|
63
|
+
require(${JSON.stringify(importPath)})`;
|
|
64
|
+
}
|
|
65
|
+
callback(null, extracted.js, extracted.map);
|
|
66
|
+
} catch (err) {
|
|
67
|
+
const message = err instanceof Error ? `${err.message}
|
|
68
|
+
${err.stack}` : String(err);
|
|
69
|
+
console.error(`Tamagui Webpack Loader Error:
|
|
70
|
+
`, ` ${message}
|
|
71
|
+
`), message.includes("Cannot create proxy") && console.log(
|
|
72
|
+
"This is usually due to components not loading at build-time. Check for logs just below the line above:"
|
|
73
|
+
), callback(null, source);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
+
0 && (module.exports = {
|
|
78
|
+
loader
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/loader.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAKO;AAGP,MAAM,kBAAkB;AAGxB,MAAM,kBAAkB,gBAAgB,OAAO;AAE/C,MAAM,kBAAkB;AACxB,MAAM,gBAAY,+BAAgB;AAElC,IAAI,QAAQ;AAEZ,QAAQ,IAAI,iBAAiB;AAEtB,MAAM,SAAS,eAEpB,UACA;AACA,OAAK,UAAU,EAAI;AACnB,QAAM,WAAW,KAAK,MAAM,GACtB,SAAS,SAAS,SAAS;AAEjC,MAAI;AACF,UAAM,UAA0B,EAAE,GAAG,KAAK,WAAW,EAAE,GACjD,aAAa,GAAG,KAAK,YAAY,IAEjC,EAAE,eAAe,iBAAiB,QAAI,gCAAiB;AAAA,MAC3D;AAAA,MACA,MAAM;AAAA,IACR,CAAC;AAOD,QALI,qBAAqB,cACvB,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA,CAAmC,GAChD,QAAQ,KAAK,MAAM,IAGjB;AACF,aAAI,oBAEF,QAAQ,IAAI,8BAA8B,GAErC,SAAS,MAAM,MAAM;AAG9B,UAAM,UAAU,GAAG,UAAU,IAAI,OAAO,gBAElC,YAAY,UAAM,mCAAoB;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,QAAI,CAAC;AACH,aAAO,SAAS,MAAM,MAAM;AAI9B,QAAI,UAAU,QAAQ;AACpB,YAAM,WAAW,WAAW,OAAO,KAAK,UAAU,MAAM,EAAE,SAAS,QAAQ,CAAC,IACtE,SAAS,KAAK,kBACd,aAAa,GAAG,OAAO,MAAM,eAAe,IAAI,QAAQ,IAAI,MAAM;AACxE,gBAAU,KAAK,GAAG,UAAU,EAAE;AAAA;AAAA,UAAe,KAAK,UAAU,UAAU,CAAC;AAAA,IACzE;AAEA,aAAS,MAAM,UAAU,IAAI,UAAU,GAAG;AAAA,EAC5C,SAAS,KAAK;AACZ,UAAM,UAAU,eAAe,QAAQ,GAAG,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,KAAK,OAAO,GAAG;AAElF,YAAQ,MAAM;AAAA,GAAmC,KAAK,OAAO;AAAA,CAAI,GAE7D,QAAQ,SAAS,qBAAqB,KAExC,QAAQ;AAAA,MACN;AAAA,IACF,GAGF,SAAS,MAAM,MAAM;AAAA,EACvB;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
import { watchTamaguiConfig } from "@tamagui/static";
|
|
2
2
|
class TamaguiPlugin {
|
|
3
3
|
constructor(options = {
|
|
4
|
+
platform: "web",
|
|
4
5
|
components: ["@tamagui/core"]
|
|
5
6
|
}) {
|
|
6
7
|
this.options = options;
|
|
7
|
-
this.pluginName = "TamaguiPlugin";
|
|
8
8
|
}
|
|
9
|
+
pluginName = "TamaguiPlugin";
|
|
9
10
|
apply(compiler) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
process.once("exit", () => {
|
|
14
|
-
watcher.dispose();
|
|
15
|
-
});
|
|
11
|
+
this.options.disableWatchConfig || watchTamaguiConfig(this.options).then((watcher) => {
|
|
12
|
+
process.once("exit", () => {
|
|
13
|
+
watcher.dispose();
|
|
16
14
|
});
|
|
17
|
-
}
|
|
18
|
-
compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
|
|
15
|
+
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
|
|
19
16
|
nmf.hooks.createModule.tap(
|
|
20
17
|
this.pluginName,
|
|
21
18
|
// @ts-expect-error CreateData is typed as 'object'...
|
|
22
19
|
(createData) => {
|
|
23
|
-
|
|
24
|
-
if ((_a2 = createData.matchResource) == null ? void 0 : _a2.endsWith(".tamagui.css")) {
|
|
25
|
-
createData.settings.sideEffects = true;
|
|
26
|
-
}
|
|
20
|
+
createData.matchResource?.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
27
21
|
}
|
|
28
22
|
);
|
|
29
|
-
})
|
|
30
|
-
compiler.options.resolve.extensions = [
|
|
23
|
+
}), compiler.options.resolve.extensions = [
|
|
31
24
|
.../* @__PURE__ */ new Set([
|
|
32
25
|
".web.tsx",
|
|
33
26
|
".web.ts",
|
|
@@ -39,30 +32,20 @@ class TamaguiPlugin {
|
|
|
39
32
|
])
|
|
40
33
|
];
|
|
41
34
|
const mainFields = compiler.options.resolve.mainFields;
|
|
42
|
-
if (mainFields)
|
|
43
|
-
compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields];
|
|
44
|
-
if (!this.options.disableModuleJSXEntry)
|
|
45
|
-
mainFields.unshift("module:jsx");
|
|
46
|
-
}
|
|
47
|
-
if (!compiler.options.module) {
|
|
35
|
+
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !compiler.options.module)
|
|
48
36
|
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const rules = ((_a = existing.find((x) => typeof x === "object" && "oneOf" in x ? x : null)) == null ? void 0 : _a.oneOf) ?? existing;
|
|
53
|
-
const nextJsRules = rules.findIndex(
|
|
54
|
-
(x) => (x == null ? void 0 : x.use) && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api"
|
|
55
|
-
);
|
|
56
|
-
const esbuildLoader = {
|
|
37
|
+
const { jsLoader } = this.options, existing = compiler.options.module.rules, rules = existing.find((x) => typeof x == "object" && "oneOf" in x ? x : null)?.oneOf ?? existing, nextJsRules = rules.findIndex(
|
|
38
|
+
(x) => x?.use && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api"
|
|
39
|
+
), esbuildLoader = {
|
|
57
40
|
loader: require.resolve("esbuild-loader"),
|
|
58
41
|
options: {
|
|
59
42
|
target: "es2021",
|
|
60
|
-
keepNames:
|
|
43
|
+
keepNames: !0,
|
|
61
44
|
loader: "tsx",
|
|
62
45
|
tsconfigRaw: {
|
|
63
46
|
module: this.options.isServer ? "commonjs" : "esnext",
|
|
64
|
-
isolatedModules:
|
|
65
|
-
resolveJsonModule:
|
|
47
|
+
isolatedModules: !0,
|
|
48
|
+
resolveJsonModule: !0
|
|
66
49
|
}
|
|
67
50
|
}
|
|
68
51
|
};
|
|
@@ -73,36 +56,34 @@ class TamaguiPlugin {
|
|
|
73
56
|
...this.options
|
|
74
57
|
}
|
|
75
58
|
};
|
|
76
|
-
if (nextJsRules === -1)
|
|
59
|
+
if (nextJsRules === -1)
|
|
77
60
|
existing.push({
|
|
78
61
|
test: /\/jsx\/.*\.m?[jt]sx?$/,
|
|
79
62
|
exclude: this.options.exclude,
|
|
80
63
|
resolve: {
|
|
81
|
-
fullySpecified:
|
|
64
|
+
fullySpecified: !1
|
|
82
65
|
},
|
|
83
66
|
use: [esbuildLoader]
|
|
84
|
-
})
|
|
85
|
-
existing.push({
|
|
67
|
+
}), existing.push({
|
|
86
68
|
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
87
69
|
exclude: this.options.exclude,
|
|
88
70
|
resolve: {
|
|
89
|
-
fullySpecified:
|
|
71
|
+
fullySpecified: !1
|
|
90
72
|
},
|
|
91
73
|
use: [tamaguiLoader]
|
|
92
74
|
});
|
|
93
|
-
|
|
94
|
-
const startIndex = nextJsRules ? nextJsRules + 1 : 0;
|
|
95
|
-
const existingLoader = nextJsRules ? rules[startIndex] : void 0;
|
|
75
|
+
else if (!this.options.disableEsbuildLoader) {
|
|
76
|
+
const startIndex = nextJsRules ? nextJsRules + 1 : 0, existingLoader = nextJsRules ? rules[startIndex] : void 0;
|
|
96
77
|
rules.splice(startIndex, 0, {
|
|
97
78
|
test: this.options.test ?? /\.m?[jt]sx?$/,
|
|
98
79
|
exclude: this.options.exclude,
|
|
99
80
|
resolve: {
|
|
100
|
-
fullySpecified:
|
|
81
|
+
fullySpecified: !1
|
|
101
82
|
},
|
|
102
83
|
use: [
|
|
103
84
|
...jsLoader ? [jsLoader] : [],
|
|
104
85
|
...existingLoader && nextJsRules ? [].concat(existingLoader.use) : [],
|
|
105
|
-
|
|
86
|
+
...jsLoader || existingLoader ? [] : [esbuildLoader],
|
|
106
87
|
tamaguiLoader
|
|
107
88
|
]
|
|
108
89
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/TamaguiPlugin.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAyB,0BAA0B;AAc5C,MAAM,cAAc;AAAA,EAGzB,YACS,UAAyB;AAAA,IAC9B,YAAY,CAAC,eAAe;AAAA,EAC9B,GACA;
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAyB,0BAA0B;AAc5C,MAAM,cAAc;AAAA,EAGzB,YACS,UAAyB;AAAA,IAC9B,UAAU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;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/dist/esm/css.js
CHANGED
|
@@ -2,9 +2,8 @@ function loader() {
|
|
|
2
2
|
this.async();
|
|
3
3
|
const options = { ...this.getOptions() };
|
|
4
4
|
let out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
5
|
-
if (out)
|
|
5
|
+
if (out)
|
|
6
6
|
return this.callback(null, out || "");
|
|
7
|
-
}
|
|
8
7
|
this.callback({ message: "No CSS found", name: "missing_css" });
|
|
9
8
|
}
|
|
10
9
|
export {
|
package/dist/esm/css.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/css.ts"],
|
|
4
|
-
"mappings": "AAGe,SAAR,SAA6D;AAClE,OAAK,MAAM;AACX,QAAM,UAAU,EAAE,GAAG,KAAK,WAAW,EAAE;AACvC,MAAI,MAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AACjE,MAAI
|
|
4
|
+
"mappings": "AAGe,SAAR,SAA6D;AAClE,OAAK,MAAM;AACX,QAAM,UAAU,EAAE,GAAG,KAAK,WAAW,EAAE;AACvC,MAAI,MAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AACjE,MAAI;AAEF,WAAO,KAAK,SAAS,MAAM,OAAO,EAAE;AAEtC,OAAK,SAAS,EAAE,SAAS,gBAAgB,MAAM,cAAc,CAAC;AAChE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
|
|
2
|
+
export * from "./TamaguiPlugin";
|
|
3
|
+
process.env.TAMAGUI_TARGET = "web";
|
|
3
4
|
process.env.IS_STATIC = "is_static";
|
|
4
5
|
process.env.TAMAGUI_IS_SERVER = "true";
|
|
5
|
-
export * from "./TamaguiPlugin";
|
|
6
6
|
var src_default = require("./loader").loader;
|
|
7
|
-
const shouldExclude = (filePath, projectRoot) =>
|
|
8
|
-
if (filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath)) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
return true;
|
|
12
|
-
};
|
|
7
|
+
const shouldExclude = (filePath, projectRoot) => !(filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
13
8
|
function isTamaguiDistJSX(filePath) {
|
|
14
9
|
return filePath.includes("/dist/jsx/".replace(/\//g, path.sep));
|
|
15
10
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO,UAAU;
|
|
4
|
+
"mappings": "AAAA,OAAO,UAAU;AAQjB,cAAc;AAJd,QAAQ,IAAI,iBAAiB;AAC7B,QAAQ,IAAI,YAAY;AACxB,QAAQ,IAAI,oBAAoB;AAIhC,IAAO,cAAQ,QAAQ,UAAU,EAAE;AAI5B,MAAM,gBAAgB,CAAC,UAAkB,gBAE3C,WAAS,SAAS,WAAW,KAAK,SAAS,SAAS,IAAI,KACzD,iBAAiB,QAAQ;AAO7B,SAAS,iBAAiB,UAAkB;AAC1C,SAAO,SAAS,SAAS,aAAa,QAAQ,OAAO,KAAK,GAAG,CAAC;AAChE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -3,52 +3,37 @@ import {
|
|
|
3
3
|
extractToClassNames,
|
|
4
4
|
getPragmaOptions
|
|
5
5
|
} from "@tamagui/static";
|
|
6
|
-
Error.stackTraceLimit =
|
|
6
|
+
Error.stackTraceLimit = 1 / 0;
|
|
7
7
|
const CSS_LOADER_PATH = require.resolve("./css");
|
|
8
|
-
Error.stackTraceLimit =
|
|
8
|
+
Error.stackTraceLimit = 1 / 0;
|
|
9
9
|
const extractor = createExtractor();
|
|
10
10
|
let index = 0;
|
|
11
11
|
process.env.TAMAGUI_TARGET = "web";
|
|
12
|
-
const loader = async function
|
|
13
|
-
this.cacheable(
|
|
14
|
-
const callback = this.async();
|
|
15
|
-
const source = sourceIn.toString();
|
|
12
|
+
const loader = async function(sourceIn) {
|
|
13
|
+
this.cacheable(!0);
|
|
14
|
+
const callback = this.async(), source = sourceIn.toString();
|
|
16
15
|
try {
|
|
17
|
-
const options = { ...this.getOptions() }
|
|
18
|
-
const sourcePath = `${this.resourcePath}`;
|
|
19
|
-
const { shouldDisable, shouldPrintDebug } = getPragmaOptions({
|
|
16
|
+
const options = { ...this.getOptions() }, sourcePath = `${this.resourcePath}`, { shouldDisable, shouldPrintDebug } = getPragmaOptions({
|
|
20
17
|
source,
|
|
21
18
|
path: sourcePath
|
|
22
19
|
});
|
|
23
|
-
if (shouldPrintDebug === "verbose"
|
|
24
|
-
console.warn(`
|
|
20
|
+
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
25
21
|
|
|
26
22
|
--- Incoming source ---
|
|
27
23
|
|
|
28
|
-
`)
|
|
29
|
-
console.
|
|
30
|
-
}
|
|
31
|
-
if (shouldDisable) {
|
|
32
|
-
if (shouldPrintDebug) {
|
|
33
|
-
console.log("Disabling on file via pragma");
|
|
34
|
-
}
|
|
35
|
-
return callback(null, source);
|
|
36
|
-
}
|
|
37
|
-
const cssPath = `${sourcePath}.${index++}.tamagui.css`;
|
|
38
|
-
const extracted = await extractToClassNames({
|
|
24
|
+
`), console.warn(source)), shouldDisable)
|
|
25
|
+
return shouldPrintDebug && console.log("Disabling on file via pragma"), callback(null, source);
|
|
26
|
+
const cssPath = `${sourcePath}.${index++}.tamagui.css`, extracted = await extractToClassNames({
|
|
39
27
|
extractor,
|
|
40
28
|
source,
|
|
41
29
|
sourcePath,
|
|
42
30
|
options,
|
|
43
31
|
shouldPrintDebug
|
|
44
32
|
});
|
|
45
|
-
if (!extracted)
|
|
33
|
+
if (!extracted)
|
|
46
34
|
return callback(null, source);
|
|
47
|
-
}
|
|
48
35
|
if (extracted.styles) {
|
|
49
|
-
const cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`;
|
|
50
|
-
const remReq = this.remainingRequest;
|
|
51
|
-
const importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
36
|
+
const cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`, remReq = this.remainingRequest, importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
52
37
|
extracted.js = `${extracted.js}
|
|
53
38
|
|
|
54
39
|
require(${JSON.stringify(importPath)})`;
|
|
@@ -57,14 +42,11 @@ require(${JSON.stringify(importPath)})`;
|
|
|
57
42
|
} catch (err) {
|
|
58
43
|
const message = err instanceof Error ? `${err.message}
|
|
59
44
|
${err.stack}` : String(err);
|
|
60
|
-
console.error(
|
|
61
|
-
`
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
callback(null, source);
|
|
45
|
+
console.error(`Tamagui Webpack Loader Error:
|
|
46
|
+
`, ` ${message}
|
|
47
|
+
`), message.includes("Cannot create proxy") && console.log(
|
|
48
|
+
"This is usually due to components not loading at build-time. Check for logs just below the line above:"
|
|
49
|
+
), callback(null, source);
|
|
68
50
|
}
|
|
69
51
|
};
|
|
70
52
|
export {
|
package/dist/esm/loader.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/loader.ts"],
|
|
4
|
-
"mappings": "AAAA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,MAAM,kBAAkB;AAGxB,MAAM,kBAAkB,gBAAgB,OAAO;AAE/C,MAAM,kBAAkB;AACxB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C;AAAA,IACzE;AAEA,aAAS,MAAM,UAAU,IAAI,UAAU,GAAG;AAAA,EAC5C,SAAS,KAAK;AACZ,UAAM,UAAU,eAAe,QAAQ,GAAG,IAAI,OAAO;AAAA,EAAK,IAAI,KAAK,KAAK,OAAO,GAAG;AAElF,YAAQ,MAAM;AAAA,GAAmC,KAAK,OAAO;AAAA,CAAI,GAE7D,QAAQ,SAAS,qBAAqB,KAExC,QAAQ;AAAA,MACN;AAAA,IACF,GAGF,SAAS,MAAM,MAAM;AAAA,EACvB;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-loader",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"clean:build": "tamagui-build clean:build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tamagui/cli-color": "1.
|
|
22
|
-
"@tamagui/static": "1.
|
|
21
|
+
"@tamagui/cli-color": "1.62.0",
|
|
22
|
+
"@tamagui/static": "1.62.0",
|
|
23
23
|
"esbuild-loader": "^3.0.1",
|
|
24
24
|
"fs-extra": "^11.1.0",
|
|
25
25
|
"loader-utils": "^3.2.1",
|
|
26
26
|
"lodash": "^4.17.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tamagui/build": "1.
|
|
29
|
+
"@tamagui/build": "1.62.0",
|
|
30
30
|
"prettyjson": "^1.2.5",
|
|
31
31
|
"webpack": "^5.88.2"
|
|
32
32
|
},
|
package/src/TamaguiPlugin.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TamaguiPlugin.d.ts","sourceRoot":"","sources":["../src/TamaguiPlugin.ts"],"names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