2022-03-31 08:45:47 +00:00
|
|
|
const path = require("path");
|
|
|
|
const { defineConfig } = require("vite");
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
build: {
|
|
|
|
lib: {
|
2022-04-04 15:44:04 +00:00
|
|
|
entry: path.resolve(__dirname, "src", "index.ts"),
|
2022-03-31 08:45:47 +00:00
|
|
|
name: "snippet",
|
|
|
|
fileName: (format) => `snippet.${format}.js`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|