@tamagui/vite-plugin 1.88.22 → 1.88.23
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/esm/extensions.native.js +2 -23
- package/dist/esm/extensions.native.js.map +1 -1
- package/dist/esm/extract.native.js +13 -39
- package/dist/esm/extract.native.js.map +2 -2
- package/dist/esm/getVitePath.native.js +9 -36
- package/dist/esm/getVitePath.native.js.map +2 -2
- package/dist/esm/index.native.js +3 -23
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/plugin.native.js +4 -25
- package/dist/esm/plugin.native.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,23 +1,3 @@
|
|
|
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 extensions_exports = {};
|
|
17
|
-
__export(extensions_exports, {
|
|
18
|
-
extensions: () => extensions
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(extensions_exports);
|
|
21
1
|
const extensions = [
|
|
22
2
|
".ios.js",
|
|
23
3
|
".native.js",
|
|
@@ -30,8 +10,7 @@ const extensions = [
|
|
|
30
10
|
".tsx",
|
|
31
11
|
".mjs"
|
|
32
12
|
];
|
|
33
|
-
|
|
34
|
-
0 && (module.exports = {
|
|
13
|
+
export {
|
|
35
14
|
extensions
|
|
36
|
-
}
|
|
15
|
+
};
|
|
37
16
|
//# sourceMappingURL=extensions.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/extensions.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 extract_exports = {};
|
|
25
|
-
__export(extract_exports, {
|
|
26
|
-
tamaguiExtractPlugin: () => tamaguiExtractPlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(extract_exports);
|
|
29
|
-
var import_path = __toESM(require("path")), import_static = require("@tamagui/static"), import_outdent = __toESM(require("outdent")), import_vite = require("vite");
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { createExtractor, extractToClassNames, getPragmaOptions } from "@tamagui/static";
|
|
3
|
+
import outdent from "outdent";
|
|
4
|
+
import { normalizePath } from "vite";
|
|
30
5
|
const styleUpdateEvent = (fileId) => `tamagui-style-update:${fileId}`, GLOBAL_CSS_VIRTUAL_PATH = "__tamagui_global_css__.css";
|
|
31
6
|
function tamaguiExtractPlugin(options) {
|
|
32
7
|
if (options.disable || options.disableDebugAttr && options.disableExtraction)
|
|
@@ -36,7 +11,7 @@ function tamaguiExtractPlugin(options) {
|
|
|
36
11
|
let extractor = null;
|
|
37
12
|
const cssMap = /* @__PURE__ */ new Map();
|
|
38
13
|
let config, server, shouldReturnCSS = !0, virtualExt;
|
|
39
|
-
const getAbsoluteVirtualFileId = (filePath) => filePath.startsWith(config.root) ? filePath :
|
|
14
|
+
const getAbsoluteVirtualFileId = (filePath) => filePath.startsWith(config.root) ? filePath : normalizePath(path.join(config.root, filePath));
|
|
40
15
|
return {
|
|
41
16
|
name: "tamagui-extract",
|
|
42
17
|
enforce: "pre",
|
|
@@ -57,7 +32,7 @@ function tamaguiExtractPlugin(options) {
|
|
|
57
32
|
};
|
|
58
33
|
},
|
|
59
34
|
async configResolved(resolvedConfig) {
|
|
60
|
-
config = resolvedConfig, extractor =
|
|
35
|
+
config = resolvedConfig, extractor = createExtractor({
|
|
61
36
|
logger: resolvedConfig.logger
|
|
62
37
|
}), shouldReturnCSS = !0, virtualExt = `.tamagui.${shouldReturnCSS ? "css" : "js"}`;
|
|
63
38
|
},
|
|
@@ -90,7 +65,7 @@ function tamaguiExtractPlugin(options) {
|
|
|
90
65
|
return;
|
|
91
66
|
const css = cssMap.get(validId);
|
|
92
67
|
if (typeof css == "string")
|
|
93
|
-
return shouldReturnCSS || !server || server.config.isProduction ? css :
|
|
68
|
+
return shouldReturnCSS || !server || server.config.isProduction ? css : outdent`
|
|
94
69
|
import { injectStyles } from '@tamagui/core/inject-styles';
|
|
95
70
|
|
|
96
71
|
const inject = (css) => injectStyles({
|
|
@@ -111,13 +86,13 @@ function tamaguiExtractPlugin(options) {
|
|
|
111
86
|
const [validId] = id.split("?");
|
|
112
87
|
if (!validId.endsWith(".tsx"))
|
|
113
88
|
return;
|
|
114
|
-
const firstCommentIndex = code.indexOf("// "), { shouldDisable, shouldPrintDebug } =
|
|
89
|
+
const firstCommentIndex = code.indexOf("// "), { shouldDisable, shouldPrintDebug } = getPragmaOptions({
|
|
115
90
|
source: firstCommentIndex >= 0 ? code.slice(firstCommentIndex) : "",
|
|
116
91
|
path: validId
|
|
117
92
|
});
|
|
118
93
|
if (shouldDisable)
|
|
119
94
|
return;
|
|
120
|
-
const extracted = await
|
|
95
|
+
const extracted = await extractToClassNames({
|
|
121
96
|
extractor,
|
|
122
97
|
source: code,
|
|
123
98
|
sourcePath: validId,
|
|
@@ -134,8 +109,8 @@ function tamaguiExtractPlugin(options) {
|
|
|
134
109
|
let source = extracted.js;
|
|
135
110
|
if (extracted.styles) {
|
|
136
111
|
if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== extracted.styles) {
|
|
137
|
-
const { moduleGraph } = server, [
|
|
138
|
-
|
|
112
|
+
const { moduleGraph } = server, [module] = Array.from(moduleGraph.getModulesByFile(absoluteId) || []);
|
|
113
|
+
module && (moduleGraph.invalidateModule(module), module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now()), server.ws.send({
|
|
139
114
|
type: "custom",
|
|
140
115
|
event: styleUpdateEvent(absoluteId),
|
|
141
116
|
data: extracted.styles
|
|
@@ -151,8 +126,7 @@ import "${rootRelativeId}";`, cssMap.set(absoluteId, extracted.styles);
|
|
|
151
126
|
}
|
|
152
127
|
};
|
|
153
128
|
}
|
|
154
|
-
|
|
155
|
-
0 && (module.exports = {
|
|
129
|
+
export {
|
|
156
130
|
tamaguiExtractPlugin
|
|
157
|
-
}
|
|
131
|
+
};
|
|
158
132
|
//# sourceMappingURL=extract.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/extract.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": "AAEA,OAAO,UAAU;AAGjB,SAAS,iBAAiB,qBAAqB,wBAAwB;AACvE,OAAO,aAAa;AAEpB,SAAS,qBAAqB;AAE9B,MAAM,mBAAmB,CAAC,WAAmB,wBAAwB,MAAM,IACrE,0BAA0B;AAEzB,SAAS,qBAAqB,SAA0C;AAI7E,MAFE,QAAQ,WAAY,QAAQ,oBAAoB,QAAQ;AAGxD,WAAO;AAAA,MACL,MAAM;AAAA,IACR;AAGF,MAAI,YAAuD;AAC3D,QAAM,SAAS,oBAAI,IAAoB;AAEvC,MAAI,QACA,QACA,kBAAkB,IAClB;AAEJ,QAAM,2BAA2B,CAAC,aAC5B,SAAS,WAAW,OAAO,IAAI,IAC1B,WAEF,cAAc,KAAK,KAAK,OAAO,MAAM,QAAQ,CAAC;AAGvD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,gBAAgB,SAAS;AACvB,eAAS;AAAA,IACX;AAAA,IAEA,WAAW;AACT,gBAAW,kBAAkB;AAAA,IAC/B;AAAA,IAEA,YAAkBA,UAAS,QAAQ;AACjC,iBAAW,MAAM;AACf,g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AAI,YAAY,UAAU,MAAM;AAAA,MACzC;AAEA,aAAO;AAAA,QACL,MAAM,OAAO,SAAS;AAAA,QACtB,KAAK,UAAU;AAAA,MACjB;AAAA,IAwBF;AAAA,EACF;AACF;",
|
|
5
|
+
"names": ["options"]
|
|
6
6
|
}
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 getVitePath_exports = {};
|
|
25
|
-
__export(getVitePath_exports, {
|
|
26
|
-
getVitePath: () => getVitePath
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(getVitePath_exports);
|
|
29
|
-
var import_path = require("path"), import_esm_resolve = __toESM(require("esm-resolve")), import_fs_extra = require("fs-extra");
|
|
1
|
+
import { join, relative } from "path";
|
|
2
|
+
import resolve from "esm-resolve";
|
|
3
|
+
import { realpath } from "fs-extra";
|
|
30
4
|
async function getVitePath(importer, moduleName, absolute = !1) {
|
|
31
5
|
if (moduleName === "react-native")
|
|
32
6
|
return "react-native";
|
|
@@ -37,18 +11,17 @@ async function getVitePath(importer, moduleName, absolute = !1) {
|
|
|
37
11
|
if (moduleName === "react/jsx-dev-runtime")
|
|
38
12
|
return "react/jsx-dev-runtime";
|
|
39
13
|
if (moduleName[0] === ".")
|
|
40
|
-
return
|
|
14
|
+
return join("apps/tamastack/src", moduleName) + ".js";
|
|
41
15
|
{
|
|
42
|
-
const sourceFile =
|
|
16
|
+
const sourceFile = join(process.cwd(), "index.js"), resolved = resolve(sourceFile)(moduleName);
|
|
43
17
|
if (!resolved)
|
|
44
18
|
throw new Error("\u274C cant find");
|
|
45
|
-
const real = await
|
|
19
|
+
const real = await realpath(resolved);
|
|
46
20
|
let id = real;
|
|
47
|
-
return absolute || (id =
|
|
21
|
+
return absolute || (id = relative(importer, real)), id.endsWith("/react/jsx-dev-runtime.js") && (id = "react/jsx-runtime"), id;
|
|
48
22
|
}
|
|
49
23
|
}
|
|
50
|
-
|
|
51
|
-
0 && (module.exports = {
|
|
24
|
+
export {
|
|
52
25
|
getVitePath
|
|
53
|
-
}
|
|
26
|
+
};
|
|
54
27
|
//# sourceMappingURL=getVitePath.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/getVitePath.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAS,MAAM,gBAAgB;AAE/B,OAAO,aAAa;AACpB,SAAS,gBAAgB;AAEzB,eAAsB,YACpB,UACA,YACA,WAAW,IACX;AAEA,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAET,MAAI,eAAe;AACjB,WAAO;AAGT,MAAI,WAAW,CAAC,MAAM;AAEpB,WAAO,KAAK,sBAAsB,UAAU,IAAI;AAC3C;AACL,UAAM,aAAa,KAAK,QAAQ,IAAI,GAAG,UAAU,GAC3C,WAAW,QAAQ,UAAU,EAAE,UAAU;AAE/C,QAAI,CAAC;AACH,YAAM,IAAI,MAAM,kBAAa;AAE/B,UAAM,OAAO,MAAM,SAAS,QAAQ;AACpC,QAAI,KAAK;AACT,WAAK,aACH,KAAK,SAAS,UAAU,IAAI,IAE1B,GAAG,SAAS,2BAA2B,MACzC,KAAK,sBAEA;AAAA,EACT;AACF;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var src_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(src_exports);
|
|
15
|
-
__reExport(src_exports, require("./plugin"), module.exports);
|
|
16
|
-
__reExport(src_exports, require("./extract"), module.exports);
|
|
17
|
-
__reExport(src_exports, require("./getVitePath"), module.exports);
|
|
18
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
19
|
-
0 && (module.exports = {
|
|
20
|
-
...require("./plugin"),
|
|
21
|
-
...require("./extract"),
|
|
22
|
-
...require("./getVitePath")
|
|
23
|
-
});
|
|
1
|
+
export * from "./plugin";
|
|
2
|
+
export * from "./extract";
|
|
3
|
+
export * from "./getVitePath";
|
|
24
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
|
|
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 plugin_exports = {};
|
|
17
|
-
__export(plugin_exports, {
|
|
18
|
-
tamaguiPlugin: () => tamaguiPlugin
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(plugin_exports);
|
|
21
|
-
var import_static = require("@tamagui/static");
|
|
1
|
+
import { watchTamaguiConfig } from "@tamagui/static";
|
|
22
2
|
function tamaguiPlugin({
|
|
23
3
|
platform = "web",
|
|
24
4
|
...options
|
|
25
5
|
}) {
|
|
26
|
-
const watcher = options.disableWatchTamaguiConfig ? null :
|
|
6
|
+
const watcher = options.disableWatchTamaguiConfig ? null : watchTamaguiConfig({
|
|
27
7
|
platform,
|
|
28
8
|
components: ["tamagui"],
|
|
29
9
|
config: "./src/tamagui.config.ts",
|
|
@@ -120,8 +100,7 @@ function tamaguiPlugin({
|
|
|
120
100
|
}
|
|
121
101
|
};
|
|
122
102
|
}
|
|
123
|
-
|
|
124
|
-
0 && (module.exports = {
|
|
103
|
+
export {
|
|
125
104
|
tamaguiPlugin
|
|
126
|
-
}
|
|
105
|
+
};
|
|
127
106
|
//# sourceMappingURL=plugin.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/plugin.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AACA,SAAS,0BAA0B;AAO5B,SAAS,cAAc;AAAA,EAC5B,WAAW;AAAA,EACX,GAAG;AACL,GAMW;AACT,QAAM,UAAU,QAAQ,4BACpB,OACA,mBAAmB;AAAA,IACjB;AAAA,IACA,YAAY,CAAC,SAAS;AAAA,IACtB,QAAQ;AAAA,IACR,GAAG;AAAA,EACL,CAAC,GAEC,aAAa;AAAA,IACjB,GAAG,oBAAI,IAAI,CAAC,GAAI,QAAQ,cAAc,CAAC,GAAI,WAAW,eAAe,CAAC;AAAA,EACxE,GACM,gBAAgB,IAAI;AAAA,IACxB,GAAG,WAAW,KAAK,GAAG,CAAC;AAAA,IACvB;AAAA,EACF,GAEM,aAAa;AAAA,IACjB,IAAI,QAAQ;AAAA,IACZ,IAAI,QAAQ;AAAA,IACZ,IAAI,QAAQ;AAAA,IACZ,IAAI,QAAQ;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AA+EA,SA7EuB;AAAA,IACrB,MAAM;AAAA,IACN,SAAS;AAAA,IAET,MAAM,WAAW;AACf,aAAM,mCAAS,KAAK,CAA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
2
|
"name": "@tamagui/vite-plugin",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.23",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@tamagui/fake-react-native": "1.88.
|
|
30
|
-
"@tamagui/proxy-worm": "1.88.
|
|
31
|
-
"@tamagui/react-native-svg": "1.88.
|
|
32
|
-
"@tamagui/static": "1.88.
|
|
29
|
+
"@tamagui/fake-react-native": "1.88.23",
|
|
30
|
+
"@tamagui/proxy-worm": "1.88.23",
|
|
31
|
+
"@tamagui/react-native-svg": "1.88.23",
|
|
32
|
+
"@tamagui/static": "1.88.23",
|
|
33
33
|
"esm-resolve": "^1.0.8",
|
|
34
34
|
"fs-extra": "^11.2.0",
|
|
35
35
|
"outdent": "^0.8.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@tamagui/build": "1.88.
|
|
38
|
+
"@tamagui/build": "1.88.23"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|