-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.mjs
46 lines (45 loc) · 975 Bytes
/
rollup.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { babel } from "@rollup/plugin-babel";
import dts from "rollup-plugin-dts";
import vue from "rollup-plugin-vue";
import postcss from "rollup-plugin-postcss";
export default [
{
input: "src/components/Vue3ExtendedMultiselect.vue",
output: [
{
file: "dist/Vue3ExtendedMultiselect.cjs.js",
format: "cjs",
exports: "named",
sourcemap: true,
},
{
file: "dist/Vue3ExtendedMultiselect.esm.js",
format: "esm",
sourcemap: true,
},
],
plugins: [
babel({
babelHelpers: 'runtime',
exclude: ["./node_modules/**", "./qa/**"],
}),
vue({
preprocessStyles: true,
}),
postcss({
minimize: true,
}),
]
},
{
input: "typings/vue3-extended-multiselect.d.ts",
output: [
{
file: "dist/types/index.d.ts",
format: "esm",
sourcemap: false,
}
],
plugins: [dts()],
}
];