@tamagui/vite-plugin 1.0.11 → 1.0.13

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.
File without changes
File without changes
package/dist/cjs/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/esm/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/vite-plugin",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@originjs/vite-plugin-commonjs": "^1.0.3",
28
- "@tamagui/fake-react-native": "^1.0.11",
29
- "@tamagui/proxy-worm": "^1.0.11",
30
- "@tamagui/react-native-svg": "^1.0.11",
31
- "@tamagui/static": "^1.0.11",
28
+ "@tamagui/fake-react-native": "^1.0.13",
29
+ "@tamagui/proxy-worm": "^1.0.13",
30
+ "@tamagui/react-native-svg": "^1.0.13",
31
+ "@tamagui/static": "^1.0.13",
32
32
  "fs-extra": "^10.1.0",
33
33
  "lodash": "^4.17.21",
34
34
  "outdent": "^0.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tamagui/build": "^1.0.11",
37
+ "@tamagui/build": "^1.0.13",
38
38
  "vite-plugin-environment": "^1.1.3"
39
39
  },
40
40
  "publishConfig": {
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
- var extractPlugin_exports = {};
23
- __export(extractPlugin_exports, {
24
- tamaguiExtractPlugin: () => tamaguiExtractPlugin
25
- });
26
- module.exports = __toCommonJS(extractPlugin_exports);
27
- var import_path = __toESM(require("path"));
28
- var import_vite = require("vite");
29
- const styleUpdateEvent = (fileId) => `tamagui-style-update:${fileId}`;
30
- function tamaguiExtractPlugin(options) {
31
- let config;
32
- let server;
33
- const cssMap = /* @__PURE__ */ new Map();
34
- let virtualExt;
35
- let packageName;
36
- const getAbsoluteVirtualFileId = (source) => (0, import_vite.normalizePath)(import_path.default.join(config.root, source));
37
- return {
38
- name: "tamagui-extract",
39
- enforce: "pre",
40
- configureServer(_server) {
41
- server = _server;
42
- },
43
- config(_userConfig, env) {
44
- },
45
- async configResolved(resolvedConfig) {
46
- },
47
- resolveId(source) {
48
- },
49
- load(id) {
50
- },
51
- async transform(code, id, ssrParam) {
52
- }
53
- };
54
- }
55
- // Annotate the CommonJS export names for ESM import in node:
56
- 0 && (module.exports = {
57
- tamaguiExtractPlugin
58
- });
59
- //# sourceMappingURL=extractPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/extractPlugin.ts"],
4
- "sourcesContent": ["// fork from https://github.com/seek-oss/vanilla-extract/blob/master/packages/vite-plugin/src/index.ts\n\nimport path from 'path'\n\nimport type { TamaguiOptions } from '@tamagui/static'\nimport outdent from 'outdent'\nimport type { Plugin, ResolvedConfig, ViteDevServer } from 'vite'\nimport { normalizePath } from 'vite'\n\nconst styleUpdateEvent = (fileId: string) => `tamagui-style-update:${fileId}`\n\nexport function tamaguiExtractPlugin(options: TamaguiOptions): Plugin {\n let config: ResolvedConfig\n let server: ViteDevServer\n const cssMap = new Map<string, string>()\n let virtualExt: string\n let packageName: string\n\n const getAbsoluteVirtualFileId = (source: string) => normalizePath(path.join(config.root, source))\n\n return {\n name: 'tamagui-extract',\n enforce: 'pre',\n\n configureServer(_server) {\n server = _server\n },\n\n config(_userConfig, env) {\n // const include = env.command === 'serve' ? ['@tamagui/css/injectStyles'] : []\n // return {\n // optimizeDeps: { include },\n // ssr: {\n // external: ['@tamagui/css', '@tamagui/css/fileScope', '@tamagui/css/adapter'],\n // },\n // }\n },\n\n async configResolved(resolvedConfig) {\n // config = resolvedConfig\n // packageName = getPackageInfo(config.root).name\n // if (config.command === 'serve') {\n // postCssConfig = await resolvePostcssConfig(config)\n // }\n // virtualExt = `.vanilla.${config.command === 'serve' ? 'js' : 'css'}`\n },\n\n resolveId(source) {\n // if (!source.endsWith(virtualExt)) {\n // return\n // }\n // // Absolute paths seem to occur often in monorepos, where files are\n // // imported from outside the config root.\n // const absoluteId = source.startsWith(config.root) ? source : getAbsoluteVirtualFileId(source)\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 .vanilla.js/.vanilla.css extension\n // if (cssMap.has(absoluteId)) {\n // return absoluteId\n // }\n },\n\n load(id) {\n // if (!cssMap.has(id)) {\n // return\n // }\n // const css = cssMap.get(id)\n // if (typeof css !== 'string') {\n // return\n // }\n // if (!server || server.config.isProduction) {\n // return css\n // }\n // return outdent`\n // import { injectStyles } from '@tamagui/css/injectStyles';\n // const inject = (css) => injectStyles({\n // fileScope: ${JSON.stringify({ filePath: id })},\n // css\n // });\n // inject(${JSON.stringify(css)});\n // import.meta.hot.on('${styleUpdateEvent(id)}', (css) => {\n // inject(css);\n // });\n // `\n },\n\n async transform(code, id, ssrParam) {\n // if (!cssFileFilter.test(id)) {\n // return null\n // }\n // let ssr: boolean | undefined\n // if (typeof ssrParam === 'boolean') {\n // ssr = ssrParam\n // } else {\n // ssr = ssrParam?.ssr\n // }\n // const index = id.indexOf('?')\n // const validId = index === -1 ? id : id.substring(0, index)\n // if (ssr) {\n // return addFileScope({\n // source: code,\n // filePath: normalizePath(validId),\n // rootPath: config.root,\n // packageName,\n // })\n // }\n // const { source, watchFiles } = await compile({\n // filePath: validId,\n // cwd: config.root,\n // esbuildOptions,\n // })\n // for (const file of watchFiles) {\n // // In start mode, we need to prevent the file from rewatching itself.\n // // If it's a `build --watch`, it needs to watch everything.\n // if (config.command === 'build' || file !== id) {\n // this.addWatchFile(file)\n // }\n // }\n // const output = await processVanillaFile({\n // source,\n // filePath: validId,\n // identOption: identifiers ?? (config.mode === 'production' ? 'short' : 'debug'),\n // serializeVirtualCssPath: async ({ fileScope, source }) => {\n // const rootRelativeId = `${fileScope.filePath}${virtualExt}`\n // const absoluteId = getAbsoluteVirtualFileId(rootRelativeId)\n // let cssSource = source\n // if (postCssConfig) {\n // const postCssResult = await (await import('postcss'))\n // .default(postCssConfig.plugins)\n // .process(source, {\n // ...postCssConfig.options,\n // from: undefined,\n // map: false,\n // })\n // cssSource = postCssResult.css\n // }\n // if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {\n // const { moduleGraph } = server\n // const module = moduleGraph.getModuleById(absoluteId)\n // if (module) {\n // moduleGraph.invalidateModule(module)\n // }\n // server.ws.send({\n // type: 'custom',\n // event: styleUpdateEvent(absoluteId),\n // data: cssSource,\n // })\n // }\n // cssMap.set(absoluteId, cssSource)\n // // We use the root relative id here to ensure file contents (content-hashes)\n // // are consistent across build machines\n // return `import \"${rootRelativeId}\";`\n // },\n // })\n // return {\n // code: output,\n // map: { mappings: '' },\n // }\n },\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBAAiB;AAKjB,kBAA8B;AAE9B,MAAM,mBAAmB,CAAC,WAAmB,wBAAwB;AAE9D,8BAA8B,SAAiC;AACpE,MAAI;AACJ,MAAI;AACJ,QAAM,SAAS,oBAAI,IAAoB;AACvC,MAAI;AACJ,MAAI;AAEJ,QAAM,2BAA2B,CAAC,WAAmB,+BAAc,oBAAK,KAAK,OAAO,MAAM,MAAM,CAAC;AAEjG,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,gBAAgB,SAAS;AACvB,eAAS;AAAA,IACX;AAAA,IAEA,OAAO,aAAa,KAAK;AAAA,IAQzB;AAAA,IAEA,MAAM,eAAe,gBAAgB;AAAA,IAOrC;AAAA,IAEA,UAAU,QAAQ;AAAA,IAalB;AAAA,IAEA,KAAK,IAAI;AAAA,IAsBT;AAAA,IAEA,MAAM,UAAU,MAAM,IAAI,UAAU;AAAA,IAwEpC;AAAA,EACF;AACF;",
6
- "names": []
7
- }
@@ -1,32 +0,0 @@
1
- import path from "path";
2
- import { normalizePath } from "vite";
3
- const styleUpdateEvent = (fileId) => `tamagui-style-update:${fileId}`;
4
- function tamaguiExtractPlugin(options) {
5
- let config;
6
- let server;
7
- const cssMap = /* @__PURE__ */ new Map();
8
- let virtualExt;
9
- let packageName;
10
- const getAbsoluteVirtualFileId = (source) => normalizePath(path.join(config.root, source));
11
- return {
12
- name: "tamagui-extract",
13
- enforce: "pre",
14
- configureServer(_server) {
15
- server = _server;
16
- },
17
- config(_userConfig, env) {
18
- },
19
- async configResolved(resolvedConfig) {
20
- },
21
- resolveId(source) {
22
- },
23
- load(id) {
24
- },
25
- async transform(code, id, ssrParam) {
26
- }
27
- };
28
- }
29
- export {
30
- tamaguiExtractPlugin
31
- };
32
- //# sourceMappingURL=extractPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/extractPlugin.ts"],
4
- "sourcesContent": ["// fork from https://github.com/seek-oss/vanilla-extract/blob/master/packages/vite-plugin/src/index.ts\n\nimport path from 'path'\n\nimport type { TamaguiOptions } from '@tamagui/static'\nimport outdent from 'outdent'\nimport type { Plugin, ResolvedConfig, ViteDevServer } from 'vite'\nimport { normalizePath } from 'vite'\n\nconst styleUpdateEvent = (fileId: string) => `tamagui-style-update:${fileId}`\n\nexport function tamaguiExtractPlugin(options: TamaguiOptions): Plugin {\n let config: ResolvedConfig\n let server: ViteDevServer\n const cssMap = new Map<string, string>()\n let virtualExt: string\n let packageName: string\n\n const getAbsoluteVirtualFileId = (source: string) => normalizePath(path.join(config.root, source))\n\n return {\n name: 'tamagui-extract',\n enforce: 'pre',\n\n configureServer(_server) {\n server = _server\n },\n\n config(_userConfig, env) {\n // const include = env.command === 'serve' ? ['@tamagui/css/injectStyles'] : []\n // return {\n // optimizeDeps: { include },\n // ssr: {\n // external: ['@tamagui/css', '@tamagui/css/fileScope', '@tamagui/css/adapter'],\n // },\n // }\n },\n\n async configResolved(resolvedConfig) {\n // config = resolvedConfig\n // packageName = getPackageInfo(config.root).name\n // if (config.command === 'serve') {\n // postCssConfig = await resolvePostcssConfig(config)\n // }\n // virtualExt = `.vanilla.${config.command === 'serve' ? 'js' : 'css'}`\n },\n\n resolveId(source) {\n // if (!source.endsWith(virtualExt)) {\n // return\n // }\n // // Absolute paths seem to occur often in monorepos, where files are\n // // imported from outside the config root.\n // const absoluteId = source.startsWith(config.root) ? source : getAbsoluteVirtualFileId(source)\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 .vanilla.js/.vanilla.css extension\n // if (cssMap.has(absoluteId)) {\n // return absoluteId\n // }\n },\n\n load(id) {\n // if (!cssMap.has(id)) {\n // return\n // }\n // const css = cssMap.get(id)\n // if (typeof css !== 'string') {\n // return\n // }\n // if (!server || server.config.isProduction) {\n // return css\n // }\n // return outdent`\n // import { injectStyles } from '@tamagui/css/injectStyles';\n // const inject = (css) => injectStyles({\n // fileScope: ${JSON.stringify({ filePath: id })},\n // css\n // });\n // inject(${JSON.stringify(css)});\n // import.meta.hot.on('${styleUpdateEvent(id)}', (css) => {\n // inject(css);\n // });\n // `\n },\n\n async transform(code, id, ssrParam) {\n // if (!cssFileFilter.test(id)) {\n // return null\n // }\n // let ssr: boolean | undefined\n // if (typeof ssrParam === 'boolean') {\n // ssr = ssrParam\n // } else {\n // ssr = ssrParam?.ssr\n // }\n // const index = id.indexOf('?')\n // const validId = index === -1 ? id : id.substring(0, index)\n // if (ssr) {\n // return addFileScope({\n // source: code,\n // filePath: normalizePath(validId),\n // rootPath: config.root,\n // packageName,\n // })\n // }\n // const { source, watchFiles } = await compile({\n // filePath: validId,\n // cwd: config.root,\n // esbuildOptions,\n // })\n // for (const file of watchFiles) {\n // // In start mode, we need to prevent the file from rewatching itself.\n // // If it's a `build --watch`, it needs to watch everything.\n // if (config.command === 'build' || file !== id) {\n // this.addWatchFile(file)\n // }\n // }\n // const output = await processVanillaFile({\n // source,\n // filePath: validId,\n // identOption: identifiers ?? (config.mode === 'production' ? 'short' : 'debug'),\n // serializeVirtualCssPath: async ({ fileScope, source }) => {\n // const rootRelativeId = `${fileScope.filePath}${virtualExt}`\n // const absoluteId = getAbsoluteVirtualFileId(rootRelativeId)\n // let cssSource = source\n // if (postCssConfig) {\n // const postCssResult = await (await import('postcss'))\n // .default(postCssConfig.plugins)\n // .process(source, {\n // ...postCssConfig.options,\n // from: undefined,\n // map: false,\n // })\n // cssSource = postCssResult.css\n // }\n // if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {\n // const { moduleGraph } = server\n // const module = moduleGraph.getModuleById(absoluteId)\n // if (module) {\n // moduleGraph.invalidateModule(module)\n // }\n // server.ws.send({\n // type: 'custom',\n // event: styleUpdateEvent(absoluteId),\n // data: cssSource,\n // })\n // }\n // cssMap.set(absoluteId, cssSource)\n // // We use the root relative id here to ensure file contents (content-hashes)\n // // are consistent across build machines\n // return `import \"${rootRelativeId}\";`\n // },\n // })\n // return {\n // code: output,\n // map: { mappings: '' },\n // }\n },\n }\n}\n"],
5
- "mappings": "AAEA;AAKA;AAEA,MAAM,mBAAmB,CAAC,WAAmB,wBAAwB;AAE9D,8BAA8B,SAAiC;AACpE,MAAI;AACJ,MAAI;AACJ,QAAM,SAAS,oBAAI,IAAoB;AACvC,MAAI;AACJ,MAAI;AAEJ,QAAM,2BAA2B,CAAC,WAAmB,cAAc,KAAK,KAAK,OAAO,MAAM,MAAM,CAAC;AAEjG,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,gBAAgB,SAAS;AACvB,eAAS;AAAA,IACX;AAAA,IAEA,OAAO,aAAa,KAAK;AAAA,IAQzB;AAAA,IAEA,MAAM,eAAe,gBAAgB;AAAA,IAOrC;AAAA,IAEA,UAAU,QAAQ;AAAA,IAalB;AAAA,IAEA,KAAK,IAAI;AAAA,IAsBT;AAAA,IAEA,MAAM,UAAU,MAAM,IAAI,UAAU;AAAA,IAwEpC;AAAA,EACF;AACF;",
6
- "names": []
7
- }
@@ -1,159 +0,0 @@
1
- import path from "path";
2
- import {
3
- createExtractor,
4
- extractToClassNames,
5
- getPragmaOptions
6
- } from "@tamagui/static";
7
- import outdent from "outdent";
8
- import { normalizePath } from "vite";
9
- const styleUpdateEvent = (fileId) => `tamagui-style-update:${fileId}`;
10
- const GLOBAL_CSS_VIRTUAL_PATH = "__tamagui_global_css__.css";
11
- function tamaguiExtractPlugin(options) {
12
- const disableStatic = options.disable || options.disableDebugAttr && options.disableExtraction;
13
- if (disableStatic) {
14
- return {
15
- name: "tamagui-extract"
16
- };
17
- }
18
- let extractor = null;
19
- const cssMap = /* @__PURE__ */ new Map();
20
- let config;
21
- let server;
22
- let shouldReturnCSS = true;
23
- let virtualExt;
24
- const getAbsoluteVirtualFileId = (filePath) => {
25
- if (filePath.startsWith(config.root)) {
26
- return filePath;
27
- }
28
- return normalizePath(path.join(config.root, filePath));
29
- };
30
- return {
31
- name: "tamagui-extract",
32
- enforce: "pre",
33
- configureServer(_server) {
34
- server = _server;
35
- },
36
- buildEnd() {
37
- extractor.cleanupBeforeExit();
38
- },
39
- writeBundle(options2, bundle) {
40
- setTimeout(() => {
41
- console.warn("some sort of dangling process or osmethign, exit for now...");
42
- process.exit(0);
43
- }, 100);
44
- },
45
- config(_userConfig, env) {
46
- const include = env.command === "serve" ? ["@tamagui/core/inject-styles"] : [];
47
- return {
48
- optimizeDeps: { include }
49
- };
50
- },
51
- async configResolved(resolvedConfig) {
52
- config = resolvedConfig;
53
- extractor = createExtractor({
54
- logger: resolvedConfig.logger
55
- });
56
- shouldReturnCSS = true;
57
- virtualExt = `.tamagui.${shouldReturnCSS ? "css" : "js"}`;
58
- },
59
- async resolveId(source) {
60
- if (source === "tamagui.css") {
61
- await extractor.loadTamagui(options);
62
- return GLOBAL_CSS_VIRTUAL_PATH;
63
- }
64
- const [validId, query] = source.split("?");
65
- if (!validId.endsWith(virtualExt)) {
66
- return;
67
- }
68
- const absoluteId = source.startsWith(config.root) ? source : getAbsoluteVirtualFileId(validId);
69
- if (cssMap.has(absoluteId)) {
70
- return absoluteId + (query ? `?${query}` : "");
71
- }
72
- },
73
- load(id, options2) {
74
- const [validId] = id.split("?");
75
- if (validId === GLOBAL_CSS_VIRTUAL_PATH) {
76
- return extractor.getTamagui().getCSS();
77
- }
78
- if (!cssMap.has(validId)) {
79
- return;
80
- }
81
- const css = cssMap.get(validId);
82
- if (typeof css !== "string") {
83
- return;
84
- }
85
- if (shouldReturnCSS || !server || server.config.isProduction) {
86
- return css;
87
- }
88
- return outdent`
89
- import { injectStyles } from '@tamagui/core/inject-styles';
90
-
91
- const inject = (css) => injectStyles({
92
- filePath: "${validId}",
93
- css
94
- });
95
-
96
- inject(${JSON.stringify(css)});
97
-
98
- if (import.meta.hot) {
99
- import.meta.hot.on('${styleUpdateEvent(validId)}', (css) => {
100
- inject(css);
101
- });
102
- }
103
- `;
104
- },
105
- async transform(code, id, ssrParam) {
106
- const [validId] = id.split("?");
107
- if (!validId.endsWith(".tsx")) {
108
- return;
109
- }
110
- const firstCommentIndex = code.indexOf("// ");
111
- const { shouldDisable, shouldPrintDebug } = getPragmaOptions({
112
- source: firstCommentIndex >= 0 ? code.slice(firstCommentIndex) : "",
113
- path: validId
114
- });
115
- if (shouldDisable) {
116
- return;
117
- }
118
- const extracted = await extractToClassNames({
119
- extractor,
120
- source: code,
121
- sourcePath: validId,
122
- options,
123
- shouldPrintDebug
124
- });
125
- if (!extracted) {
126
- return;
127
- }
128
- const rootRelativeId = `${validId}${virtualExt}`;
129
- const absoluteId = getAbsoluteVirtualFileId(rootRelativeId);
130
- let source = extracted.js;
131
- if (extracted.styles) {
132
- if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== extracted.styles) {
133
- const { moduleGraph } = server;
134
- const [module] = Array.from(moduleGraph.getModulesByFile(absoluteId) || []);
135
- if (module) {
136
- moduleGraph.invalidateModule(module);
137
- module.lastHMRTimestamp = module.lastInvalidationTimestamp || Date.now();
138
- }
139
- server.ws.send({
140
- type: "custom",
141
- event: styleUpdateEvent(absoluteId),
142
- data: extracted.styles
143
- });
144
- }
145
- source = `${source}
146
- import "${rootRelativeId}";`;
147
- cssMap.set(absoluteId, extracted.styles);
148
- }
149
- return {
150
- code: source.toString(),
151
- map: extracted.map
152
- };
153
- }
154
- };
155
- }
156
- export {
157
- tamaguiExtractPlugin
158
- };
159
- //# sourceMappingURL=extract.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/extract.ts"],
4
- "sourcesContent": ["// fork from https://github.com/seek-oss/vanilla-extract\n\nimport path from 'path'\n\nimport {\n TamaguiOptions,\n createExtractor,\n extractToClassNames,\n getPragmaOptions,\n} from '@tamagui/static'\nimport outdent from 'outdent'\nimport type { Plugin, ResolvedConfig, ViteDevServer } from 'vite'\nimport { normalizePath } from 'vite'\n\nconst styleUpdateEvent = (fileId: string) => `tamagui-style-update:${fileId}`\nconst GLOBAL_CSS_VIRTUAL_PATH = '__tamagui_global_css__.css'\n\nexport function tamaguiExtractPlugin(options: TamaguiOptions): Plugin {\n const disableStatic =\n options.disable || (options.disableDebugAttr && options.disableExtraction)\n\n if (disableStatic) {\n return {\n name: 'tamagui-extract',\n }\n }\n\n let extractor: ReturnType<typeof createExtractor> | null = null\n const cssMap = new Map<string, string>()\n\n let config: ResolvedConfig\n let server: ViteDevServer\n let shouldReturnCSS = true //config.command === 'serve'\n let virtualExt: string\n\n const getAbsoluteVirtualFileId = (filePath: string) => {\n if (filePath.startsWith(config.root)) {\n return filePath\n }\n return normalizePath(path.join(config.root, filePath))\n }\n\n return {\n name: 'tamagui-extract',\n enforce: 'pre',\n\n configureServer(_server) {\n server = _server\n },\n\n buildEnd() {\n extractor!.cleanupBeforeExit()\n },\n\n writeBundle(this, options, bundle) {\n setTimeout(() => {\n // eslint-disable-next-line no-console\n console.warn('some sort of dangling process or osmethign, exit for now...')\n process.exit(0)\n }, 100)\n },\n\n config(_userConfig, env) {\n const include = env.command === 'serve' ? ['@tamagui/core/inject-styles'] : []\n return {\n optimizeDeps: { include },\n }\n },\n\n async configResolved(resolvedConfig) {\n config = resolvedConfig\n extractor = createExtractor({\n logger: resolvedConfig.logger,\n })\n shouldReturnCSS = true\n // TODO postcss work with postcss.config.js\n // packageName = getPackageInfo(config.root).name;\n // if (config.command === 'serve') {\n // postCssConfig = await resolvePostcssConfig(config);\n // }\n virtualExt = `.tamagui.${shouldReturnCSS ? 'css' : 'js'}`\n },\n\n async resolveId(source) {\n if (source === 'tamagui.css') {\n await extractor!.loadTamagui(options)\n return GLOBAL_CSS_VIRTUAL_PATH\n }\n\n const [validId, query] = source.split('?')\n\n if (!validId.endsWith(virtualExt)) {\n return\n }\n\n // Absolute paths seem to occur often in monorepos, where files are\n // imported from outside the config root.\n const absoluteId = source.startsWith(config.root)\n ? source\n : getAbsoluteVirtualFileId(validId)\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\n /**\n * TODO\n *\n * mainFields module:jsx breaks, so lets just have a mapping here\n * where we load() and map it to the jsx path before transform\n *\n */\n\n load(id, options) {\n const [validId] = id.split('?')\n\n if (validId === GLOBAL_CSS_VIRTUAL_PATH) {\n return extractor!.getTamagui()!.getCSS()\n }\n\n if (!cssMap.has(validId)) {\n return\n }\n\n const css = cssMap.get(validId)\n\n if (typeof css !== 'string') {\n return\n }\n\n if (shouldReturnCSS || !server || server.config.isProduction) {\n return css\n }\n\n return outdent`\n import { injectStyles } from '@tamagui/core/inject-styles';\n\n const inject = (css) => injectStyles({\n filePath: \"${validId}\",\n css\n });\n\n inject(${JSON.stringify(css)});\n\n if (import.meta.hot) {\n import.meta.hot.on('${styleUpdateEvent(validId)}', (css) => {\n inject(css);\n });\n }\n `\n },\n\n async transform(code, id, ssrParam) {\n const [validId] = id.split('?')\n\n if (!validId.endsWith('.tsx')) {\n return\n }\n\n // let ssr: boolean | undefined\n // if (typeof ssrParam === 'boolean') {\n // ssr = ssrParam\n // } else {\n // ssr = ssrParam?.ssr\n // }\n\n const firstCommentIndex = code.indexOf('// ')\n const { shouldDisable, shouldPrintDebug } = getPragmaOptions({\n source: firstCommentIndex >= 0 ? code.slice(firstCommentIndex) : '',\n path: validId,\n })\n\n if (shouldDisable) {\n return\n }\n\n const extracted = await extractToClassNames({\n extractor: extractor!,\n source: code,\n sourcePath: validId,\n options,\n shouldPrintDebug,\n })\n\n if (!extracted) {\n return\n }\n\n const rootRelativeId = `${validId}${virtualExt}`\n const absoluteId = getAbsoluteVirtualFileId(rootRelativeId)\n\n let source = extracted.js\n\n if (extracted.styles) {\n if (\n server &&\n cssMap.has(absoluteId) &&\n cssMap.get(absoluteId) !== extracted.styles\n ) {\n const { moduleGraph } = server\n const [module] = Array.from(moduleGraph.getModulesByFile(absoluteId) || [])\n\n if (module) {\n moduleGraph.invalidateModule(module)\n\n // Vite uses this timestamp to add `?t=` query string automatically for HMR.\n module.lastHMRTimestamp =\n (module as any).lastInvalidationTimestamp || Date.now()\n }\n\n server.ws.send({\n type: 'custom',\n event: styleUpdateEvent(absoluteId),\n data: extracted.styles,\n })\n }\n\n source = `${source}\\nimport \"${rootRelativeId}\";`\n cssMap.set(absoluteId, extracted.styles)\n }\n\n return {\n code: source.toString(),\n map: extracted.map,\n }\n\n // if (ssr && !process.env.VITE_RSC_BUILD) {\n // return addFileScope({\n // source: code,\n // filePath: normalizePath(validId),\n // rootPath: config.root,\n // packageName,\n // })\n // }\n\n // const { source, watchFiles } = await compile({\n // filePath: validId,\n // cwd: config.root,\n // esbuildOptions,\n // })\n\n // for (const file of watchFiles) {\n // // In start mode, we need to prevent the file from rewatching itself.\n // // If it's a `build --watch`, it needs to watch everything.\n // if (config.command === 'build' || file !== validId) {\n // this.addWatchFile(file)\n // }\n // }\n },\n }\n}\n"],
5
- "mappings": "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",
6
- "names": []
7
- }
@@ -1,32 +0,0 @@
1
- import path from "path";
2
- import { normalizePath } from "vite";
3
- const styleUpdateEvent = (fileId) => `tamagui-style-update:${fileId}`;
4
- function tamaguiExtractPlugin(options) {
5
- let config;
6
- let server;
7
- const cssMap = /* @__PURE__ */ new Map();
8
- let virtualExt;
9
- let packageName;
10
- const getAbsoluteVirtualFileId = (source) => normalizePath(path.join(config.root, source));
11
- return {
12
- name: "tamagui-extract",
13
- enforce: "pre",
14
- configureServer(_server) {
15
- server = _server;
16
- },
17
- config(_userConfig, env) {
18
- },
19
- async configResolved(resolvedConfig) {
20
- },
21
- resolveId(source) {
22
- },
23
- load(id) {
24
- },
25
- async transform(code, id, ssrParam) {
26
- }
27
- };
28
- }
29
- export {
30
- tamaguiExtractPlugin
31
- };
32
- //# sourceMappingURL=extractPlugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/extractPlugin.ts"],
4
- "sourcesContent": ["// fork from https://github.com/seek-oss/vanilla-extract/blob/master/packages/vite-plugin/src/index.ts\n\nimport path from 'path'\n\nimport type { TamaguiOptions } from '@tamagui/static'\nimport outdent from 'outdent'\nimport type { Plugin, ResolvedConfig, ViteDevServer } from 'vite'\nimport { normalizePath } from 'vite'\n\nconst styleUpdateEvent = (fileId: string) => `tamagui-style-update:${fileId}`\n\nexport function tamaguiExtractPlugin(options: TamaguiOptions): Plugin {\n let config: ResolvedConfig\n let server: ViteDevServer\n const cssMap = new Map<string, string>()\n let virtualExt: string\n let packageName: string\n\n const getAbsoluteVirtualFileId = (source: string) => normalizePath(path.join(config.root, source))\n\n return {\n name: 'tamagui-extract',\n enforce: 'pre',\n\n configureServer(_server) {\n server = _server\n },\n\n config(_userConfig, env) {\n // const include = env.command === 'serve' ? ['@tamagui/css/injectStyles'] : []\n // return {\n // optimizeDeps: { include },\n // ssr: {\n // external: ['@tamagui/css', '@tamagui/css/fileScope', '@tamagui/css/adapter'],\n // },\n // }\n },\n\n async configResolved(resolvedConfig) {\n // config = resolvedConfig\n // packageName = getPackageInfo(config.root).name\n // if (config.command === 'serve') {\n // postCssConfig = await resolvePostcssConfig(config)\n // }\n // virtualExt = `.vanilla.${config.command === 'serve' ? 'js' : 'css'}`\n },\n\n resolveId(source) {\n // if (!source.endsWith(virtualExt)) {\n // return\n // }\n // // Absolute paths seem to occur often in monorepos, where files are\n // // imported from outside the config root.\n // const absoluteId = source.startsWith(config.root) ? source : getAbsoluteVirtualFileId(source)\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 .vanilla.js/.vanilla.css extension\n // if (cssMap.has(absoluteId)) {\n // return absoluteId\n // }\n },\n\n load(id) {\n // if (!cssMap.has(id)) {\n // return\n // }\n // const css = cssMap.get(id)\n // if (typeof css !== 'string') {\n // return\n // }\n // if (!server || server.config.isProduction) {\n // return css\n // }\n // return outdent`\n // import { injectStyles } from '@tamagui/css/injectStyles';\n // const inject = (css) => injectStyles({\n // fileScope: ${JSON.stringify({ filePath: id })},\n // css\n // });\n // inject(${JSON.stringify(css)});\n // import.meta.hot.on('${styleUpdateEvent(id)}', (css) => {\n // inject(css);\n // });\n // `\n },\n\n async transform(code, id, ssrParam) {\n // if (!cssFileFilter.test(id)) {\n // return null\n // }\n // let ssr: boolean | undefined\n // if (typeof ssrParam === 'boolean') {\n // ssr = ssrParam\n // } else {\n // ssr = ssrParam?.ssr\n // }\n // const index = id.indexOf('?')\n // const validId = index === -1 ? id : id.substring(0, index)\n // if (ssr) {\n // return addFileScope({\n // source: code,\n // filePath: normalizePath(validId),\n // rootPath: config.root,\n // packageName,\n // })\n // }\n // const { source, watchFiles } = await compile({\n // filePath: validId,\n // cwd: config.root,\n // esbuildOptions,\n // })\n // for (const file of watchFiles) {\n // // In start mode, we need to prevent the file from rewatching itself.\n // // If it's a `build --watch`, it needs to watch everything.\n // if (config.command === 'build' || file !== id) {\n // this.addWatchFile(file)\n // }\n // }\n // const output = await processVanillaFile({\n // source,\n // filePath: validId,\n // identOption: identifiers ?? (config.mode === 'production' ? 'short' : 'debug'),\n // serializeVirtualCssPath: async ({ fileScope, source }) => {\n // const rootRelativeId = `${fileScope.filePath}${virtualExt}`\n // const absoluteId = getAbsoluteVirtualFileId(rootRelativeId)\n // let cssSource = source\n // if (postCssConfig) {\n // const postCssResult = await (await import('postcss'))\n // .default(postCssConfig.plugins)\n // .process(source, {\n // ...postCssConfig.options,\n // from: undefined,\n // map: false,\n // })\n // cssSource = postCssResult.css\n // }\n // if (server && cssMap.has(absoluteId) && cssMap.get(absoluteId) !== source) {\n // const { moduleGraph } = server\n // const module = moduleGraph.getModuleById(absoluteId)\n // if (module) {\n // moduleGraph.invalidateModule(module)\n // }\n // server.ws.send({\n // type: 'custom',\n // event: styleUpdateEvent(absoluteId),\n // data: cssSource,\n // })\n // }\n // cssMap.set(absoluteId, cssSource)\n // // We use the root relative id here to ensure file contents (content-hashes)\n // // are consistent across build machines\n // return `import \"${rootRelativeId}\";`\n // },\n // })\n // return {\n // code: output,\n // map: { mappings: '' },\n // }\n },\n }\n}\n"],
5
- "mappings": "AAEA;AAKA;AAEA,MAAM,mBAAmB,CAAC,WAAmB,wBAAwB;AAE9D,8BAA8B,SAAiC;AACpE,MAAI;AACJ,MAAI;AACJ,QAAM,SAAS,oBAAI,IAAoB;AACvC,MAAI;AACJ,MAAI;AAEJ,QAAM,2BAA2B,CAAC,WAAmB,cAAc,KAAK,KAAK,OAAO,MAAM,MAAM,CAAC;AAEjG,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,gBAAgB,SAAS;AACvB,eAAS;AAAA,IACX;AAAA,IAEA,OAAO,aAAa,KAAK;AAAA,IAQzB;AAAA,IAEA,MAAM,eAAe,gBAAgB;AAAA,IAOrC;AAAA,IAEA,UAAU,QAAQ;AAAA,IAalB;AAAA,IAEA,KAAK,IAAI;AAAA,IAsBT;AAAA,IAEA,MAAM,UAAU,MAAM,IAAI,UAAU;AAAA,IAwEpC;AAAA,EACF;AACF;",
6
- "names": []
7
- }
package/dist/jsx/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from "./plugin";
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './plugin'\n"],
5
- "mappings": "AAAA;",
6
- "names": []
7
- }
@@ -1,70 +0,0 @@
1
- import envPlugin from "vite-plugin-environment";
2
- import { tamaguiExtractPlugin } from "./extractPlugin";
3
- function tamaguiPlugin(options) {
4
- return {
5
- name: "tamagui",
6
- enforce: "pre",
7
- config(userConfig, env) {
8
- return {
9
- plugins: [
10
- envPlugin(["NODE_ENV", "TAMAGUI_TARGET"]),
11
- ...options.disable || options.disableDebugAttr && options.disableExtraction ? [] : [tamaguiExtractPlugin(options)]
12
- ],
13
- esbuild: {
14
- loader: "tsx"
15
- },
16
- define: {
17
- "global.__x": {},
18
- _frameTimestamp: void 0,
19
- _WORKLET: false,
20
- process: {
21
- env: {
22
- TAMAGUI_TARGET: process.env.TAMAGUI_TARGET || "web",
23
- NODE_ENV: process.env.NODE_ENV || env.mode
24
- }
25
- }
26
- },
27
- optimizeDeps: {
28
- esbuildOptions: {
29
- resolveExtensions: [
30
- ".web.js",
31
- ".web.ts",
32
- ".web.tsx",
33
- ".js",
34
- ".jsx",
35
- ".json",
36
- ".ts",
37
- ".tsx",
38
- ".mjs"
39
- ],
40
- loader: {
41
- ".js": "jsx"
42
- }
43
- }
44
- },
45
- resolve: {
46
- extensions: [
47
- ".web.js",
48
- ".web.ts",
49
- ".web.tsx",
50
- ".js",
51
- ".jsx",
52
- ".json",
53
- ".ts",
54
- ".tsx",
55
- ".mjs"
56
- ],
57
- alias: {
58
- "react-native/Libraries/Renderer/shims/ReactFabric": "@tamagui/proxy-worm",
59
- "react-native/Libraries/Utilities/codegenNativeComponent": "@tamagui/proxy-worm",
60
- "react-native": "react-native-web"
61
- }
62
- }
63
- };
64
- }
65
- };
66
- }
67
- export {
68
- tamaguiPlugin
69
- };
70
- //# sourceMappingURL=plugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/plugin.ts"],
4
- "sourcesContent": ["import type { TamaguiOptions } from '@tamagui/static'\nimport type { Plugin } from 'vite'\nimport envPlugin from 'vite-plugin-environment'\n\nimport { tamaguiExtractPlugin } from './extractPlugin'\n\nexport function tamaguiPlugin(options: TamaguiOptions): Plugin {\n return {\n name: 'tamagui',\n enforce: 'pre',\n\n config(userConfig, env) {\n return {\n plugins: [\n envPlugin(['NODE_ENV', 'TAMAGUI_TARGET']),\n ...(options.disable || (options.disableDebugAttr && options.disableExtraction)\n ? []\n : [tamaguiExtractPlugin(options)]),\n ],\n esbuild: {\n loader: 'tsx',\n },\n define: {\n // reanimated support\n 'global.__x': {},\n _frameTimestamp: undefined,\n _WORKLET: false,\n process: {\n env: {\n TAMAGUI_TARGET: process.env.TAMAGUI_TARGET || 'web',\n NODE_ENV: process.env.NODE_ENV || env.mode,\n },\n },\n },\n optimizeDeps: {\n esbuildOptions: {\n resolveExtensions: [\n '.web.js',\n '.web.ts',\n '.web.tsx',\n '.js',\n '.jsx',\n '.json',\n '.ts',\n '.tsx',\n '.mjs',\n ],\n loader: {\n '.js': 'jsx',\n },\n },\n },\n resolve: {\n // for once it extracts\n // mainFields: ['module:jsx', 'module', 'jsnext:main', 'jsnext'],\n extensions: [\n '.web.js',\n '.web.ts',\n '.web.tsx',\n '.js',\n '.jsx',\n '.json',\n '.ts',\n '.tsx',\n '.mjs',\n ],\n alias: {\n 'react-native/Libraries/Renderer/shims/ReactFabric': '@tamagui/proxy-worm',\n 'react-native/Libraries/Utilities/codegenNativeComponent': '@tamagui/proxy-worm',\n 'react-native': 'react-native-web',\n },\n },\n }\n },\n }\n}\n"],
5
- "mappings": "AAEA;AAEA;AAEO,uBAAuB,SAAiC;AAC7D,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IAET,OAAO,YAAY,KAAK;AACtB,aAAO;AAAA,QACL,SAAS;AAAA,UACP,UAAU,CAAC,YAAY,gBAAgB,CAAC;AAAA,UACxC,GAAI,QAAQ,WAAY,QAAQ,oBAAoB,QAAQ,oBACxD,CAAC,IACD,CAAC,qBAAqB,OAAO,CAAC;AAAA,QACpC;AAAA,QACA,SAAS;AAAA,UACP,QAAQ;AAAA,QACV;AAAA,QACA,QAAQ;AAAA,UAEN,cAAc,CAAC;AAAA,UACf,iBAAiB;AAAA,UACjB,UAAU;AAAA,UACV,SAAS;AAAA,YACP,KAAK;AAAA,cACH,gBAAgB,QAAQ,IAAI,kBAAkB;AAAA,cAC9C,UAAU,QAAQ,IAAI,YAAY,IAAI;AAAA,YACxC;AAAA,UACF;AAAA,QACF;AAAA,QACA,cAAc;AAAA,UACZ,gBAAgB;AAAA,YACd,mBAAmB;AAAA,cACjB;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YACF;AAAA,YACA,QAAQ;AAAA,cACN,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,QACA,SAAS;AAAA,UAGP,YAAY;AAAA,YACV;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UACA,OAAO;AAAA,YACL,qDAAqD;AAAA,YACrD,2DAA2D;AAAA,YAC3D,gBAAgB;AAAA,UAClB;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
6
- "names": []
7
- }