Skip to content

Commit

Permalink
Add vite with lib mode to replace microbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
dbritto-dev committed Apr 13, 2024
1 parent 4b3f0bd commit e649491
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { resolve } from "node:path";
import { defineConfig } from "vite";
import dts from "vite-plugin-dts";

export default defineConfig({
plugins: [dts()],
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
name: "Injectors",
fileName: "index",
formats: ["es", "umd"],
},
},
});

0 comments on commit e649491

Please sign in to comment.