vite-plugin-resource-waste 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +0 -2
  2. package/package.json +7 -4
package/README.md CHANGED
@@ -72,8 +72,6 @@ npm install vite-plugin-resource-waste -D
72
72
  # yarn add vite-plugin-resource-waste -D
73
73
  ```
74
74
 
75
- **要求**:Vite 5 / 6 / 7,Node.js 18+
76
-
77
75
  ---
78
76
 
79
77
  ## 快速开始
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-resource-waste",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "基于 Vite 的前端构建资源浪费分析插件,利用 Module Graph 检测未使用 JS、不可达组件、缓存失效与重复依赖,量化传输/解析开销并输出可执行优化报告,支持 CI 构建阈值拦截",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -8,9 +8,9 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
+ "types": "./dist/index.d.ts",
11
12
  "import": "./dist/index.js",
12
- "require": "./dist/index.cjs",
13
- "types": "./dist/index.d.ts"
13
+ "require": "./dist/index.cjs"
14
14
  }
15
15
  },
16
16
  "files": [
@@ -28,11 +28,14 @@
28
28
  },
29
29
  "keywords": [
30
30
  "vite-plugin",
31
+ "vite",
32
+ "资源浪费",
31
33
  "resource-waste",
34
+ "vite-plugin-resource-waste",
35
+ "资源浪费分析",
32
36
  "bundle-waste",
33
37
  "tree-shaking",
34
38
  "dead-code",
35
- "资源浪费分析",
36
39
  "前端性能优化",
37
40
  "构建分析报告",
38
41
  "包体积优化",