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.
pull/46/head
Nikita Karamov 2023-01-25 18:17:08 +01:00
parent bae7f40ef4
commit 70477e05c1
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 0 additions and 4 deletions

View File

@ -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",