wangzhibo
7 天以前 652993fc47ebecebfb0c3f42686a6d7f2615a1c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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/**"],
        }),
    ],
});