From a01e0666fd66c367745cdaff76fcd6ea7568c31c Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 11 May 2026 22:39:58 -0700 Subject: add stickers --- sticker.pinapelz.moe/esinstall.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sticker.pinapelz.moe/esinstall.js (limited to 'sticker.pinapelz.moe/esinstall.js') diff --git a/sticker.pinapelz.moe/esinstall.js b/sticker.pinapelz.moe/esinstall.js new file mode 100644 index 0000000..8cb5682 --- /dev/null +++ b/sticker.pinapelz.moe/esinstall.js @@ -0,0 +1,23 @@ +const { install, printStats } = require("esinstall") + +install( + [{ + specifier: "htm/preact", + all: false, + default: false, + namespace: false, + named: ["html", "render", "Component"], + }], + { + dest: "./lib", + sourceMap: false, + treeshake: true, + verbose: true, + } +).then(data => { + const oldPrefix = "web_modules/" + const newPrefix = "lib/" + const spaces = " ".repeat(oldPrefix.length - newPrefix.length) + console.log("Installation complete") + console.log(printStats(data.stats).replace(oldPrefix, newPrefix + spaces)) +}) -- cgit v1.2.3