You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vite-plugin-html-prerender

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-html-prerender - npm Package Compare versions

Comparing version

to
0.1.0

10

dist/renderer.js

@@ -17,13 +17,5 @@ "use strict";

const options = {
headless: true,
headless: "new",
args: ["--no-sandbox", "--disable-setuid-sandbox"]
};
// Handle use case for Apple Silicon until Puppeteer supports it.
// Also make sure to have PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM=true environment variable set.
// https://dev.to/tnzk/install-puppeteer-on-macbook-pro-with-apple-silicon-m1-3kc
if (process.arch === "arm64") {
const dir = process.env.PUPPETEER_EXECUTABLE_PATH;
console.log("[vite-plugin-html-prerender] Using Chromium instance from:", dir);
options.executablePath = dir;
}
this._browser = await puppeteer_1.default.launch(options);

@@ -30,0 +22,0 @@ }

13

package.json
{
"name": "vite-plugin-html-prerender",
"version": "0.0.3",
"version": "0.1.0",
"description": "Vite.js plugin for pre-rendering html for SPAs.",

@@ -31,3 +31,3 @@ "main": "dist/index.js",

"html-minifier": "^4.0.0",
"puppeteer": "^19.6.3"
"puppeteer": "^20.8.0"
},

@@ -37,6 +37,9 @@ "devDependencies": {

"@types/html-minifier": "^4.0.2",
"@types/node": "^18.11.18",
"typescript": "^4.9.4",
"vite": "^4.0.3"
"@types/node": "^20.4.1",
"typescript": "^5.1.6",
"vite": "^4.4.2"
},
"overrides": {
"word-wrap": "npm:@aashutoshrathi/word-wrap@1.2.5"
}
}