@typestyles/vite 0.0.0-unstable.de79e3a17eb1 → 0.0.0-unstable.df708abe489f
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 +4 -4
- package/dist/index.cjs +75 -9
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +72 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ export default defineConfig({
|
|
|
38
38
|
});
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Edit any file that calls `
|
|
41
|
+
Edit any file that calls `recipe`, `style`, `tokens.create`, etc. Styles update in place without a full page reload.
|
|
42
42
|
|
|
43
43
|
### Runtime in dev, zero-runtime in production (recommended)
|
|
44
44
|
|
|
@@ -63,7 +63,7 @@ export default defineConfig({
|
|
|
63
63
|
});
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
**3. Link the CSS** in your HTML shell:
|
|
66
|
+
**3. Link the CSS** in your HTML shell (optional — the plugin auto-injects this during dev and build when extraction is enabled):
|
|
67
67
|
|
|
68
68
|
```html
|
|
69
69
|
<link rel="stylesheet" href="/typestyles.css" />
|
|
@@ -96,7 +96,7 @@ import { DEFAULT_EXTRACT_MODULE_CANDIDATES, discoverDefaultExtractModules } from
|
|
|
96
96
|
|
|
97
97
|
```ts
|
|
98
98
|
typestyles({
|
|
99
|
-
/** Default: true — fail the build on duplicate
|
|
99
|
+
/** Default: true — fail the build on duplicate recipe / style namespaces */
|
|
100
100
|
warnDuplicates?: boolean;
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -142,7 +142,7 @@ Even with a convention entry present, this keeps `<style>` injection in producti
|
|
|
142
142
|
|
|
143
143
|
**Extraction:** On `vite build`, matching entry modules are bundled and executed in Node via `@typestyles/build-runner`. The collected CSS is emitted as a static asset. In dev, the same extraction runs on demand when the browser requests `/typestyles.css` so your `<link>` href works without SPA fallback returning HTML.
|
|
144
144
|
|
|
145
|
-
**Duplicate detection:** The plugin scans every source file for namespace strings (`
|
|
145
|
+
**Duplicate detection:** The plugin scans every source file for namespace strings (`recipe('button', …)` → `.button-`). Collisions across files fail the build with a clear error.
|
|
146
146
|
|
|
147
147
|
## Verify production output
|
|
148
148
|
|
package/dist/index.cjs
CHANGED
|
@@ -23,15 +23,41 @@ __export(index_exports, {
|
|
|
23
23
|
DEFAULT_EXTRACT_MODULE_CANDIDATES: () => import_build_runner2.DEFAULT_EXTRACT_MODULE_CANDIDATES,
|
|
24
24
|
default: () => typestylesPlugin,
|
|
25
25
|
discoverDefaultExtractModules: () => import_build_runner2.discoverDefaultExtractModules,
|
|
26
|
-
extractNamespaces: () => import_build_runner.extractNamespaces
|
|
26
|
+
extractNamespaces: () => import_build_runner.extractNamespaces,
|
|
27
|
+
htmlLinksTypestylesCss: () => htmlLinksTypestylesCss,
|
|
28
|
+
moduleNeedsOverrideHmr: () => import_build_runner3.moduleNeedsOverrideHmr,
|
|
29
|
+
resolveTypestylesCssHref: () => resolveTypestylesCssHref
|
|
27
30
|
});
|
|
28
31
|
module.exports = __toCommonJS(index_exports);
|
|
29
32
|
var import_node_path = require("path");
|
|
30
33
|
var import_build_runner = require("@typestyles/build-runner");
|
|
31
34
|
var import_build_runner2 = require("@typestyles/build-runner");
|
|
35
|
+
var import_build_runner3 = require("@typestyles/build-runner");
|
|
32
36
|
function resolveExtractModulesForVite(root, extract) {
|
|
33
37
|
return (0, import_build_runner.resolveExtractModules)(root, extract);
|
|
34
38
|
}
|
|
39
|
+
function resolveTypestylesCssHref(base, fileName) {
|
|
40
|
+
const normalizedFileName = fileName.replace(/^\//, "");
|
|
41
|
+
const normalizedBase = base.replace(/\/$/, "") || "";
|
|
42
|
+
if (normalizedBase === "" || normalizedBase === "/") {
|
|
43
|
+
return `/${normalizedFileName}`;
|
|
44
|
+
}
|
|
45
|
+
return `${normalizedBase}/${normalizedFileName}`;
|
|
46
|
+
}
|
|
47
|
+
function htmlLinksTypestylesCss(html, cssHref, fileName) {
|
|
48
|
+
const bareName = fileName.replace(/^\//, "");
|
|
49
|
+
const linkPattern = /<link\b[^>]*\brel=["']stylesheet["'][^>]*>/gi;
|
|
50
|
+
const hrefPattern = /\bhref=["']([^"']+)["']/i;
|
|
51
|
+
for (const match of html.matchAll(linkPattern)) {
|
|
52
|
+
const hrefMatch = match[0].match(hrefPattern);
|
|
53
|
+
const href = hrefMatch?.[1];
|
|
54
|
+
if (!href) continue;
|
|
55
|
+
if (href === cssHref || href.endsWith(`/${bareName}`) || href === bareName || href === `./${bareName}`) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
35
61
|
function typestylesPlugin(options = {}) {
|
|
36
62
|
const { warnDuplicates = true, extract } = options;
|
|
37
63
|
let resolvedExtractModules = [];
|
|
@@ -125,30 +151,67 @@ function typestylesPlugin(options = {}) {
|
|
|
125
151
|
if (!/\.[jt]sx?$/.test(id)) return null;
|
|
126
152
|
if (id.includes("node_modules")) return null;
|
|
127
153
|
const { keys, prefixes } = (0, import_build_runner.extractNamespaces)(code);
|
|
128
|
-
|
|
129
|
-
if (
|
|
154
|
+
const overrideHmr = (0, import_build_runner.moduleNeedsOverrideHmr)(code);
|
|
155
|
+
if (keys.length === 0 && prefixes.length === 0 && !overrideHmr) return null;
|
|
156
|
+
if (warnDuplicates && prefixes.length > 0) {
|
|
130
157
|
(0, import_build_runner.reportDuplicateNamespaces)(moduleNamespaces, id, prefixes, this);
|
|
131
158
|
}
|
|
132
|
-
|
|
159
|
+
if (keys.length > 0 || prefixes.length > 0) {
|
|
160
|
+
moduleNamespaces.set(id, { keys, prefixes });
|
|
161
|
+
}
|
|
133
162
|
if (!isServe) {
|
|
134
163
|
return null;
|
|
135
164
|
}
|
|
136
165
|
const keysJSON = JSON.stringify(keys);
|
|
137
166
|
const prefixesJSON = JSON.stringify(prefixes);
|
|
138
|
-
const
|
|
167
|
+
const hmrImports = overrideHmr ? `import { invalidateKeys as __typestylesInvalidateKeys, createOverrideHmrSlot as __tsCreateOvHmr } from 'typestyles/hmr';
|
|
168
|
+
` : `import { invalidateKeys as __typestylesInvalidateKeys } from 'typestyles/hmr';
|
|
139
169
|
`;
|
|
140
|
-
const
|
|
170
|
+
const overrideBootstrap = overrideHmr ? `const __tsOvHmr = __tsCreateOvHmr();
|
|
171
|
+
__tsOvHmr.activate();
|
|
172
|
+
` : "";
|
|
173
|
+
const overrideTeardown = overrideHmr ? `
|
|
174
|
+
__tsOvHmr.deactivate();
|
|
175
|
+
` : "";
|
|
176
|
+
const disposeBody = [
|
|
177
|
+
keys.length > 0 || prefixes.length > 0 ? `__typestylesInvalidateKeys(${keysJSON}, ${prefixesJSON});` : null,
|
|
178
|
+
overrideHmr ? `__tsOvHmr.dispose();` : null
|
|
179
|
+
].filter(Boolean).join("\n ");
|
|
180
|
+
const hmrCode = `${overrideTeardown}
|
|
141
181
|
if (import.meta.hot) {
|
|
142
182
|
import.meta.hot.accept();
|
|
143
183
|
import.meta.hot.dispose(() => {
|
|
144
|
-
|
|
184
|
+
${disposeBody}
|
|
145
185
|
});
|
|
146
186
|
}`;
|
|
147
187
|
return {
|
|
148
|
-
code:
|
|
188
|
+
code: hmrImports + overrideBootstrap + code + hmrCode,
|
|
149
189
|
map: null
|
|
150
190
|
};
|
|
151
191
|
},
|
|
192
|
+
transformIndexHtml: {
|
|
193
|
+
order: "pre",
|
|
194
|
+
handler(html) {
|
|
195
|
+
if (resolvedExtractModules.length === 0) return;
|
|
196
|
+
if (resolvedMode === "runtime") return;
|
|
197
|
+
if (!resolvedConfig) return;
|
|
198
|
+
const fileName = extract?.fileName ?? "typestyles.css";
|
|
199
|
+
const href = resolveTypestylesCssHref(resolvedConfig.base, fileName);
|
|
200
|
+
if (htmlLinksTypestylesCss(html, href, fileName)) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
return [
|
|
204
|
+
{
|
|
205
|
+
tag: "link",
|
|
206
|
+
attrs: {
|
|
207
|
+
rel: "stylesheet",
|
|
208
|
+
href
|
|
209
|
+
},
|
|
210
|
+
injectTo: "head"
|
|
211
|
+
}
|
|
212
|
+
];
|
|
213
|
+
}
|
|
214
|
+
},
|
|
152
215
|
async generateBundle() {
|
|
153
216
|
if (!isBuildCommand) return;
|
|
154
217
|
if (resolvedMode === "runtime") return;
|
|
@@ -178,5 +241,8 @@ if (import.meta.hot) {
|
|
|
178
241
|
0 && (module.exports = {
|
|
179
242
|
DEFAULT_EXTRACT_MODULE_CANDIDATES,
|
|
180
243
|
discoverDefaultExtractModules,
|
|
181
|
-
extractNamespaces
|
|
244
|
+
extractNamespaces,
|
|
245
|
+
htmlLinksTypestylesCss,
|
|
246
|
+
moduleNeedsOverrideHmr,
|
|
247
|
+
resolveTypestylesCssHref
|
|
182
248
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { TypestylesIntegrationMode, TypestylesExtractOptions } from '@typestyles/build-runner';
|
|
3
|
-
export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDefaultExtractModules, extractNamespaces } from '@typestyles/build-runner';
|
|
3
|
+
export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDefaultExtractModules, extractNamespaces, moduleNeedsOverrideHmr } from '@typestyles/build-runner';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Regex patterns to extract namespace strings from typestyles API calls.
|
|
7
7
|
*
|
|
8
8
|
* Matches:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* recipe('button', ...) → prefix ".button-"
|
|
10
|
+
* style('card', ...) → prefix ".card-"
|
|
11
11
|
* tokens.create('color', ...) → key "tokens:color"
|
|
12
|
-
* tokens.createTheme('dark',
|
|
12
|
+
* tokens.createTheme({ name: 'dark', … }) → key "theme:dark"
|
|
13
|
+
* createTheme('dark', …) → key "theme:dark" (low-level positional)
|
|
13
14
|
* keyframes.create('fadeIn', ...) → key "keyframes:fadeIn"
|
|
14
|
-
* global.
|
|
15
|
+
* global.rule('body', ...) → prefix "body"
|
|
15
16
|
* global.fontFace('Inter', ...) → prefix "font-face:Inter"
|
|
16
17
|
*/
|
|
17
18
|
interface TypestylesPluginOptions {
|
|
@@ -42,6 +43,10 @@ interface TypestylesPluginOptions {
|
|
|
42
43
|
*/
|
|
43
44
|
extract?: TypestylesExtractOptions;
|
|
44
45
|
}
|
|
46
|
+
/** Public URL path for the extracted CSS asset (respects Vite `base`). */
|
|
47
|
+
declare function resolveTypestylesCssHref(base: string, fileName: string): string;
|
|
48
|
+
/** True when `html` already links the extracted stylesheet (avoids duplicate injection). */
|
|
49
|
+
declare function htmlLinksTypestylesCss(html: string, cssHref: string, fileName: string): boolean;
|
|
45
50
|
|
|
46
51
|
/**
|
|
47
52
|
* Vite plugin for typestyles HMR support.
|
|
@@ -53,4 +58,4 @@ interface TypestylesPluginOptions {
|
|
|
53
58
|
*/
|
|
54
59
|
declare function typestylesPlugin(options?: TypestylesPluginOptions): Plugin;
|
|
55
60
|
|
|
56
|
-
export { type TypestylesPluginOptions, typestylesPlugin as default };
|
|
61
|
+
export { type TypestylesPluginOptions, typestylesPlugin as default, htmlLinksTypestylesCss, resolveTypestylesCssHref };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { TypestylesIntegrationMode, TypestylesExtractOptions } from '@typestyles/build-runner';
|
|
3
|
-
export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDefaultExtractModules, extractNamespaces } from '@typestyles/build-runner';
|
|
3
|
+
export { DEFAULT_EXTRACT_MODULE_CANDIDATES, TypestylesExtractOptions, discoverDefaultExtractModules, extractNamespaces, moduleNeedsOverrideHmr } from '@typestyles/build-runner';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Regex patterns to extract namespace strings from typestyles API calls.
|
|
7
7
|
*
|
|
8
8
|
* Matches:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* recipe('button', ...) → prefix ".button-"
|
|
10
|
+
* style('card', ...) → prefix ".card-"
|
|
11
11
|
* tokens.create('color', ...) → key "tokens:color"
|
|
12
|
-
* tokens.createTheme('dark',
|
|
12
|
+
* tokens.createTheme({ name: 'dark', … }) → key "theme:dark"
|
|
13
|
+
* createTheme('dark', …) → key "theme:dark" (low-level positional)
|
|
13
14
|
* keyframes.create('fadeIn', ...) → key "keyframes:fadeIn"
|
|
14
|
-
* global.
|
|
15
|
+
* global.rule('body', ...) → prefix "body"
|
|
15
16
|
* global.fontFace('Inter', ...) → prefix "font-face:Inter"
|
|
16
17
|
*/
|
|
17
18
|
interface TypestylesPluginOptions {
|
|
@@ -42,6 +43,10 @@ interface TypestylesPluginOptions {
|
|
|
42
43
|
*/
|
|
43
44
|
extract?: TypestylesExtractOptions;
|
|
44
45
|
}
|
|
46
|
+
/** Public URL path for the extracted CSS asset (respects Vite `base`). */
|
|
47
|
+
declare function resolveTypestylesCssHref(base: string, fileName: string): string;
|
|
48
|
+
/** True when `html` already links the extracted stylesheet (avoids duplicate injection). */
|
|
49
|
+
declare function htmlLinksTypestylesCss(html: string, cssHref: string, fileName: string): boolean;
|
|
45
50
|
|
|
46
51
|
/**
|
|
47
52
|
* Vite plugin for typestyles HMR support.
|
|
@@ -53,4 +58,4 @@ interface TypestylesPluginOptions {
|
|
|
53
58
|
*/
|
|
54
59
|
declare function typestylesPlugin(options?: TypestylesPluginOptions): Plugin;
|
|
55
60
|
|
|
56
|
-
export { type TypestylesPluginOptions, typestylesPlugin as default };
|
|
61
|
+
export { type TypestylesPluginOptions, typestylesPlugin as default, htmlLinksTypestylesCss, resolveTypestylesCssHref };
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { resolve as resolvePath } from "path";
|
|
3
3
|
import {
|
|
4
4
|
extractNamespaces,
|
|
5
|
+
moduleNeedsOverrideHmr,
|
|
5
6
|
reportDuplicateNamespaces,
|
|
6
7
|
resolveExtractMode,
|
|
7
8
|
resolveExtractModules,
|
|
@@ -11,9 +12,32 @@ import {
|
|
|
11
12
|
DEFAULT_EXTRACT_MODULE_CANDIDATES,
|
|
12
13
|
discoverDefaultExtractModules
|
|
13
14
|
} from "@typestyles/build-runner";
|
|
15
|
+
import { moduleNeedsOverrideHmr as moduleNeedsOverrideHmr2 } from "@typestyles/build-runner";
|
|
14
16
|
function resolveExtractModulesForVite(root, extract) {
|
|
15
17
|
return resolveExtractModules(root, extract);
|
|
16
18
|
}
|
|
19
|
+
function resolveTypestylesCssHref(base, fileName) {
|
|
20
|
+
const normalizedFileName = fileName.replace(/^\//, "");
|
|
21
|
+
const normalizedBase = base.replace(/\/$/, "") || "";
|
|
22
|
+
if (normalizedBase === "" || normalizedBase === "/") {
|
|
23
|
+
return `/${normalizedFileName}`;
|
|
24
|
+
}
|
|
25
|
+
return `${normalizedBase}/${normalizedFileName}`;
|
|
26
|
+
}
|
|
27
|
+
function htmlLinksTypestylesCss(html, cssHref, fileName) {
|
|
28
|
+
const bareName = fileName.replace(/^\//, "");
|
|
29
|
+
const linkPattern = /<link\b[^>]*\brel=["']stylesheet["'][^>]*>/gi;
|
|
30
|
+
const hrefPattern = /\bhref=["']([^"']+)["']/i;
|
|
31
|
+
for (const match of html.matchAll(linkPattern)) {
|
|
32
|
+
const hrefMatch = match[0].match(hrefPattern);
|
|
33
|
+
const href = hrefMatch?.[1];
|
|
34
|
+
if (!href) continue;
|
|
35
|
+
if (href === cssHref || href.endsWith(`/${bareName}`) || href === bareName || href === `./${bareName}`) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
17
41
|
function typestylesPlugin(options = {}) {
|
|
18
42
|
const { warnDuplicates = true, extract } = options;
|
|
19
43
|
let resolvedExtractModules = [];
|
|
@@ -107,30 +131,67 @@ function typestylesPlugin(options = {}) {
|
|
|
107
131
|
if (!/\.[jt]sx?$/.test(id)) return null;
|
|
108
132
|
if (id.includes("node_modules")) return null;
|
|
109
133
|
const { keys, prefixes } = extractNamespaces(code);
|
|
110
|
-
|
|
111
|
-
if (
|
|
134
|
+
const overrideHmr = moduleNeedsOverrideHmr(code);
|
|
135
|
+
if (keys.length === 0 && prefixes.length === 0 && !overrideHmr) return null;
|
|
136
|
+
if (warnDuplicates && prefixes.length > 0) {
|
|
112
137
|
reportDuplicateNamespaces(moduleNamespaces, id, prefixes, this);
|
|
113
138
|
}
|
|
114
|
-
|
|
139
|
+
if (keys.length > 0 || prefixes.length > 0) {
|
|
140
|
+
moduleNamespaces.set(id, { keys, prefixes });
|
|
141
|
+
}
|
|
115
142
|
if (!isServe) {
|
|
116
143
|
return null;
|
|
117
144
|
}
|
|
118
145
|
const keysJSON = JSON.stringify(keys);
|
|
119
146
|
const prefixesJSON = JSON.stringify(prefixes);
|
|
120
|
-
const
|
|
147
|
+
const hmrImports = overrideHmr ? `import { invalidateKeys as __typestylesInvalidateKeys, createOverrideHmrSlot as __tsCreateOvHmr } from 'typestyles/hmr';
|
|
148
|
+
` : `import { invalidateKeys as __typestylesInvalidateKeys } from 'typestyles/hmr';
|
|
121
149
|
`;
|
|
122
|
-
const
|
|
150
|
+
const overrideBootstrap = overrideHmr ? `const __tsOvHmr = __tsCreateOvHmr();
|
|
151
|
+
__tsOvHmr.activate();
|
|
152
|
+
` : "";
|
|
153
|
+
const overrideTeardown = overrideHmr ? `
|
|
154
|
+
__tsOvHmr.deactivate();
|
|
155
|
+
` : "";
|
|
156
|
+
const disposeBody = [
|
|
157
|
+
keys.length > 0 || prefixes.length > 0 ? `__typestylesInvalidateKeys(${keysJSON}, ${prefixesJSON});` : null,
|
|
158
|
+
overrideHmr ? `__tsOvHmr.dispose();` : null
|
|
159
|
+
].filter(Boolean).join("\n ");
|
|
160
|
+
const hmrCode = `${overrideTeardown}
|
|
123
161
|
if (import.meta.hot) {
|
|
124
162
|
import.meta.hot.accept();
|
|
125
163
|
import.meta.hot.dispose(() => {
|
|
126
|
-
|
|
164
|
+
${disposeBody}
|
|
127
165
|
});
|
|
128
166
|
}`;
|
|
129
167
|
return {
|
|
130
|
-
code:
|
|
168
|
+
code: hmrImports + overrideBootstrap + code + hmrCode,
|
|
131
169
|
map: null
|
|
132
170
|
};
|
|
133
171
|
},
|
|
172
|
+
transformIndexHtml: {
|
|
173
|
+
order: "pre",
|
|
174
|
+
handler(html) {
|
|
175
|
+
if (resolvedExtractModules.length === 0) return;
|
|
176
|
+
if (resolvedMode === "runtime") return;
|
|
177
|
+
if (!resolvedConfig) return;
|
|
178
|
+
const fileName = extract?.fileName ?? "typestyles.css";
|
|
179
|
+
const href = resolveTypestylesCssHref(resolvedConfig.base, fileName);
|
|
180
|
+
if (htmlLinksTypestylesCss(html, href, fileName)) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
return [
|
|
184
|
+
{
|
|
185
|
+
tag: "link",
|
|
186
|
+
attrs: {
|
|
187
|
+
rel: "stylesheet",
|
|
188
|
+
href
|
|
189
|
+
},
|
|
190
|
+
injectTo: "head"
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
}
|
|
194
|
+
},
|
|
134
195
|
async generateBundle() {
|
|
135
196
|
if (!isBuildCommand) return;
|
|
136
197
|
if (resolvedMode === "runtime") return;
|
|
@@ -160,5 +221,8 @@ export {
|
|
|
160
221
|
DEFAULT_EXTRACT_MODULE_CANDIDATES,
|
|
161
222
|
typestylesPlugin as default,
|
|
162
223
|
discoverDefaultExtractModules,
|
|
163
|
-
extractNamespaces
|
|
224
|
+
extractNamespaces,
|
|
225
|
+
htmlLinksTypestylesCss,
|
|
226
|
+
moduleNeedsOverrideHmr2 as moduleNeedsOverrideHmr,
|
|
227
|
+
resolveTypestylesCssHref
|
|
164
228
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typestyles/vite",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.df708abe489f",
|
|
4
4
|
"description": "Vite plugin for typestyles HMR support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"eslint": "^9.39.2",
|
|
42
42
|
"tsup": "^8.0.0",
|
|
43
43
|
"typescript": "^5.4.0",
|
|
44
|
-
"typestyles": "0.0.0-unstable.
|
|
44
|
+
"typestyles": "0.0.0-unstable.df708abe489f",
|
|
45
45
|
"vite": "^6.0.0",
|
|
46
46
|
"vitest": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@typestyles/build-runner": "0.0.0-unstable.
|
|
49
|
+
"@typestyles/build-runner": "0.0.0-unstable.df708abe489f"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean --external typestyles,@typestyles/build-runner",
|