@powerlines/plugin-tamagui 0.1.331 → 0.1.332
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/README.md +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/index.cjs +26 -27
- package/dist/index.mjs +1 -3
- package/package.json +6 -6
- package/dist/index.d.cts +0 -20
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -20
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.d.mts +0 -2
- package/dist/types/plugin.d.cts +0 -35
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -35
- package/dist/types/plugin.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -58,21 +58,19 @@ A package containing the [Tamagui](https://tamagui.dev/) plugin for Powerlines.
|
|
|
58
58
|
|
|
59
59
|
## Table of Contents
|
|
60
60
|
|
|
61
|
-
- [
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- [Contributing](#contributing)
|
|
75
|
-
- [Contributors](#contributors)
|
|
61
|
+
- [Installing](#installing)
|
|
62
|
+
- [Reduced Package Size](#reduced-package-size)
|
|
63
|
+
- [Development](#development)
|
|
64
|
+
- [Building](#building)
|
|
65
|
+
- [Running unit tests](#running-unit-tests)
|
|
66
|
+
- [Linting](#linting)
|
|
67
|
+
- [Storm Workspaces](#storm-workspaces)
|
|
68
|
+
- [Roadmap](#roadmap)
|
|
69
|
+
- [Support](#support)
|
|
70
|
+
- [License](#license)
|
|
71
|
+
- [Changelog](#changelog)
|
|
72
|
+
- [Contributing](#contributing)
|
|
73
|
+
- [Contributors](#contributors)
|
|
76
74
|
|
|
77
75
|
<!-- END doctoc -->
|
|
78
76
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
const
|
|
3
|
-
let
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _stryke_fs_resolve = require("@stryke/fs/resolve");
|
|
4
|
+
let _stryke_hash_neutral = require("@stryke/hash/neutral");
|
|
5
|
+
let _stryke_path_join = require("@stryke/path/join");
|
|
6
|
+
let _tamagui_static_worker = require("@tamagui/static-worker");
|
|
7
|
+
_tamagui_static_worker = require_runtime.__toESM(_tamagui_static_worker);
|
|
8
8
|
let defu = require("defu");
|
|
9
|
-
defu =
|
|
9
|
+
defu = require_runtime.__toESM(defu);
|
|
10
10
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
11
11
|
let vite = require("vite");
|
|
12
12
|
|
|
@@ -30,9 +30,9 @@ const plugin = (options = {}) => {
|
|
|
30
30
|
name: "tamagui",
|
|
31
31
|
async config() {
|
|
32
32
|
const configPath = (0, powerlines_plugin_utils.getConfigPath)(this, "tamagui");
|
|
33
|
-
const tamaguiOptions = await (0,
|
|
33
|
+
const tamaguiOptions = await (0, _tamagui_static_worker.loadTamaguiBuildConfig)((0, defu.default)({
|
|
34
34
|
...options,
|
|
35
|
-
components: [(0,
|
|
35
|
+
components: [(0, _stryke_path_join.joinPaths)("{root}", "src/components")]
|
|
36
36
|
}, {
|
|
37
37
|
config: configPath,
|
|
38
38
|
disableExtraction: false,
|
|
@@ -44,22 +44,22 @@ const plugin = (options = {}) => {
|
|
|
44
44
|
if (tamaguiOptions.platform !== "native") {
|
|
45
45
|
alias.push({
|
|
46
46
|
find: "react-native/Libraries/Renderer/shims/ReactFabric",
|
|
47
|
-
replacement: await (0,
|
|
47
|
+
replacement: await (0, _stryke_fs_resolve.resolvePackage)("@tamagui/proxy-worm") || "@tamagui/proxy-worm"
|
|
48
48
|
});
|
|
49
49
|
alias.push({
|
|
50
50
|
find: "react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry",
|
|
51
|
-
replacement: await (0,
|
|
51
|
+
replacement: await (0, _stryke_fs_resolve.resolvePackage)("@tamagui/proxy-worm") || "@tamagui/proxy-worm"
|
|
52
52
|
});
|
|
53
53
|
alias.push({
|
|
54
54
|
find: "react-native-svg",
|
|
55
|
-
replacement: await (0,
|
|
55
|
+
replacement: await (0, _stryke_fs_resolve.resolvePackage)("react-native-svg") || "react-native-svg"
|
|
56
56
|
});
|
|
57
57
|
if (tamaguiOptions?.useReactNativeWebLite) {
|
|
58
58
|
alias.push({
|
|
59
59
|
find: "react-native",
|
|
60
|
-
replacement: await (0,
|
|
60
|
+
replacement: await (0, _stryke_fs_resolve.resolvePackage)("react-native-web-lite") || "react-native-web-lite"
|
|
61
61
|
});
|
|
62
|
-
const reactNativeWebLite = await (0,
|
|
62
|
+
const reactNativeWebLite = await (0, _stryke_fs_resolve.resolvePackage)(tamaguiOptions?.useReactNativeWebLite === "without-animated" ? "@tamagui/react-native-web-lite/without-animated" : "@tamagui/react-native-web-lite") || tamaguiOptions?.useReactNativeWebLite === "without-animated" ? "@tamagui/react-native-web-lite/without-animated" : "@tamagui/react-native-web-lite";
|
|
63
63
|
alias.push({
|
|
64
64
|
find: /^react-native$/,
|
|
65
65
|
replacement: reactNativeWebLite
|
|
@@ -78,7 +78,7 @@ const plugin = (options = {}) => {
|
|
|
78
78
|
});
|
|
79
79
|
alias.push({
|
|
80
80
|
find: /react-native.*\/dist\/exports\/StyleSheet\/compiler\/createReactDOMStyle/,
|
|
81
|
-
replacement: await (0,
|
|
81
|
+
replacement: await (0, _stryke_fs_resolve.resolvePackage)("@tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle") || "@tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle"
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -136,7 +136,7 @@ const plugin = (options = {}) => {
|
|
|
136
136
|
const [validId, query] = id.split("?");
|
|
137
137
|
if (!validId?.endsWith(".tamagui.css")) return;
|
|
138
138
|
let absoluteId = id;
|
|
139
|
-
if (!id.startsWith(this.config.root)) absoluteId = (0,
|
|
139
|
+
if (!id.startsWith(this.config.root)) absoluteId = (0, _stryke_path_join.joinPaths)(this.config.root, validId);
|
|
140
140
|
if (cssMap.has(absoluteId)) return absoluteId + (query ? `?${query}` : "");
|
|
141
141
|
return null;
|
|
142
142
|
},
|
|
@@ -160,13 +160,13 @@ const plugin = (options = {}) => {
|
|
|
160
160
|
const [validId] = id.split("?");
|
|
161
161
|
if (!validId?.endsWith(".tsx")) return;
|
|
162
162
|
const firstCommentIndex = code.indexOf("// ");
|
|
163
|
-
const { shouldDisable, shouldPrintDebug } = await (0,
|
|
163
|
+
const { shouldDisable, shouldPrintDebug } = await (0, _tamagui_static_worker.getPragmaOptions)({
|
|
164
164
|
source: firstCommentIndex >= 0 ? code.slice(firstCommentIndex) : "",
|
|
165
165
|
path: validId
|
|
166
166
|
});
|
|
167
167
|
if (shouldPrintDebug) this.trace(`Current file: ${id} in environment: ${this.environment?.name}, shouldDisable: ${shouldDisable}\n\nOriginal source:\n${code}\n\n`);
|
|
168
168
|
if (shouldDisable) return;
|
|
169
|
-
const cacheKey = (0,
|
|
169
|
+
const cacheKey = (0, _stryke_hash_neutral.murmurhash)({
|
|
170
170
|
cacheEnv: this.environment.name === "client" || this.environment.name === "ssr" ? "web" : this.environment.name,
|
|
171
171
|
code,
|
|
172
172
|
id
|
|
@@ -175,7 +175,7 @@ const plugin = (options = {}) => {
|
|
|
175
175
|
if (cached) return cached;
|
|
176
176
|
let extracted;
|
|
177
177
|
try {
|
|
178
|
-
extracted = await
|
|
178
|
+
extracted = await _tamagui_static_worker.extractToClassNames({
|
|
179
179
|
source: code,
|
|
180
180
|
sourcePath: validId,
|
|
181
181
|
options: this.config.tamagui,
|
|
@@ -188,7 +188,7 @@ const plugin = (options = {}) => {
|
|
|
188
188
|
if (!extracted) return;
|
|
189
189
|
const rootRelativeId = `${validId}.tamagui.css`;
|
|
190
190
|
let absoluteId = rootRelativeId;
|
|
191
|
-
if (!absoluteId.startsWith(this.config.root)) absoluteId = (0,
|
|
191
|
+
if (!absoluteId.startsWith(this.config.root)) absoluteId = (0, _stryke_path_join.joinPaths)(this.config.root, rootRelativeId);
|
|
192
192
|
let source = extracted.js;
|
|
193
193
|
if (extracted.styles) {
|
|
194
194
|
this.addWatchFile(rootRelativeId);
|
|
@@ -196,9 +196,9 @@ const plugin = (options = {}) => {
|
|
|
196
196
|
if (server) {
|
|
197
197
|
const { moduleGraph } = server;
|
|
198
198
|
const modules = moduleGraph.getModulesByFile(rootRelativeId);
|
|
199
|
-
if (modules) for (const module
|
|
200
|
-
moduleGraph.invalidateModule(module
|
|
201
|
-
module
|
|
199
|
+
if (modules) for (const module of modules) {
|
|
200
|
+
moduleGraph.invalidateModule(module);
|
|
201
|
+
module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -216,15 +216,14 @@ const plugin = (options = {}) => {
|
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
async finalize() {
|
|
219
|
-
await
|
|
219
|
+
await _tamagui_static_worker?.destroyPool();
|
|
220
220
|
},
|
|
221
221
|
vite: { configureServer(_server) {
|
|
222
222
|
server = _server;
|
|
223
223
|
} }
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
var src_default = plugin;
|
|
227
226
|
|
|
228
227
|
//#endregion
|
|
229
|
-
exports.default =
|
|
228
|
+
exports.default = plugin;
|
|
230
229
|
exports.plugin = plugin;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tamagui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.332",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing the Tamagui plugin for Powerlines.",
|
|
6
6
|
"keywords": ["tamagui", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"default": "./dist/index.mjs"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"./package.json": "./package.json",
|
|
58
58
|
"./types": {
|
|
59
59
|
"require": {
|
|
60
60
|
"types": "./dist/types/index.d.cts",
|
|
@@ -90,21 +90,21 @@
|
|
|
90
90
|
"typings": "dist/index.d.mts",
|
|
91
91
|
"files": ["dist/**/*"],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@powerlines/plugin-vite": "^0.14.
|
|
93
|
+
"@powerlines/plugin-vite": "^0.14.340",
|
|
94
94
|
"@stryke/fs": "^0.33.57",
|
|
95
95
|
"@stryke/hash": "^0.13.10",
|
|
96
96
|
"@stryke/path": "^0.26.19",
|
|
97
97
|
"@tamagui/static-worker": "^1.144.4",
|
|
98
98
|
"defu": "^6.1.4",
|
|
99
|
-
"powerlines": "^0.41.
|
|
99
|
+
"powerlines": "^0.41.7",
|
|
100
100
|
"typescript": "^5.9.3",
|
|
101
101
|
"vite": "8.0.0-beta.16"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
104
|
+
"@powerlines/plugin-plugin": "^0.12.293",
|
|
105
105
|
"@tamagui/types": "^1.144.4",
|
|
106
106
|
"@types/node": "^25.4.0"
|
|
107
107
|
},
|
|
108
108
|
"publishConfig": { "access": "public" },
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "2fb48143904805988bac9bdbc04cdc4a35ff398b"
|
|
110
110
|
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import "./types/index.cjs";
|
|
3
|
-
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare module "powerlines" {
|
|
7
|
-
interface Config {
|
|
8
|
-
tamagui?: TamaguiPluginOptions;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Tamagui plugin for Powerlines.
|
|
13
|
-
*
|
|
14
|
-
* @param options - The Tamagui plugin user configuration options.
|
|
15
|
-
* @returns A Powerlines plugin that integrates Tamagui into an existing Powerlines project.
|
|
16
|
-
*/
|
|
17
|
-
declare const plugin: <TContext extends TamaguiPluginContext = TamaguiPluginContext>(options?: TamaguiPluginOptions) => Plugin<TContext>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig, plugin as default, plugin };
|
|
20
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAkCwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import "./types/index.mjs";
|
|
3
|
-
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare module "powerlines" {
|
|
7
|
-
interface Config {
|
|
8
|
-
tamagui?: TamaguiPluginOptions;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Tamagui plugin for Powerlines.
|
|
13
|
-
*
|
|
14
|
-
* @param options - The Tamagui plugin user configuration options.
|
|
15
|
-
* @returns A Powerlines plugin that integrates Tamagui into an existing Powerlines project.
|
|
16
|
-
*/
|
|
17
|
-
declare const plugin: <TContext extends TamaguiPluginContext = TamaguiPluginContext>(options?: TamaguiPluginOptions) => Plugin<TContext>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig, plugin as default, plugin };
|
|
20
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAkCwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["server: ViteDevServer | null","alias: ResolveConfig[\"alias\"]","extracted: ExtractedResponse | null"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { VitePluginResolvedConfig } from \"@powerlines/plugin-vite/types/plugin\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { murmurhash } from \"@stryke/hash/neutral\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport type { ExtractedResponse, TamaguiOptions } from \"@tamagui/static-worker\";\nimport * as Static from \"@tamagui/static-worker\";\nimport {\n getPragmaOptions,\n loadTamaguiBuildConfig\n} from \"@tamagui/static-worker\";\nimport defu from \"defu\";\nimport { EnvironmentConfig, Plugin, ResolveConfig } from \"powerlines\";\nimport { getConfigPath, replacePathTokens } from \"powerlines/plugin-utils\";\nimport { transformWithEsbuild, ViteDevServer } from \"vite\";\nimport { TamaguiPluginContext, TamaguiPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n tamagui?: TamaguiPluginOptions;\n }\n}\n\n/**\n * Tamagui plugin for Powerlines.\n *\n * @param options - The Tamagui plugin user configuration options.\n * @returns A Powerlines plugin that integrates Tamagui into an existing Powerlines project.\n */\nexport const plugin = <\n TContext extends TamaguiPluginContext = TamaguiPluginContext\n>(\n options: TamaguiPluginOptions = {}\n): Plugin<TContext> => {\n let memoryCache = {} as Record<string, { code: string; map?: any }>;\n let cacheSize = 0;\n\n const clearCompilerCache = () => {\n memoryCache = {};\n cacheSize = 0;\n };\n\n const cssMap = new Map<string, string>();\n let server: ViteDevServer | null = null;\n\n return {\n name: \"tamagui\",\n async config() {\n const configPath = getConfigPath(this, \"tamagui\");\n\n const tamaguiOptions = await loadTamaguiBuildConfig(\n defu(\n {\n ...options,\n components: [joinPaths(\"{root}\", \"src/components\")]\n },\n {\n config: configPath,\n disableExtraction: false,\n platform: \"web\" as const,\n logTimings:\n this.config.logLevel === \"debug\" ||\n this.config.logLevel === \"trace\",\n prefixLogs: \"Powerlines\"\n } as Partial<TamaguiOptions>\n )\n );\n\n const alias: ResolveConfig[\"alias\"] = [];\n if (tamaguiOptions.platform !== \"native\") {\n alias.push({\n find: \"react-native/Libraries/Renderer/shims/ReactFabric\",\n replacement:\n (await resolvePackage(\"@tamagui/proxy-worm\")) ||\n \"@tamagui/proxy-worm\"\n });\n\n alias.push({\n find: \"react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry\",\n replacement:\n (await resolvePackage(\"@tamagui/proxy-worm\")) ||\n \"@tamagui/proxy-worm\"\n });\n alias.push({\n find: \"react-native-svg\",\n replacement:\n (await resolvePackage(\"react-native-svg\")) || \"react-native-svg\"\n });\n\n if (tamaguiOptions?.useReactNativeWebLite) {\n alias.push({\n find: \"react-native\",\n replacement:\n (await resolvePackage(\"react-native-web-lite\")) ||\n \"react-native-web-lite\"\n });\n\n const reactNativeWebLite =\n (await resolvePackage(\n tamaguiOptions?.useReactNativeWebLite === \"without-animated\"\n ? \"@tamagui/react-native-web-lite/without-animated\"\n : \"@tamagui/react-native-web-lite\"\n )) || tamaguiOptions?.useReactNativeWebLite === \"without-animated\"\n ? \"@tamagui/react-native-web-lite/without-animated\"\n : \"@tamagui/react-native-web-lite\";\n alias.push({\n find: /^react-native$/,\n replacement: reactNativeWebLite\n });\n\n alias.push({\n find: /^react-native\\/(.+)$/,\n replacement: `${reactNativeWebLite}/$1`\n });\n alias.push({\n find: /^react-native-web$/,\n replacement: reactNativeWebLite\n });\n alias.push({\n find: /^react-native-web\\/(.+)$/,\n replacement: `${reactNativeWebLite}/$1`\n });\n\n alias.push({\n find: /react-native.*\\/dist\\/exports\\/StyleSheet\\/compiler\\/createReactDOMStyle/,\n replacement:\n (await resolvePackage(\n \"@tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle\"\n )) ||\n \"@tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle\"\n });\n }\n }\n\n return {\n tamagui: tamaguiOptions,\n build: {\n platform: \"browser\",\n extensions: [\n `.web.mjs`,\n `.web.js`,\n `.web.jsx`,\n `.web.ts`,\n `.web.tsx`,\n \".mjs\",\n \".js\",\n \".mts\",\n \".ts\",\n \".jsx\",\n \".tsx\",\n \".json\"\n ],\n define: {\n _frameTimestamp: undefined,\n _WORKLET: false,\n __DEV__: `${this.config.mode === \"development\"}`,\n \"process.env.NODE_ENV\": JSON.stringify(\n process.env.NODE_ENV || this.config.mode\n ),\n \"process.env.ENABLE_RSC\": JSON.stringify(\n process.env.ENABLE_RSC || \"\"\n ),\n \"process.env.ENABLE_STEPS\": JSON.stringify(\n process.env.ENABLE_STEPS || \"\"\n ),\n \"process.env.IS_STATIC\": JSON.stringify(false),\n ...(this.config.mode === \"production\" && {\n \"process.env.TAMAGUI_OPTIMIZE_THEMES\": JSON.stringify(true)\n })\n },\n alias\n }\n };\n },\n configEnvironment(name: string, environment: EnvironmentConfig) {\n if (environment.consumer === \"client\" || name === \"client\") {\n return {\n build: {\n define: {\n \"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(true),\n \"process.env.TAMAGUI_ENVIRONMENT\": '\"client\"'\n }\n }\n };\n }\n\n return null;\n },\n configResolved() {\n if (\n !this.config.tamagui.components ||\n this.config.tamagui.components.length === 0\n ) {\n throw new Error(\n `Tamagui Plugin: No components paths defined in Tamagui configuration. Please ensure that the 'components' option is set correctly.`\n );\n }\n\n this.config.tamagui.components = this.config.tamagui.components\n .map(path => replacePathTokens(this, path))\n .filter(Boolean);\n\n if ((this.config as unknown as VitePluginResolvedConfig).vite) {\n (\n this.config as unknown as VitePluginResolvedConfig\n ).vite.optimizeDeps ??= {};\n (\n this.config as unknown as VitePluginResolvedConfig\n ).vite.optimizeDeps!.include ??= [];\n (\n this.config as unknown as VitePluginResolvedConfig\n ).vite.optimizeDeps!.include!.push(\"@tamagui/core/inject-styles\");\n }\n },\n async resolveId(id: string) {\n if (\n this.environment?.name &&\n (this.environment.name === \"ios\" || this.environment.name === \"android\")\n ) {\n return;\n }\n\n if (\n this.config?.tamagui?.disableServerOptimization &&\n this.environment?.name &&\n this.environment.name !== \"client\"\n ) {\n // only optimize on client - server should produce identical styles anyway!\n return;\n }\n\n const [validId, query] = id.split(\"?\");\n if (!validId?.endsWith(\".tamagui.css\")) {\n return;\n }\n\n // Absolute paths seem to occur often in monorepos, where files are\n // imported from outside the config root.\n let absoluteId = id;\n if (!id.startsWith(this.config.root)) {\n absoluteId = joinPaths(this.config.root, validId);\n }\n\n // There should always be an entry in the `cssMap` here.\n // The only valid scenario for a missing one is if someone had written\n // a file in their app using the .tamagui.js/.tamagui.css extension\n if (cssMap.has(absoluteId)) {\n // Keep the original query string for HMR.\n return absoluteId + (query ? `?${query}` : \"\");\n }\n\n return null;\n },\n async load(id) {\n if (this.config?.tamagui?.disableExtraction) {\n // only optimize on client - server should produce identical styles anyway!\n return;\n }\n\n if (\n this.environment?.name &&\n (this.environment.name === \"ios\" || this.environment.name === \"android\")\n ) {\n return;\n }\n\n if (\n this.config?.tamagui?.disableServerOptimization &&\n this.environment?.name &&\n this.environment.name !== \"client\"\n ) {\n return;\n }\n\n const [validId] = id.split(\"?\");\n\n return validId ? cssMap.get(validId) : null;\n },\n transform: {\n order: \"pre\",\n async handler(code, id) {\n if (id.includes(\"expo-linear-gradient\")) {\n return transformWithEsbuild(code, id, {\n loader: \"jsx\",\n jsx: \"automatic\"\n });\n }\n\n if (this.config?.tamagui?.disableExtraction) {\n // only optimize on client - server should produce identical styles anyway!\n return;\n }\n\n if (\n this.environment?.name &&\n (this.environment.name === \"ios\" ||\n this.environment.name === \"android\")\n ) {\n return;\n }\n\n if (\n this.config?.tamagui?.disableServerOptimization &&\n this.environment?.name &&\n this.environment.name !== \"client\"\n ) {\n return;\n }\n\n const [validId] = id.split(\"?\");\n if (!validId?.endsWith(\".tsx\")) {\n return;\n }\n\n const firstCommentIndex = code.indexOf(\"// \");\n const { shouldDisable, shouldPrintDebug } = await getPragmaOptions({\n source: firstCommentIndex >= 0 ? code.slice(firstCommentIndex) : \"\",\n path: validId\n });\n\n if (shouldPrintDebug) {\n this.trace(\n `Current file: ${id} in environment: ${this.environment?.name}, shouldDisable: ${shouldDisable}\\n\\nOriginal source:\\n${code}\\n\\n`\n );\n }\n\n if (shouldDisable) {\n return;\n }\n\n const cacheKey = murmurhash({\n cacheEnv:\n this.environment.name === \"client\" ||\n this.environment.name === \"ssr\"\n ? // same cache key for ssr and web since they are the same\n \"web\"\n : this.environment.name,\n code,\n id\n });\n\n const cached = memoryCache[cacheKey];\n if (cached) {\n return cached;\n }\n\n let extracted: ExtractedResponse | null;\n try {\n extracted = await Static.extractToClassNames({\n source: code,\n sourcePath: validId,\n options: this.config.tamagui,\n shouldPrintDebug\n });\n } catch (err) {\n // Log the error but don't fail the build - just skip optimization\n this.error(err instanceof Error ? err.message : String(err));\n return;\n }\n\n if (!extracted) {\n return;\n }\n\n const rootRelativeId = `${validId}.tamagui.css`;\n\n let absoluteId = rootRelativeId;\n if (!absoluteId.startsWith(this.config.root)) {\n absoluteId = joinPaths(this.config.root, rootRelativeId);\n }\n\n let source = extracted.js;\n if (extracted.styles) {\n this.addWatchFile(rootRelativeId);\n\n if (server && cssMap.has(absoluteId)) {\n if (server) {\n const { moduleGraph } = server;\n const modules = moduleGraph.getModulesByFile(rootRelativeId);\n\n if (modules) {\n for (const module of modules) {\n moduleGraph.invalidateModule(module);\n\n // Vite uses this timestamp to add `?t=` query string automatically for HMR.\n module.lastHMRTimestamp =\n module.lastInvalidationTimestamp || Date.now();\n }\n }\n }\n }\n\n source = `${source.toString()}\\nimport \"${rootRelativeId}\";`;\n cssMap.set(absoluteId, extracted.styles);\n }\n\n const result = {\n code: source.toString(),\n map: extracted.map\n };\n\n cacheSize += result.code.length;\n // ~50Mb cache for recently compiler files\n if (cacheSize > 26214400) {\n clearCompilerCache();\n }\n\n memoryCache[cacheKey] = result;\n\n return result;\n }\n },\n async finalize() {\n // Only destroy the pool at the very end of the entire build\n await Static?.destroyPool();\n },\n vite: {\n configureServer(_server) {\n server = _server;\n }\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;AAgDA,MAAa,UAGX,UAAgC,EAAE,KACb;CACrB,IAAI,cAAc,EAAE;CACpB,IAAI,YAAY;CAEhB,MAAM,2BAA2B;AAC/B,gBAAc,EAAE;AAChB,cAAY;;CAGd,MAAM,yBAAS,IAAI,KAAqB;CACxC,IAAIA,SAA+B;AAEnC,QAAO;EACL,MAAM;EACN,MAAM,SAAS;GACb,MAAM,aAAa,cAAc,MAAM,UAAU;GAEjD,MAAM,iBAAiB,MAAM,uBAC3B,KACE;IACE,GAAG;IACH,YAAY,CAAC,UAAU,UAAU,iBAAiB,CAAC;IACpD,EACD;IACE,QAAQ;IACR,mBAAmB;IACnB,UAAU;IACV,YACE,KAAK,OAAO,aAAa,WACzB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K,OAAO;MACrB;MACD,CAAC;aACK,KAAK;AAEZ,UAAK,MAAM,eAAe,QAAQ,IAAI,UAAU,OAAO,IAAI,CAAC;AAC5D;;AAGF,QAAI,CAAC,UACH;IAGF,MAAM,iBAAiB,GAAG,QAAQ;IAElC,IAAI,aAAa;AACjB,QAAI,CAAC,WAAW,WAAW,KAAK,OAAO,KAAK,CAC1C,cAAa,UAAU,KAAK,OAAO,MAAM,eAAe;IAG1D,IAAI,SAAS,UAAU;AACvB,QAAI,UAAU,QAAQ;AACpB,UAAK,aAAa,eAAe;AAEjC,SAAI,UAAU,OAAO,IAAI,WAAW,EAClC;UAAI,QAAQ;OACV,MAAM,EAAE,gBAAgB;OACxB,MAAM,UAAU,YAAY,iBAAiB,eAAe;AAE5D,WAAI,QACF,MAAK,MAAM,UAAU,SAAS;AAC5B,oBAAY,iBAAiB,OAAO;AAGpC,eAAO,mBACL,OAAO,6BAA6B,KAAK,KAAK;;;;AAMxD,cAAS,GAAG,OAAO,UAAU,CAAC,YAAY,eAAe;AACzD,YAAO,IAAI,YAAY,UAAU,OAAO;;IAG1C,MAAM,SAAS;KACb,MAAM,OAAO,UAAU;KACvB,KAAK,UAAU;KAChB;AAED,iBAAa,OAAO,KAAK;AAEzB,QAAI,YAAY,SACd,qBAAoB;AAGtB,gBAAY,YAAY;AAExB,WAAO;;GAEV;EACD,MAAM,WAAW;AAEf,SAAM,QAAQ,aAAa;;EAE7B,MAAM,EACJ,gBAAgB,SAAS;AACvB,YAAS;KAEZ;EACF;;AAGH,kBAAe"}
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig };
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
-
import { TamaguiOptions } from "@tamagui/types";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type TamaguiPluginOptions = Partial<TamaguiOptions> & {
|
|
6
|
-
/**
|
|
7
|
-
* The target platform for the Tamagui build.
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue "web"
|
|
10
|
-
*/
|
|
11
|
-
platform?: "web" | "native";
|
|
12
|
-
/**
|
|
13
|
-
* An array of component paths to include in the Tamagui build.
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* These paths can include glob patterns to match multiple files or directories and placeholder tokens (the `replacePathTokens` function will be applied to allow for dynamic path resolution).
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue ["\{root\}/src/components"]
|
|
19
|
-
*/
|
|
20
|
-
components?: string[];
|
|
21
|
-
};
|
|
22
|
-
interface TamaguiPluginUserConfig extends UserConfig {
|
|
23
|
-
tamagui: TamaguiPluginOptions;
|
|
24
|
-
}
|
|
25
|
-
interface TamaguiPluginResolvedConfig extends ResolvedConfig {
|
|
26
|
-
tamagui: TamaguiOptions & Required<Pick<TamaguiPluginOptions, "platform">>;
|
|
27
|
-
}
|
|
28
|
-
type TamaguiPluginContext<TResolvedConfig extends TamaguiPluginResolvedConfig = TamaguiPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
-
declare type __ΩTamaguiPluginOptions = any[];
|
|
30
|
-
declare type __ΩTamaguiPluginUserConfig = any[];
|
|
31
|
-
declare type __ΩTamaguiPluginResolvedConfig = any[];
|
|
32
|
-
declare type __ΩTamaguiPluginContext = any[];
|
|
33
|
-
//#endregion
|
|
34
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig };
|
|
35
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;;AAA3C;AAmBA;AAIA;;EAC0C,QAAA,CAAA,EAAA,KAAA,GAAA,QAAA;EAAL;;;;AAGrC;;;;EAGI,UAAA,CAAA,EAAA,MAAA,EAAA;CAAa;UAXA,uBAAA,SAAgC;WACtC;;UAGM,2BAAA,SAAoC;WAC1C,iBAAiB,SAAS,KAAK;;KAG9B,6CACc,8BACtB,+BACA,cAAc"}
|
package/dist/types/plugin.d.mts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
-
import { TamaguiOptions } from "@tamagui/types";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type TamaguiPluginOptions = Partial<TamaguiOptions> & {
|
|
6
|
-
/**
|
|
7
|
-
* The target platform for the Tamagui build.
|
|
8
|
-
*
|
|
9
|
-
* @defaultValue "web"
|
|
10
|
-
*/
|
|
11
|
-
platform?: "web" | "native";
|
|
12
|
-
/**
|
|
13
|
-
* An array of component paths to include in the Tamagui build.
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* These paths can include glob patterns to match multiple files or directories and placeholder tokens (the `replacePathTokens` function will be applied to allow for dynamic path resolution).
|
|
17
|
-
*
|
|
18
|
-
* @defaultValue ["\{root\}/src/components"]
|
|
19
|
-
*/
|
|
20
|
-
components?: string[];
|
|
21
|
-
};
|
|
22
|
-
interface TamaguiPluginUserConfig extends UserConfig {
|
|
23
|
-
tamagui: TamaguiPluginOptions;
|
|
24
|
-
}
|
|
25
|
-
interface TamaguiPluginResolvedConfig extends ResolvedConfig {
|
|
26
|
-
tamagui: TamaguiOptions & Required<Pick<TamaguiPluginOptions, "platform">>;
|
|
27
|
-
}
|
|
28
|
-
type TamaguiPluginContext<TResolvedConfig extends TamaguiPluginResolvedConfig = TamaguiPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
-
declare type __ΩTamaguiPluginOptions = any[];
|
|
30
|
-
declare type __ΩTamaguiPluginUserConfig = any[];
|
|
31
|
-
declare type __ΩTamaguiPluginResolvedConfig = any[];
|
|
32
|
-
declare type __ΩTamaguiPluginContext = any[];
|
|
33
|
-
//#endregion
|
|
34
|
-
export { TamaguiPluginContext, TamaguiPluginOptions, TamaguiPluginResolvedConfig, TamaguiPluginUserConfig, __ΩTamaguiPluginContext, __ΩTamaguiPluginOptions, __ΩTamaguiPluginResolvedConfig, __ΩTamaguiPluginUserConfig };
|
|
35
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;;AAA3C;AAmBA;AAIA;;EAC0C,QAAA,CAAA,EAAA,KAAA,GAAA,QAAA;EAAL;;;;AAGrC;;;;EAGI,UAAA,CAAA,EAAA,MAAA,EAAA;CAAa;UAXA,uBAAA,SAAgC;WACtC;;UAGM,2BAAA,SAAoC;WAC1C,iBAAiB,SAAS,KAAK;;KAG9B,6CACc,8BACtB,+BACA,cAAc"}
|