-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rollup.config.ts
42 lines (37 loc) · 933 Bytes
/
rollup.config.ts
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
import typescript from "rollup-plugin-typescript2";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import json from 'rollup-plugin-json';
import cleanup from 'rollup-plugin-cleanup';
import pkg from "./package.json";
export default {
input: "./src/index.ts",
plugins: [
resolve(),
commonjs({
namedExports: {
// left-hand side can be an absolute path, a path
// relative to the current directory, or the name
// of a module in node_modules
'node_modules/@vue/test-utils/dist/vue-test-utils.js': [ 'shallowMount' ]
}
}),
typescript({
clean: true,
useTsconfigDeclarationDir: true
}),
json(),
cleanup()
],
output: {
file: pkg.main,
format: "cjs",
exports: "named"
},
external: [
"@vue/test-utils",
"expect/build/jasmineUtils",
"jest-diff",
"jest-util"
]
}