2022-05-27 15:37:02 +00:00
|
|
|
import viteBaseConfig from "../vite.config";
|
2022-05-06 15:56:26 +00:00
|
|
|
|
2022-03-31 08:45:47 +00:00
|
|
|
const path = require("path");
|
|
|
|
const { defineConfig } = require("vite");
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
2022-05-27 15:37:02 +00:00
|
|
|
...viteBaseConfig,
|
2022-03-31 08:45:47 +00:00
|
|
|
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`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|