13 lines
268 B
JavaScript
13 lines
268 B
JavaScript
|
const path = require("path");
|
||
|
const { defineConfig } = require("vite");
|
||
|
|
||
|
module.exports = defineConfig({
|
||
|
build: {
|
||
|
lib: {
|
||
|
entry: path.resolve(__dirname, "index.ts"),
|
||
|
name: "snippet",
|
||
|
fileName: (format) => `snippet.${format}.js`,
|
||
|
},
|
||
|
},
|
||
|
});
|