vite-image-react 0.2.0
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/LICENSE +21 -0
- package/README.md +160 -0
- package/dist/chunk-XVTCVM73.js +57 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +347 -0
- package/dist/types-GIeewM4u.d.ts +59 -0
- package/dist/vite-plugin.d.ts +6 -0
- package/dist/vite-plugin.js +687 -0
- package/package.json +62 -0
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vite-image-react",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Content-aware, device-adaptive image optimizer for React + Vite projects",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./vite-plugin": {
|
|
12
|
+
"types": "./dist/vite-plugin.d.ts",
|
|
13
|
+
"default": "./dist/vite-plugin.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"!dist/**/*.test.*",
|
|
20
|
+
"!playground"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup --clean",
|
|
24
|
+
"preview": "vite preview playground",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"lint": "biome check src/",
|
|
27
|
+
"lint:fix": "biome check --write src/",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
|
+
"prepare": "echo 'ready'"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/ezitounioussama/vite-image-react.git"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=22"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"sharp": "^0.34.5",
|
|
42
|
+
"svgo": "^3.3.3"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^19.0.0",
|
|
46
|
+
"vite": "^7.0.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@biomejs/biome": "^2.4.15",
|
|
50
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
51
|
+
"@testing-library/react": "^16.3.2",
|
|
52
|
+
"@types/react": "^19.2.14",
|
|
53
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
54
|
+
"happy-dom": "^20.9.0",
|
|
55
|
+
"react": "^19.2.6",
|
|
56
|
+
"react-dom": "^19.2.6",
|
|
57
|
+
"tsup": "^8.5.1",
|
|
58
|
+
"typescript": "^6.0.3",
|
|
59
|
+
"vite": "^8.0.13",
|
|
60
|
+
"vitest": "^4.1.6"
|
|
61
|
+
}
|
|
62
|
+
}
|