Skip to content

Commit

Permalink
vite: clean config
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed Apr 19, 2024
1 parent b04bd1a commit 7f776b9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineConfig } from "vite";
import { resolve } from "path";
import { resolve } from "node:path";

export default defineConfig({
esbuild: {
minify: true,
minify: true
},

build: {
Expand All @@ -13,21 +13,21 @@ export default defineConfig({
toplevel: true,
module: true,
properties: {
regex: /^_/,
},
regex: /^_/
}
},
compress: {
drop_console: true,
drop_debugger: true,
},
drop_debugger: true
}
},
target: "ES2020",
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "cells",
name: "cells"
},
rollupOptions: {
plugins: [],
},
},
plugins: []
}
}
});

0 comments on commit 7f776b9

Please sign in to comment.