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.
parent
1bc70b4e4d
commit
adf5d62b7c
|
@ -3,13 +3,9 @@ import * as path from "node:path";
|
||||||
import package_ from "./package.json";
|
import package_ from "./package.json";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
esbuild: {
|
|
||||||
minify: true,
|
|
||||||
},
|
|
||||||
build: {
|
build: {
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
minify: "terser",
|
|
||||||
lib: {
|
lib: {
|
||||||
entry: path.resolve("./src/index.js"),
|
entry: path.resolve("./src/index.js"),
|
||||||
name: "Shareon",
|
name: "Shareon",
|
||||||
|
|
Loading…
Reference in New Issue