22 lines
345 B
JavaScript
22 lines
345 B
JavaScript
![]() |
import typescript from "@rollup/plugin-typescript";
|
||
|
import { defineConfig } from "rollup";
|
||
|
|
||
|
export default defineConfig({
|
||
|
input: ["src/index.ts"],
|
||
|
|
||
|
external: ["lodash"],
|
||
|
|
||
|
output: {
|
||
|
name: "index",
|
||
|
format: "umd",
|
||
|
file: "dist/index.js",
|
||
|
},
|
||
|
|
||
|
plugins: [
|
||
|
typescript({
|
||
|
module: "esnext",
|
||
|
exclude: ["./node_modules/**"],
|
||
|
}),
|
||
|
],
|
||
|
});
|