vite-plugin-vanjs 0.1.7 → 0.1.8
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 +2 -2
- package/jsx/jsx.d.ts +5 -0
- package/package.json +6 -6
- package/tsconfig.json +1 -2
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
[](https://github.com/vanjs-org/van)
|
|
9
9
|
[](https://github.com/vanjs-org/mini-van-plate)
|
|
10
|
-
[](https://www.vitest.dev/)
|
|
11
|
+
[](https://vite.dev)
|
|
12
12
|
|
|
13
13
|
A mini meta-framework for [VanJS](https://vanjs.org/) developed around the awesome [vite](https://vite.dev) and tested with [vitest](https://vitest.dev). The plugin comes with a set of modules to streamline your workflow:
|
|
14
14
|
* ***@vanjs/router*** - one of the most important part of an application which allows you to split code and lazy load page like components with ease, handles both Client Side Rendering (SSR) and Server Side Rendering (CSR) and makes it really easy to work with;
|
package/jsx/jsx.d.ts
CHANGED
|
@@ -26,6 +26,11 @@ export type { Fragment } from "./fragment";
|
|
|
26
26
|
export as namespace JSX;
|
|
27
27
|
export = JSX;
|
|
28
28
|
|
|
29
|
+
// trick TypeScript into thinking this is real React
|
|
30
|
+
declare global {
|
|
31
|
+
const React: {};
|
|
32
|
+
}
|
|
33
|
+
|
|
29
34
|
declare namespace JSX {
|
|
30
35
|
// type FunctionMaybe<T = unknown> = { (): T } | T;
|
|
31
36
|
// type Element = VanNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vanjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"author": "thednp",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A mini meta-framework for VanJS powered by Vite",
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/node": "^22.15.3",
|
|
91
|
-
"@vitest/browser": "^3.1.
|
|
92
|
-
"@vitest/coverage-istanbul": "^3.1.
|
|
93
|
-
"@vitest/ui": "^3.1.
|
|
91
|
+
"@vitest/browser": "^3.1.3",
|
|
92
|
+
"@vitest/coverage-istanbul": "^3.1.3",
|
|
93
|
+
"@vitest/ui": "^3.1.3",
|
|
94
94
|
"happy-dom": "^16.8.1",
|
|
95
95
|
"typescript": "5.6.2",
|
|
96
|
-
"vite": "^6.3.
|
|
97
|
-
"vitest": "^3.1.
|
|
96
|
+
"vite": "^6.3.5",
|
|
97
|
+
"vitest": "^3.1.3"
|
|
98
98
|
},
|
|
99
99
|
"packageManager": "pnpm@8.6.12",
|
|
100
100
|
"engines": {
|
package/tsconfig.json
CHANGED