🎉 Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import checker from 'vite-plugin-checker';
|
||||
import { defineConfig } from "vite";
|
||||
import dts from 'vite-plugin-dts';
|
||||
import { externalizeDeps } from "vite-plugin-externalize-deps";
|
||||
import { resolve } from "path";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
externalizeDeps(),
|
||||
checker({
|
||||
typescript: true
|
||||
}),
|
||||
dts(),
|
||||
],
|
||||
build: {
|
||||
minify: false,
|
||||
lib: {
|
||||
// Could also be a dictionary or array of multiple entry points
|
||||
entry: resolve(__dirname, "src/index.ts"),
|
||||
// name: "remote-data-fp-ts",
|
||||
// the proper extensions will be added
|
||||
fileName: (_, name) => `${name}.js`,
|
||||
formats: ["es"]
|
||||
},
|
||||
emptyOutDir: true,
|
||||
|
||||
rollupOptions: {
|
||||
output: {
|
||||
preserveModules: true
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user