Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

vite-bundle-explorer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-bundle-explorer - npm Package Compare versions

Comparing version
0.3.3
to
0.3.4
+3
-3
dist-plugin/stats-plugin.js

@@ -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`);

{
"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"
}
}
}