tamagui-loader 1.135.4-1761754084520 → 1.135.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/types/TamaguiPlugin.d.ts.map +1 -1
- package/dist/cjs/TamaguiPlugin.native.js +0 -273
- package/dist/cjs/TamaguiPlugin.native.js.map +0 -1
- package/dist/cjs/css.native.js +0 -40
- package/dist/cjs/css.native.js.map +0 -1
- package/dist/cjs/index.native.js +0 -34
- package/dist/cjs/index.native.js.map +0 -1
- package/dist/cjs/loader.native.js +0 -114
- package/dist/cjs/loader.native.js.map +0 -1
- package/dist/cjs/polyfills.native.js +0 -6
- package/dist/cjs/polyfills.native.js.map +0 -1
- package/dist/cjs/requireResolve.native.js +0 -31
- package/dist/cjs/requireResolve.native.js.map +0 -1
- package/dist/cjs/shouldExclude.native.js +0 -46
- package/dist/cjs/shouldExclude.native.js.map +0 -1
- package/dist/cjs/test.native.js +0 -34
- package/dist/cjs/test.native.js.map +0 -1
- package/dist/esm/TamaguiPlugin.native.js +0 -236
- 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 -77
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-loader",
|
|
3
|
-
"version": "1.135.
|
|
3
|
+
"version": "1.135.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tamagui/cli-color": "1.135.
|
|
32
|
-
"@tamagui/core": "1.135.
|
|
33
|
-
"@tamagui/static": "1.135.
|
|
34
|
-
"@tamagui/web": "1.135.
|
|
31
|
+
"@tamagui/cli-color": "1.135.5",
|
|
32
|
+
"@tamagui/core": "1.135.5",
|
|
33
|
+
"@tamagui/static": "1.135.5",
|
|
34
|
+
"@tamagui/web": "1.135.5",
|
|
35
35
|
"esbuild-loader": "^4.2.2",
|
|
36
36
|
"esm-resolve": "^1.0.8",
|
|
37
37
|
"fs-extra": "^11.2.0",
|
|
38
38
|
"loader-utils": "^3.2.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@tamagui/build": "1.135.
|
|
41
|
+
"@tamagui/build": "1.135.5",
|
|
42
42
|
"prettyjson": "^1.2.5",
|
|
43
43
|
"webpack": "^5.88.2"
|
|
44
44
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TamaguiPlugin.d.ts","sourceRoot":"","sources":["../src/TamaguiPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAIrD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMpD,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1B,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,qBAAqB,CAAC,EA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gBAsB7D;IAED,IAAI,mBAAmB,eAOtB;IAED,IAAI,kBAAkB,aAarB;IAED,mBAAmB,GAAI,UAAU,MAAM,aAItC;IAED,IAAI,cAAc,QAyBjB;IAED,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAsLzB"}
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all) __defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: !0
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
__copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var TamaguiPlugin_exports = {};
|
|
35
|
-
__export(TamaguiPlugin_exports, {
|
|
36
|
-
TamaguiPlugin: () => TamaguiPlugin
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(TamaguiPlugin_exports);
|
|
39
|
-
var import_static = __toESM(require("@tamagui/static"), 1),
|
|
40
|
-
import_fs = require("fs"),
|
|
41
|
-
import_path = require("path"),
|
|
42
|
-
import_webpack = __toESM(require("webpack"), 1),
|
|
43
|
-
import_requireResolve = require("./requireResolve.native.js");
|
|
44
|
-
function _class_call_check(instance, Constructor) {
|
|
45
|
-
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
46
|
-
}
|
|
47
|
-
function _defineProperties(target, props) {
|
|
48
|
-
for (var i = 0; i < props.length; i++) {
|
|
49
|
-
var descriptor = props[i];
|
|
50
|
-
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
54
|
-
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
55
|
-
}
|
|
56
|
-
function _define_property(obj, key, value) {
|
|
57
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
58
|
-
value,
|
|
59
|
-
enumerable: !0,
|
|
60
|
-
configurable: !0,
|
|
61
|
-
writable: !0
|
|
62
|
-
}) : obj[key] = value, obj;
|
|
63
|
-
}
|
|
64
|
-
function _type_of(obj) {
|
|
65
|
-
"@swc/helpers - typeof";
|
|
66
|
-
|
|
67
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
68
|
-
}
|
|
69
|
-
var {
|
|
70
|
-
watchTamaguiConfig
|
|
71
|
-
} = import_static.default,
|
|
72
|
-
TamaguiPlugin = /* @__PURE__ */function () {
|
|
73
|
-
"use strict";
|
|
74
|
-
|
|
75
|
-
function TamaguiPlugin2() {
|
|
76
|
-
var _this = this,
|
|
77
|
-
options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
78
|
-
platform: "web",
|
|
79
|
-
components: ["@tamagui/core"]
|
|
80
|
-
};
|
|
81
|
-
_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) {
|
|
82
|
-
var multiple = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
83
|
-
res = [],
|
|
84
|
-
_iteratorNormalCompletion = !0,
|
|
85
|
-
_didIteratorError = !1,
|
|
86
|
-
_iteratorError = void 0;
|
|
87
|
-
try {
|
|
88
|
-
for (var _iterator = resolves[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
89
|
-
var [out, mod] = _step.value;
|
|
90
|
-
if (out.endsWith("$")) {
|
|
91
|
-
res.push([out, mod]);
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
try {
|
|
95
|
-
res.push([out, (0, import_requireResolve.requireResolve)(mod)]), multiple && res.push([out, (0, import_requireResolve.requireResolve)(mod)]);
|
|
96
|
-
} catch (err) {
|
|
97
|
-
var _process_env_DEBUG;
|
|
98
|
-
if (out.includes("@gorhom/bottom-sheet")) continue;
|
|
99
|
-
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info(` withTamagui skipping resolving ${out}`, err);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
} catch (err) {
|
|
103
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
104
|
-
} finally {
|
|
105
|
-
try {
|
|
106
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
107
|
-
} finally {
|
|
108
|
-
if (_didIteratorError) throw _iteratorError;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return res;
|
|
112
|
-
}, this.isInComponentModule = function (fullPath) {
|
|
113
|
-
return _this.componentsBaseDirs.some(function (componentDir) {
|
|
114
|
-
return fullPath.startsWith(componentDir);
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
return _create_class(TamaguiPlugin2, [{
|
|
119
|
-
key: "componentsFullPaths",
|
|
120
|
-
get: function () {
|
|
121
|
-
var _this_options_components;
|
|
122
|
-
return this.safeResolves(((_this_options_components = this.options.components) === null || _this_options_components === void 0 ? void 0 : _this_options_components.map(function (moduleName) {
|
|
123
|
-
return [moduleName, moduleName];
|
|
124
|
-
})) || [], !0);
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
key: "componentsBaseDirs",
|
|
128
|
-
get: function () {
|
|
129
|
-
return this.componentsFullPaths.map(function (param) {
|
|
130
|
-
for (var [_, fullPath] = param, rootPath = (0, import_path.dirname)(fullPath); rootPath.length > 1;) {
|
|
131
|
-
var pkg = (0, import_path.join)(rootPath, "package.json"),
|
|
132
|
-
hasPkg = (0, import_fs.existsSync)(pkg);
|
|
133
|
-
if (hasPkg) return rootPath;
|
|
134
|
-
rootPath = (0, import_path.join)(rootPath, "..");
|
|
135
|
-
}
|
|
136
|
-
throw new Error(`Couldn't find package.json in any path above: ${fullPath}`);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}, {
|
|
140
|
-
key: "defaultAliases",
|
|
141
|
-
get: function () {
|
|
142
|
-
return Object.fromEntries(this.safeResolves([["@tamagui/core/reset.css", "@tamagui/core/reset.css"], ["@tamagui/core", "@tamagui/core"], ["@tamagui/web", "@tamagui/web"],
|
|
143
|
-
// fixes https://github.com/kentcdodds/mdx-bundler/issues/143
|
|
144
|
-
// `react/jsx-runtime` and `react/jsx-dev-runtime` will break the build in nextjs 15 + app router
|
|
145
|
-
["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"]])]));
|
|
146
|
-
}
|
|
147
|
-
}, {
|
|
148
|
-
key: "apply",
|
|
149
|
-
value: function (compiler) {
|
|
150
|
-
var _this = this,
|
|
151
|
-
_existing_find,
|
|
152
|
-
_compiler_options_resolve,
|
|
153
|
-
_compiler_options_resolve_fallback,
|
|
154
|
-
_crypto;
|
|
155
|
-
if (import_static.default.loadTamaguiSync(this.options), compiler.options.mode === "development" && !this.options.disableWatchConfig && watchTamaguiConfig(this.options).then(function (watcher) {
|
|
156
|
-
process.once("exit", function () {
|
|
157
|
-
watcher?.dispose();
|
|
158
|
-
});
|
|
159
|
-
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, function (nmf) {
|
|
160
|
-
nmf.hooks.createModule.tap(_this.pluginName,
|
|
161
|
-
// @ts-expect-error CreateData is typed as 'object'...
|
|
162
|
-
function (createData) {
|
|
163
|
-
var _createData_matchResource;
|
|
164
|
-
!((_createData_matchResource = createData.matchResource) === null || _createData_matchResource === void 0) && _createData_matchResource.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
165
|
-
});
|
|
166
|
-
}), !this.options.disableAliases) {
|
|
167
|
-
var existingAlias = compiler.options.resolve.alias;
|
|
168
|
-
Array.isArray(existingAlias) || (typeof existingAlias > "u" ? "undefined" : _type_of(existingAlias)) === "object" && Object.assign(existingAlias, this.defaultAliases);
|
|
169
|
-
}
|
|
170
|
-
var excludeExports = this.options.excludeReactNativeWebExports;
|
|
171
|
-
if (excludeExports && Array.isArray(excludeExports)) try {
|
|
172
|
-
var regexStr = `react-native-web(-lite)?/.*(${excludeExports.join("|")}).*js`,
|
|
173
|
-
regex = new RegExp(regexStr);
|
|
174
|
-
compiler.hooks.environment.tap("MyPlugin", function () {
|
|
175
|
-
var definePlugin = new import_webpack.default.NormalModuleReplacementPlugin(regex, (0, import_requireResolve.requireResolve)("@tamagui/proxy-worm"));
|
|
176
|
-
definePlugin.apply(compiler);
|
|
177
|
-
});
|
|
178
|
-
} catch {
|
|
179
|
-
console.warn(`Invalid names provided to excludeReactNativeWebExports: ${excludeExports.join(", ")}`);
|
|
180
|
-
}
|
|
181
|
-
this.options.emitSingleCSSFile && (console.info(" \u27A1 [tamagui] \u{1F3A8} combining css into one file"), compiler.hooks.make.tap(this.pluginName, function (compilation) {
|
|
182
|
-
compilation.hooks.processAssets.tap(_this.pluginName, function (assets) {
|
|
183
|
-
try {
|
|
184
|
-
var cssFiles = Object.keys(assets).filter(function (asset) {
|
|
185
|
-
return asset.endsWith(".css");
|
|
186
|
-
});
|
|
187
|
-
if (cssFiles.length === 0) return;
|
|
188
|
-
var combinedCSS = cssFiles.reduce(function (acc, file) {
|
|
189
|
-
var cssContent = compilation.assets[file].source();
|
|
190
|
-
return `${acc}
|
|
191
|
-
${cssContent}`;
|
|
192
|
-
}, ""),
|
|
193
|
-
_iteratorNormalCompletion2 = !0,
|
|
194
|
-
_didIteratorError2 = !1,
|
|
195
|
-
_iteratorError2 = void 0;
|
|
196
|
-
try {
|
|
197
|
-
for (var _iterator2 = cssFiles.entries()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
198
|
-
var [index2, cssFile] = _step2.value;
|
|
199
|
-
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))));
|
|
200
|
-
}
|
|
201
|
-
} catch (err) {
|
|
202
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
203
|
-
} finally {
|
|
204
|
-
try {
|
|
205
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
206
|
-
} finally {
|
|
207
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
} catch (error) {
|
|
211
|
-
compilation.errors.push(error);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
})), 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);
|
|
215
|
-
var mainFields = compiler.options.resolve.mainFields;
|
|
216
|
-
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !!compiler.options.module) {
|
|
217
|
-
var {
|
|
218
|
-
jsLoader
|
|
219
|
-
} = this.options,
|
|
220
|
-
existing = compiler.options.module.rules,
|
|
221
|
-
_existing_find_oneOf,
|
|
222
|
-
rules = (_existing_find_oneOf = (_existing_find = existing.find(function (x) {
|
|
223
|
-
return (typeof x > "u" ? "undefined" : _type_of(x)) === "object" && "oneOf" in x ? x : null;
|
|
224
|
-
})) === null || _existing_find === void 0 ? void 0 : _existing_find.oneOf) !== null && _existing_find_oneOf !== void 0 ? _existing_find_oneOf : existing,
|
|
225
|
-
tamaguiLoader = {
|
|
226
|
-
loader: (0, import_requireResolve.requireResolve)("tamagui-loader"),
|
|
227
|
-
options: {
|
|
228
|
-
...this.options,
|
|
229
|
-
_disableLoadTamagui: !0
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
didReplaceNextJS = !1,
|
|
233
|
-
_iteratorNormalCompletion = !0,
|
|
234
|
-
_didIteratorError = !1,
|
|
235
|
-
_iteratorError = void 0;
|
|
236
|
-
try {
|
|
237
|
-
for (var _iterator = rules.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
238
|
-
var [index, rule] = _step.value,
|
|
239
|
-
_rule_use,
|
|
240
|
-
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;
|
|
241
|
-
if (shouldReplaceNextJSRule) {
|
|
242
|
-
didReplaceNextJS = !0;
|
|
243
|
-
var _this_options_test, _ref, _this_options_exclude;
|
|
244
|
-
rules[index] = {
|
|
245
|
-
...rule,
|
|
246
|
-
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?$/,
|
|
247
|
-
exclude: (_this_options_exclude = this.options.exclude) !== null && _this_options_exclude !== void 0 ? _this_options_exclude : rule.exclude,
|
|
248
|
-
use: [...(jsLoader ? [jsLoader] : []), ...(rule.use ? [].concat(rule.use) : []), tamaguiLoader]
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
} catch (err) {
|
|
253
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
254
|
-
} finally {
|
|
255
|
-
try {
|
|
256
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
257
|
-
} finally {
|
|
258
|
-
if (_didIteratorError) throw _iteratorError;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (!didReplaceNextJS && compiler.options.mode === "development") {
|
|
262
|
-
var _this_options_test1;
|
|
263
|
-
existing.push({
|
|
264
|
-
test: (_this_options_test1 = this.options.test) !== null && _this_options_test1 !== void 0 ? _this_options_test1 : /\.tsx$/,
|
|
265
|
-
exclude: this.options.exclude,
|
|
266
|
-
use: [tamaguiLoader]
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}]), TamaguiPlugin2;
|
|
272
|
-
}();
|
|
273
|
-
//# sourceMappingURL=TamaguiPlugin.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","TamaguiPlugin_exports","__export","TamaguiPlugin","module","exports","import_static","__toESM","require","import_fs","import_path","import_webpack","import_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","_type_of","Symbol","constructor","watchTamaguiConfig","default","TamaguiPlugin2","_this","options","arguments","platform","components","pluginName","safeResolves","resolves","multiple","res","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","next","done","out","endsWith","push","requireResolve","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","dirname","pkg","join","hasPkg","existsSync","Error","fromEntries","useTamaguiSVG","useReactNativeWebLite","compiler","_existing_find","_compiler_options_resolve","_compiler_options_resolve_fallback","_crypto","loadTamaguiSync","mode","disableWatchConfig","then","watcher","once","dispose"],"sources":["../../src/TamaguiPlugin.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,aAAA,EAAA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@@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var css_exports = {};
|
|
24
|
-
__export(css_exports, {
|
|
25
|
-
default: () => loader
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(css_exports);
|
|
28
|
-
function loader() {
|
|
29
|
-
this.async();
|
|
30
|
-
var options = {
|
|
31
|
-
...this.getOptions()
|
|
32
|
-
},
|
|
33
|
-
out = Buffer.from(options.cssData, "base64").toString("utf-8");
|
|
34
|
-
if (out) return this.callback(null, out || "");
|
|
35
|
-
this.callback({
|
|
36
|
-
message: "No CSS found",
|
|
37
|
-
name: "missing_css"
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=css.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","css_exports","__export","default","loader","module","exports","async","options","getOptions","out","Buffer","from","cssData","toString","callback"],"sources":["../../src/css.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,WAAA;AAAAC,QAAA,CAAAD,WAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC;AAAA;AAGeC,MAAA,CAAAC,OAAR,GAAAV,YAA6D,CAAAK,WAAA;AAClE,SAAKG,MAAMA,CAAA;EACX,KAAAG,KAAM;EACN,IAAIC,OAAM;MACV,GAAI,KAAAC,UAAA;IAEF;IAAAC,GAAA,GAAOC,MAAK,CAAAC,IAAA,CAAAJ,OAAS,CAAMK,OAAO,EAAE,UAAAC,QAAA;EAEtC,IAAAJ,GAAK,EACP,YAAAK,QAAA,OAAAL,GAAA","ignoreList":[]}
|
package/dist/cjs/index.native.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
},
|
|
20
|
-
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value: !0
|
|
23
|
-
}), mod);
|
|
24
|
-
var index_exports = {};
|
|
25
|
-
__export(index_exports, {
|
|
26
|
-
default: () => index_default
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_polyfills = require("./polyfills.native.js"),
|
|
30
|
-
import_loader = require("./loader.native.js");
|
|
31
|
-
__reExport(index_exports, require("./TamaguiPlugin.native.js"), module.exports);
|
|
32
|
-
__reExport(index_exports, require("./shouldExclude.native.js"), module.exports);
|
|
33
|
-
var index_default = import_loader.loader;
|
|
34
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","default","index_default","module","exports","import_polyfills","require","import_loader","__reExport"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAO,CAAAK,aAAA;AAKP,IAAAM,gBAAA,GAAAC,OAAc;EAAAC,aALd,GAAAD,OAAA;AAMAE,UAAA,CAAAT,aAAA,EAAcO,OAAA,+BANdH,MAAA,CAAAC,OAAA;AAIAI,UAAO,CAAAT,aAAQ,EAAAO,OAAA,+BAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all) __defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: !0
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
__copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var loader_exports = {};
|
|
35
|
-
__export(loader_exports, {
|
|
36
|
-
loader: () => loader
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(loader_exports);
|
|
39
|
-
var import_static = __toESM(require("@tamagui/static"), 1),
|
|
40
|
-
import_requireResolve = require("./requireResolve.native.js");
|
|
41
|
-
function _instanceof(left, right) {
|
|
42
|
-
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
|
43
|
-
}
|
|
44
|
-
var {
|
|
45
|
-
createExtractor,
|
|
46
|
-
extractToClassNames,
|
|
47
|
-
getPragmaOptions
|
|
48
|
-
} = import_static.default;
|
|
49
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
50
|
-
var CSS_LOADER_PATH = "";
|
|
51
|
-
try {
|
|
52
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.cjs");
|
|
53
|
-
} catch {
|
|
54
|
-
try {
|
|
55
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.esm");
|
|
56
|
-
} catch {
|
|
57
|
-
CSS_LOADER_PATH = (0, import_requireResolve.requireResolve)("./css.js");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
61
|
-
var extractor = createExtractor(),
|
|
62
|
-
index = 0;
|
|
63
|
-
process.env.TAMAGUI_TARGET = "web";
|
|
64
|
-
var loader = async function (sourceIn) {
|
|
65
|
-
this.cacheable(!0);
|
|
66
|
-
var callback = this.async(),
|
|
67
|
-
sourcePath = `${this.resourcePath}`;
|
|
68
|
-
if (sourcePath.includes("node_modules") || sourcePath.includes("lucide-icons")) return callback(null, sourceIn);
|
|
69
|
-
var source = sourceIn.toString();
|
|
70
|
-
try {
|
|
71
|
-
var options = {
|
|
72
|
-
// @ts-ignore
|
|
73
|
-
platform: "web",
|
|
74
|
-
...this.getOptions()
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
shouldDisable,
|
|
78
|
-
shouldPrintDebug
|
|
79
|
-
} = getPragmaOptions({
|
|
80
|
-
source,
|
|
81
|
-
path: sourcePath
|
|
82
|
-
});
|
|
83
|
-
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
84
|
-
|
|
85
|
-
--- Incoming source ---
|
|
86
|
-
|
|
87
|
-
`), console.warn(source)), shouldDisable) return shouldPrintDebug && console.info("Disabling on file via pragma"), callback(null, source);
|
|
88
|
-
var cssPath = `${sourcePath}.${index++}.tamagui.css`,
|
|
89
|
-
extracted = await extractToClassNames({
|
|
90
|
-
extractor,
|
|
91
|
-
source,
|
|
92
|
-
sourcePath,
|
|
93
|
-
options,
|
|
94
|
-
shouldPrintDebug
|
|
95
|
-
});
|
|
96
|
-
if (!extracted) return callback(null, source);
|
|
97
|
-
if (extracted.styles) {
|
|
98
|
-
var cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`,
|
|
99
|
-
remReq = this.remainingRequest,
|
|
100
|
-
importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
101
|
-
extracted.js = `${extracted.js}
|
|
102
|
-
|
|
103
|
-
require(${JSON.stringify(importPath)})`;
|
|
104
|
-
}
|
|
105
|
-
callback(null, extracted.js, extracted.map);
|
|
106
|
-
} catch (err) {
|
|
107
|
-
var message = _instanceof(err, Error) ? `${err.message}
|
|
108
|
-
${err.stack}` : String(err);
|
|
109
|
-
console.error(`Tamagui Webpack Loader Error:
|
|
110
|
-
`, ` ${message}
|
|
111
|
-
`), 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);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=loader.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","loader_exports","__export","loader","module","exports","import_static","__toESM","require","import_requireResolve","_instanceof","left","right","Symbol","hasInstance","createExtractor","extractToClassNames","getPragmaOptions","default","Error","stackTraceLimit","Number","POSITIVE_INFINITY","CSS_LOADER_PATH","requireResolve","extractor","index","process","env","TAMAGUI_TARGET","sourceIn","cacheable","callback","async","sourcePath","resourcePath","includes","source","toString","options","platform","getOptions","shouldDisable","shouldPrintDebug","path","console","warn","info","cssPath","extracted","styles","cssQuery","Buffer","from","remReq","remainingRequest","importPath","js","JSON","stringify","map","err","message","stack","String","error"],"sources":["../../src/loader.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAmB,CAAAK,cAAA;AAInB,IAAAK,aAAQ,GAAAC,OAAiB,CAAAC,OAAA,kBAAqB;EAAAC,qBAAqB,GAAAD,OAAA;AAEnE,SAAME,YAAAC,IAAkB,EAAAC,KAAO;EAG/B,OAAIA,KAAA,QAAkB,WAAAC,MAAA,UAAAD,KAAA,CAAAC,MAAA,CAAAC,WAAA,MAAAF,KAAA,CAAAC,MAAA,CAAAC,WAAA,EAAAH,IAAA,IAAAA,IAAA,YAAAC,KAAA;AAEtB;AACE;EAAAG,eAAA;EAAAC,mBAAkB;EAAAC;AAAA,CAAe,GAAAX,aAAW,CAAAY,OAAA;AAC9CC,KAAA,CAAAC,eAAQ,GAAAC,MAAA,CAAAC,iBAAA;AACN,IAAAC,eAAI;AACF;EACFA,eAAQ,OAAAd,qBAAA,CAAAe,cAAA;AACN;EACF;IACFD,eAAA,OAAAd,qBAAA,CAAAe,cAAA;EAEA,QAAM;IACND,eAAkB,OAAAd,qBAAgB,CAAAe,cAAA;EAElC;AAEA;AAEOL,KAAA,CAAMC,eAAS,GAAAC,MAEpB,CAAAC,iBACA;AACA,IAAAG,SAAK,GAAAV,eAAc;EAAAW,KAAA;AACnBC,OAAA,CAAMC,GAAA,CAAAC,cAAgB,QAChB;AAEN,IAAA1B,MAAI,kBAAAA,CAAoB2B,QAAA;EACtB,KAAAC,SAAO,IAAS;EAGlB,IAAAC,QAAM,GAAS,KAAAC,KAAS;IAAAC,UAA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AAA,CAAAC,OAAA;AAAA,EAAID,GAE7D,CAAAE,KAAA,EAAQ,GAAAC,MAAS,CAAAH,GAAA;IACXhB,OACN,CAAAoB,KAAA;AAAA,QAIJH,OAAA;AAAqB,EACvB,EAAAA,OAAA,CAAA1B,QAAA,2BAAAS,OAAA,CAAAE,IAAA,4GAAAf,QAAA,OAAAK,MAAA;EACF","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["process","env","TAMAGUI_TARGET","IS_STATIC"],"sources":["../../src/polyfills.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAY;;AACZA,OAAA,CAAQC,GAAA,CAAIC,cAAY;AACxBF,OAAA,CAAQC,GAAA,CAAIE,SAAA,cAAoB","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var requireResolve_exports = {};
|
|
24
|
-
__export(requireResolve_exports, {
|
|
25
|
-
requireResolve: () => requireResolve
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(requireResolve_exports);
|
|
28
|
-
var import_module = require("module");
|
|
29
|
-
const import_meta = {};
|
|
30
|
-
var requireResolve = "url" in import_meta ? (0, import_module.createRequire)(import_meta.url).resolve : require.resolve;
|
|
31
|
-
//# sourceMappingURL=requireResolve.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","requireResolve_exports","__export","requireResolve","module","exports","import_module","require"],"sources":["../../src/requireResolve.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA8B,CAAAK,sBAAA;AAA9B,IAAAK,aAAA,GAAAC,OAEa","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all) __defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: !0
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
__copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var shouldExclude_exports = {};
|
|
35
|
-
__export(shouldExclude_exports, {
|
|
36
|
-
shouldExclude: () => shouldExclude
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(shouldExclude_exports);
|
|
39
|
-
var import_path = __toESM(require("path"), 1),
|
|
40
|
-
shouldExclude = function (filePath, projectRoot) {
|
|
41
|
-
return !(projectRoot && filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
42
|
-
};
|
|
43
|
-
function isTamaguiDistJSX(filePath) {
|
|
44
|
-
return filePath.includes("/dist/jsx/".replace(/\//g, import_path.default.sep));
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=shouldExclude.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","shouldExclude_exports","__export","shouldExclude","module","exports","import_path","__toESM","require","filePath","projectRoot","includes","endsWith","isTamaguiDistJSX"],"sources":["../../src/shouldExclude.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAiB,CAAAK,qBAAA;AAIV,IAAAK,WAAM,GAAAC,OAAiB,CAAAC,OAAkB;EAAAL,aAE3C,YAAAA,CAAeM,QAAS,EAAAC,WAAS,EAAW;IAQjD,OAAS,EAAAA,WAAA,IAAiBD,QAAA,CAAAE,QAAkB,CAAAD,WAAA,KAAAD,QAAA,CAAAG,QAAA,UAAAC,gBAAA,CAAAJ,QAAA;EAC1C;AACF,SAAAI,iBAAAJ,QAAA","ignoreList":[]}
|
package/dist/cjs/test.native.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var test_exports = {};
|
|
24
|
-
__export(test_exports, {
|
|
25
|
-
default: () => loader
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(test_exports);
|
|
28
|
-
async function loader(sourceIn) {
|
|
29
|
-
this.cacheable(!0);
|
|
30
|
-
var callback = this.async(),
|
|
31
|
-
sourcePath = `${this.resourcePath}`;
|
|
32
|
-
return callback(null, sourceIn);
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=test.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","test_exports","__export","default","loader","module","exports","sourceIn","cacheable","callback","async","sourcePath","resourcePath"],"sources":["../../src/test.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAOV,YAAyC,CAAAK,YAA2B;AACzE,eAAKG,MAAcA,CAAAG,QAAA;EACnB,KAAAC,SAAM,GAAW;EAGjB,IAAAC,QAAO,OAAS,CAAAC,KAAM;IAAAC,UAAQ,WAAAC,YAAA;EAChC,OAAAH,QAAA,OAAAF,QAAA","ignoreList":[]}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import Static from "@tamagui/static";
|
|
2
|
-
import { existsSync } from "fs";
|
|
3
|
-
import { dirname, join } from "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
|
-
function _type_of(obj) {
|
|
27
|
-
"@swc/helpers - typeof";
|
|
28
|
-
|
|
29
|
-
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
30
|
-
}
|
|
31
|
-
var {
|
|
32
|
-
watchTamaguiConfig
|
|
33
|
-
} = Static,
|
|
34
|
-
TamaguiPlugin = /* @__PURE__ */function () {
|
|
35
|
-
"use strict";
|
|
36
|
-
|
|
37
|
-
function TamaguiPlugin2() {
|
|
38
|
-
var _this = this,
|
|
39
|
-
options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
40
|
-
platform: "web",
|
|
41
|
-
components: ["@tamagui/core"]
|
|
42
|
-
};
|
|
43
|
-
_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) {
|
|
44
|
-
var multiple = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
45
|
-
res = [],
|
|
46
|
-
_iteratorNormalCompletion = !0,
|
|
47
|
-
_didIteratorError = !1,
|
|
48
|
-
_iteratorError = void 0;
|
|
49
|
-
try {
|
|
50
|
-
for (var _iterator = resolves[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
51
|
-
var [out, mod] = _step.value;
|
|
52
|
-
if (out.endsWith("$")) {
|
|
53
|
-
res.push([out, mod]);
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
try {
|
|
57
|
-
res.push([out, requireResolve(mod)]), multiple && res.push([out, requireResolve(mod)]);
|
|
58
|
-
} catch (err) {
|
|
59
|
-
var _process_env_DEBUG;
|
|
60
|
-
if (out.includes("@gorhom/bottom-sheet")) continue;
|
|
61
|
-
!((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.startsWith("tamagui") && console.info(` withTamagui skipping resolving ${out}`, err);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
} catch (err) {
|
|
65
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
66
|
-
} finally {
|
|
67
|
-
try {
|
|
68
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
69
|
-
} finally {
|
|
70
|
-
if (_didIteratorError) throw _iteratorError;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return res;
|
|
74
|
-
}, this.isInComponentModule = function (fullPath) {
|
|
75
|
-
return _this.componentsBaseDirs.some(function (componentDir) {
|
|
76
|
-
return fullPath.startsWith(componentDir);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return _create_class(TamaguiPlugin2, [{
|
|
81
|
-
key: "componentsFullPaths",
|
|
82
|
-
get: function () {
|
|
83
|
-
var _this_options_components;
|
|
84
|
-
return this.safeResolves(((_this_options_components = this.options.components) === null || _this_options_components === void 0 ? void 0 : _this_options_components.map(function (moduleName) {
|
|
85
|
-
return [moduleName, moduleName];
|
|
86
|
-
})) || [], !0);
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
key: "componentsBaseDirs",
|
|
90
|
-
get: function () {
|
|
91
|
-
return this.componentsFullPaths.map(function (param) {
|
|
92
|
-
for (var [_, fullPath] = param, rootPath = dirname(fullPath); rootPath.length > 1;) {
|
|
93
|
-
var pkg = join(rootPath, "package.json"),
|
|
94
|
-
hasPkg = existsSync(pkg);
|
|
95
|
-
if (hasPkg) return rootPath;
|
|
96
|
-
rootPath = join(rootPath, "..");
|
|
97
|
-
}
|
|
98
|
-
throw new Error(`Couldn't find package.json in any path above: ${fullPath}`);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
key: "defaultAliases",
|
|
103
|
-
get: function () {
|
|
104
|
-
return Object.fromEntries(this.safeResolves([["@tamagui/core/reset.css", "@tamagui/core/reset.css"], ["@tamagui/core", "@tamagui/core"], ["@tamagui/web", "@tamagui/web"],
|
|
105
|
-
// fixes https://github.com/kentcdodds/mdx-bundler/issues/143
|
|
106
|
-
// `react/jsx-runtime` and `react/jsx-dev-runtime` will break the build in nextjs 15 + app router
|
|
107
|
-
["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"]])]));
|
|
108
|
-
}
|
|
109
|
-
}, {
|
|
110
|
-
key: "apply",
|
|
111
|
-
value: function (compiler) {
|
|
112
|
-
var _this = this,
|
|
113
|
-
_existing_find,
|
|
114
|
-
_compiler_options_resolve,
|
|
115
|
-
_compiler_options_resolve_fallback,
|
|
116
|
-
_crypto;
|
|
117
|
-
if (Static.loadTamaguiSync(this.options), compiler.options.mode === "development" && !this.options.disableWatchConfig && watchTamaguiConfig(this.options).then(function (watcher) {
|
|
118
|
-
process.once("exit", function () {
|
|
119
|
-
watcher?.dispose();
|
|
120
|
-
});
|
|
121
|
-
}), compiler.hooks.normalModuleFactory.tap(this.pluginName, function (nmf) {
|
|
122
|
-
nmf.hooks.createModule.tap(_this.pluginName,
|
|
123
|
-
// @ts-expect-error CreateData is typed as 'object'...
|
|
124
|
-
function (createData) {
|
|
125
|
-
var _createData_matchResource;
|
|
126
|
-
!((_createData_matchResource = createData.matchResource) === null || _createData_matchResource === void 0) && _createData_matchResource.endsWith(".tamagui.css") && (createData.settings.sideEffects = !0);
|
|
127
|
-
});
|
|
128
|
-
}), !this.options.disableAliases) {
|
|
129
|
-
var existingAlias = compiler.options.resolve.alias;
|
|
130
|
-
Array.isArray(existingAlias) || (typeof existingAlias > "u" ? "undefined" : _type_of(existingAlias)) === "object" && Object.assign(existingAlias, this.defaultAliases);
|
|
131
|
-
}
|
|
132
|
-
var excludeExports = this.options.excludeReactNativeWebExports;
|
|
133
|
-
if (excludeExports && Array.isArray(excludeExports)) try {
|
|
134
|
-
var regexStr = `react-native-web(-lite)?/.*(${excludeExports.join("|")}).*js`,
|
|
135
|
-
regex = new RegExp(regexStr);
|
|
136
|
-
compiler.hooks.environment.tap("MyPlugin", function () {
|
|
137
|
-
var definePlugin = new webpack.NormalModuleReplacementPlugin(regex, requireResolve("@tamagui/proxy-worm"));
|
|
138
|
-
definePlugin.apply(compiler);
|
|
139
|
-
});
|
|
140
|
-
} catch {
|
|
141
|
-
console.warn(`Invalid names provided to excludeReactNativeWebExports: ${excludeExports.join(", ")}`);
|
|
142
|
-
}
|
|
143
|
-
this.options.emitSingleCSSFile && (console.info(" \u27A1 [tamagui] \u{1F3A8} combining css into one file"), compiler.hooks.make.tap(this.pluginName, function (compilation) {
|
|
144
|
-
compilation.hooks.processAssets.tap(_this.pluginName, function (assets) {
|
|
145
|
-
try {
|
|
146
|
-
var cssFiles = Object.keys(assets).filter(function (asset) {
|
|
147
|
-
return asset.endsWith(".css");
|
|
148
|
-
});
|
|
149
|
-
if (cssFiles.length === 0) return;
|
|
150
|
-
var combinedCSS = cssFiles.reduce(function (acc, file) {
|
|
151
|
-
var cssContent = compilation.assets[file].source();
|
|
152
|
-
return `${acc}
|
|
153
|
-
${cssContent}`;
|
|
154
|
-
}, ""),
|
|
155
|
-
_iteratorNormalCompletion2 = !0,
|
|
156
|
-
_didIteratorError2 = !1,
|
|
157
|
-
_iteratorError2 = void 0;
|
|
158
|
-
try {
|
|
159
|
-
for (var _iterator2 = cssFiles.entries()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
|
|
160
|
-
var [index2, cssFile] = _step2.value;
|
|
161
|
-
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))));
|
|
162
|
-
}
|
|
163
|
-
} catch (err) {
|
|
164
|
-
_didIteratorError2 = !0, _iteratorError2 = err;
|
|
165
|
-
} finally {
|
|
166
|
-
try {
|
|
167
|
-
!_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
|
|
168
|
-
} finally {
|
|
169
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
} catch (error) {
|
|
173
|
-
compilation.errors.push(error);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
})), 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);
|
|
177
|
-
var mainFields = compiler.options.resolve.mainFields;
|
|
178
|
-
if (mainFields && (compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields], this.options.disableModuleJSXEntry || mainFields.unshift("module:jsx")), !!compiler.options.module) {
|
|
179
|
-
var {
|
|
180
|
-
jsLoader
|
|
181
|
-
} = this.options,
|
|
182
|
-
existing = compiler.options.module.rules,
|
|
183
|
-
_existing_find_oneOf,
|
|
184
|
-
rules = (_existing_find_oneOf = (_existing_find = existing.find(function (x) {
|
|
185
|
-
return (typeof x > "u" ? "undefined" : _type_of(x)) === "object" && "oneOf" in x ? x : null;
|
|
186
|
-
})) === null || _existing_find === void 0 ? void 0 : _existing_find.oneOf) !== null && _existing_find_oneOf !== void 0 ? _existing_find_oneOf : existing,
|
|
187
|
-
tamaguiLoader = {
|
|
188
|
-
loader: requireResolve("tamagui-loader"),
|
|
189
|
-
options: {
|
|
190
|
-
...this.options,
|
|
191
|
-
_disableLoadTamagui: !0
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
didReplaceNextJS = !1,
|
|
195
|
-
_iteratorNormalCompletion = !0,
|
|
196
|
-
_didIteratorError = !1,
|
|
197
|
-
_iteratorError = void 0;
|
|
198
|
-
try {
|
|
199
|
-
for (var _iterator = rules.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
200
|
-
var [index, rule] = _step.value,
|
|
201
|
-
_rule_use,
|
|
202
|
-
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;
|
|
203
|
-
if (shouldReplaceNextJSRule) {
|
|
204
|
-
didReplaceNextJS = !0;
|
|
205
|
-
var _this_options_test, _ref, _this_options_exclude;
|
|
206
|
-
rules[index] = {
|
|
207
|
-
...rule,
|
|
208
|
-
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?$/,
|
|
209
|
-
exclude: (_this_options_exclude = this.options.exclude) !== null && _this_options_exclude !== void 0 ? _this_options_exclude : rule.exclude,
|
|
210
|
-
use: [...(jsLoader ? [jsLoader] : []), ...(rule.use ? [].concat(rule.use) : []), tamaguiLoader]
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
} catch (err) {
|
|
215
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
216
|
-
} finally {
|
|
217
|
-
try {
|
|
218
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
219
|
-
} finally {
|
|
220
|
-
if (_didIteratorError) throw _iteratorError;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
if (!didReplaceNextJS && compiler.options.mode === "development") {
|
|
224
|
-
var _this_options_test1;
|
|
225
|
-
existing.push({
|
|
226
|
-
test: (_this_options_test1 = this.options.test) !== null && _this_options_test1 !== void 0 ? _this_options_test1 : /\.tsx$/,
|
|
227
|
-
exclude: this.options.exclude,
|
|
228
|
-
use: [tamaguiLoader]
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}]), TamaguiPlugin2;
|
|
234
|
-
}();
|
|
235
|
-
export { TamaguiPlugin };
|
|
236
|
-
//# 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","_type_of","Symbol","constructor","watchTamaguiConfig","TamaguiPlugin","TamaguiPlugin2","_this","options","arguments","platform","components","pluginName","safeResolves","resolves","multiple","res","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","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"],"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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D,QAAA,CAAAlD,OAAA,CAAAwD,IAAA,4BAAAxD,OAAA,CAAAyD,kBAAA,IAAA7D,kBAAA,MAAAI,OAAA,EAAA0D,IAAA,WAAAC,OAAA;UACpBnC,OAAA,CAAAoC,IAAA;YAGPD,OAAA,EAAAE,OAAA;UACF","ignoreList":[]}
|
package/dist/esm/css.native.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function loader() {
|
|
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":[]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import Static from "@tamagui/static";
|
|
2
|
-
import { requireResolve } from "./requireResolve.native.js";
|
|
3
|
-
function _instanceof(left, right) {
|
|
4
|
-
return right != null && typeof Symbol < "u" && right[Symbol.hasInstance] ? !!right[Symbol.hasInstance](left) : left instanceof right;
|
|
5
|
-
}
|
|
6
|
-
var {
|
|
7
|
-
createExtractor,
|
|
8
|
-
extractToClassNames,
|
|
9
|
-
getPragmaOptions
|
|
10
|
-
} = Static;
|
|
11
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
12
|
-
var CSS_LOADER_PATH = "";
|
|
13
|
-
try {
|
|
14
|
-
CSS_LOADER_PATH = requireResolve("./css.cjs");
|
|
15
|
-
} catch {
|
|
16
|
-
try {
|
|
17
|
-
CSS_LOADER_PATH = requireResolve("./css.esm");
|
|
18
|
-
} catch {
|
|
19
|
-
CSS_LOADER_PATH = requireResolve("./css.js");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
|
|
23
|
-
var extractor = createExtractor(),
|
|
24
|
-
index = 0;
|
|
25
|
-
process.env.TAMAGUI_TARGET = "web";
|
|
26
|
-
var loader = async function (sourceIn) {
|
|
27
|
-
this.cacheable(!0);
|
|
28
|
-
var callback = this.async(),
|
|
29
|
-
sourcePath = `${this.resourcePath}`;
|
|
30
|
-
if (sourcePath.includes("node_modules") || sourcePath.includes("lucide-icons")) return callback(null, sourceIn);
|
|
31
|
-
var source = sourceIn.toString();
|
|
32
|
-
try {
|
|
33
|
-
var options = {
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
platform: "web",
|
|
36
|
-
...this.getOptions()
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
shouldDisable,
|
|
40
|
-
shouldPrintDebug
|
|
41
|
-
} = getPragmaOptions({
|
|
42
|
-
source,
|
|
43
|
-
path: sourcePath
|
|
44
|
-
});
|
|
45
|
-
if (shouldPrintDebug === "verbose" && (console.warn(`
|
|
46
|
-
|
|
47
|
-
--- Incoming source ---
|
|
48
|
-
|
|
49
|
-
`), console.warn(source)), shouldDisable) return shouldPrintDebug && console.info("Disabling on file via pragma"), callback(null, source);
|
|
50
|
-
var cssPath = `${sourcePath}.${index++}.tamagui.css`,
|
|
51
|
-
extracted = await extractToClassNames({
|
|
52
|
-
extractor,
|
|
53
|
-
source,
|
|
54
|
-
sourcePath,
|
|
55
|
-
options,
|
|
56
|
-
shouldPrintDebug
|
|
57
|
-
});
|
|
58
|
-
if (!extracted) return callback(null, source);
|
|
59
|
-
if (extracted.styles) {
|
|
60
|
-
var cssQuery = `cssData=${Buffer.from(extracted.styles).toString("base64")}`,
|
|
61
|
-
remReq = this.remainingRequest,
|
|
62
|
-
importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
|
|
63
|
-
extracted.js = `${extracted.js}
|
|
64
|
-
|
|
65
|
-
require(${JSON.stringify(importPath)})`;
|
|
66
|
-
}
|
|
67
|
-
callback(null, extracted.js, extracted.map);
|
|
68
|
-
} catch (err) {
|
|
69
|
-
var message = _instanceof(err, Error) ? `${err.message}
|
|
70
|
-
${err.stack}` : String(err);
|
|
71
|
-
console.error(`Tamagui Webpack Loader Error:
|
|
72
|
-
`, ` ${message}
|
|
73
|
-
`), 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);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
export { loader };
|
|
77
|
-
//# sourceMappingURL=loader.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Static","requireResolve","_instanceof","left","right","Symbol","hasInstance","createExtractor","extractToClassNames","getPragmaOptions","Error","stackTraceLimit","Number","POSITIVE_INFINITY","CSS_LOADER_PATH","extractor","index","process","env","TAMAGUI_TARGET","loader","sourceIn","cacheable","callback","async","sourcePath","resourcePath","includes","source","toString","options","platform","getOptions","shouldDisable","shouldPrintDebug","path","console","warn","info","cssPath","extracted","styles","cssQuery","Buffer","from","remReq","remainingRequest","importPath","js","JSON","stringify","map","err","message","stack","String","error"],"sources":["../../src/loader.ts"],"sourcesContent":[null],"mappings":"AACA,OAAOA,MAAA,MAAY;AAEnB,SAASC,cAAA,QAAsB;AAE/B,SAAQC,YAAAC,IAAiB,EAAAC,KAAA;EAEzB,OAAMA,KAAA,YAAkB,OAAOC,MAAA,UAAAD,KAAA,CAAAC,MAAA,CAAAC,WAAA,MAAAF,KAAA,CAAAC,MAAA,CAAAC,WAAA,EAAAH,IAAA,IAAAA,IAAA,YAAAC,KAAA;AAG/B;AAEA,IAAI;EAAAG,eAAA;EAAAC,mBAAA;EAAAC;AAAA,IAAAT,MAAA;AACFU,KAAA,CAAAC,eAAkB,GAAAC,MAAA,CAAAC,iBAA0B;AAC9C,IAAAC,eAAQ;AACN;EACEA,eAAA,GAAAb,cAAkB,YAAe;AAAW,EAC9C;EACE;IACFa,eAAA,GAAAb,cAAA;EACF;IAEAa,eAAM,GAAAb,cAAyB;EAC/B;AAEA;AAEAS,KAAA,CAAAC,eAAY,GAAAC,MAAiB,CAAAC,iBAAA;AAEtB,IAAAE,SAAM,GAASR,eAEpB;EAAAS,KACA;AACAC,OAAK,CAAAC,GAAA,CAAAC,cAAc;AACnB,IAAAC,MAAM,kBAAAA,CAAgBC,QAChB;EAEN,IAAI,CAAAC,SAAA,CAAW;EACb,IAAAC,QAAO,OAAS,CAAAC,KAAM;IAAAC,UAAQ,WAAAC,YAAA;EAGhC,IAAAD,UAAM,CAASE,QAAA,CAAS,cAAS,KAAAF,UAAA,CAAAE,QAAA,kBAEjC,O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QoB,KAAA;AACF,QACNH,OAAA;AAAA,IACFA,OAGF,CAAA1B,QAAS,sBAAY,KAAAS,OAAA,CAAAE,IAAA,4GAAAf,QAAA,OAAAK,MAAA;EACvB;AACF","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["process","env","TAMAGUI_TARGET","IS_STATIC","TAMAGUI_IS_SERVER"],"sources":["../../src/polyfills.ts"],"sourcesContent":[null],"mappings":"AAAAA,OAAA,CAAQC,GAAA,CAAIC,cAAA,GAAiB;AAC7BF,OAAA,CAAQC,GAAA,CAAIE,SAAA,GAAY;AACxBH,OAAA,CAAQC,GAAA,CAAIG,iBAAA,GAAoB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createRequire","requireResolve","import","meta","url","resolve","require"],"sources":["../../src/requireResolve.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAEvB,IAAAC,cAAM,QACX,IAAAC,MAAS,CAAAC,IAAA,GAAAH,aAAc,CAAAE,MAAc,CAAAC,IAAA,CAAAC,GAAY,EAAGC,OAAE,GAAAC,OAAU,CAAAD,OAAQ","ignoreList":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
var shouldExclude = function (filePath, projectRoot) {
|
|
3
|
-
return !(projectRoot && filePath.includes(projectRoot) && filePath.endsWith("sx") || isTamaguiDistJSX(filePath));
|
|
4
|
-
};
|
|
5
|
-
function isTamaguiDistJSX(filePath) {
|
|
6
|
-
return filePath.includes("/dist/jsx/".replace(/\//g, path.sep));
|
|
7
|
-
}
|
|
8
|
-
export { shouldExclude };
|
|
9
|
-
//# sourceMappingURL=shouldExclude.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["path","shouldExclude","filePath","projectRoot","includes","endsWith","isTamaguiDistJSX"],"sources":["../../src/shouldExclude.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,IAAA,MAAU;AAIV,IAAAC,aAAM,YAAAA,CAAiBC,QAAkB,EAAAC,WAE3C;EAQL,OAAS,EAAAA,WAAA,IAAiBD,QAAA,CAAAE,QAAkB,CAAAD,WAAA,KAAAD,QAAA,CAAAG,QAAA,UAAAC,gBAAA,CAAAJ,QAAA;AAC1C;AACF,SAAAI,iBAAAJ,QAAA","ignoreList":[]}
|
package/dist/esm/test.native.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["loader","sourceIn","cacheable","callback","async","sourcePath","resourcePath"],"sources":["../../src/test.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAOA,OAAyCC,QAAA,EAA2B;EACzE,KAAKC,SAAA,CAAU,EAAI;EACnB,IAAAC,QAAM,OAAW,CAAAC,KAAK;IAAMC,UACtB,MAAa,IAAG,CAAAC,YAAK,EAAY;EAEvC,OAAOH,QAAA,CAAS,MAAMF,QAAQ;AAChC","ignoreList":[]}
|