vite-plugin-resource-waste 1.0.0 → 1.0.2

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/package.json CHANGED
@@ -1,16 +1,14 @@
1
1
  {
2
2
  "name": "vite-plugin-resource-waste",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "基于 Vite 的前端构建资源浪费分析插件,利用 Module Graph 检测未使用 JS、不可达组件、缓存失效与重复依赖,量化传输/解析开销并输出可执行优化报告,支持 CI 构建阈值拦截",
5
5
  "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
6
+ "main": "./dist/index.js",
8
7
  "types": "./dist/index.d.ts",
9
8
  "exports": {
10
9
  ".": {
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.cjs",
13
- "types": "./dist/index.d.ts"
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
14
12
  }
15
13
  },
16
14
  "files": [
@@ -18,8 +16,11 @@
18
16
  ],
19
17
  "scripts": {
20
18
  "build": "tsup",
19
+ "build:debug": "tsup --sourcemap",
21
20
  "dev": "tsup --watch",
22
21
  "typecheck": "tsc --noEmit",
22
+ "example:build": "npm run build && npm run build --prefix example",
23
+ "example:dev": "npm run build && npm run dev --prefix example",
23
24
  "prepublishOnly": "npm run build",
24
25
  "release": "npm run build && npm publish",
25
26
  "release:patch": "npm version patch && npm run release",
@@ -28,11 +29,14 @@
28
29
  },
29
30
  "keywords": [
30
31
  "vite-plugin",
32
+ "vite",
33
+ "资源浪费",
31
34
  "resource-waste",
35
+ "vite-plugin-resource-waste",
36
+ "资源浪费分析",
32
37
  "bundle-waste",
33
38
  "tree-shaking",
34
39
  "dead-code",
35
- "资源浪费分析",
36
40
  "前端性能优化",
37
41
  "构建分析报告",
38
42
  "包体积优化",
@@ -47,9 +51,6 @@
47
51
  "typescript": "^5.7.2",
48
52
  "vite": "^6.0.3"
49
53
  },
50
- "dependencies": {
51
- "fast-glob": "^3.3.2",
52
- "picocolors": "^1.1.1"
53
- },
54
- "license": "MIT"
54
+ "license": "MIT",
55
+ "sideEffects": false
55
56
  }