From adf5d62b7cca53e187e97189b153f80eaaccd9a5 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Jan 2023 18:17:08 +0100 Subject: [PATCH] Minify with esbuild instead of terser In the end, the files are basically of the same size, but esbuild is faster. We also do not need any extra packages. --- vite.config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index e608fd4..f41bbcd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,13 +3,9 @@ import * as path from "node:path"; import package_ from "./package.json"; export default defineConfig({ - esbuild: { - minify: true, - }, build: { sourcemap: true, target: "esnext", - minify: "terser", lib: { entry: path.resolve("./src/index.js"), name: "Shareon",