vite-bundle-explorer
Advanced tools
@@ -149,3 +149,3 @@ import { join } from "node:path"; | ||
| if (emitHtml) { | ||
| const source = join(fileURLToPath(import.meta.url), "..", "dist-ui"); | ||
| const source = join(fileURLToPath(import.meta.url), "..", "..", "dist-ui"); | ||
| const names = await fs.readdir(source); | ||
@@ -157,5 +157,5 @@ await Promise.all(names.map((name) => { | ||
| html = html.replace("%BUNDLE_STATS%", JSON.stringify(stats).replaceAll("'", "\\'")); | ||
| fs.writeFile(join(target, "index.html"), html); | ||
| await fs.writeFile(join(target, "index.html"), html); | ||
| } | ||
| if (emitJson) fs.writeFile(join(target, "stats.json"), JSON.stringify(stats, null, 2)); | ||
| if (emitJson) await fs.writeFile(join(target, "stats.json"), JSON.stringify(stats, null, 2)); | ||
| console.log(`Bundle stats saved to ${target}`); | ||
@@ -162,0 +162,0 @@ if (emitHtml) console.log(`Run "npx vite-bundle-explorer ${target}" to view the stats`); |
+9
-9
| { | ||
| "name": "vite-bundle-explorer", | ||
| "description": "Bundle analyzer and visualizer tool for Vite", | ||
| "version": "0.3.3", | ||
| "version": "0.3.4", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vue-tsc -b && pnpm build:plugin && vite build", | ||
| "build:plugin": "tsdown", | ||
| "format": "prettier src plugin bin vite.config.ts --write", | ||
| "release": "pnpm build && pnpm changelogen --release --push && pnpm publish" | ||
| }, | ||
| "homepage": "https://github.com/Solant/vite-bundle-explorer#readme", | ||
@@ -75,3 +68,10 @@ "repository": { | ||
| "vue-tsc": "^2.2.12" | ||
| }, | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "vue-tsc -b && pnpm build:plugin && vite build", | ||
| "build:plugin": "tsdown", | ||
| "format": "prettier src plugin bin vite.config.ts --write", | ||
| "release": "pnpm build && pnpm changelogen --release --push && pnpm publish" | ||
| } | ||
| } | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
698268
02
-33.33%