forked from webdriverio-community/wdio-electron-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
44 lines (42 loc) · 1.04 KB
/
rollup.config.js
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
import rollupTS from '@rollup/plugin-typescript';
import { defineConfig } from 'rollup';
// Workaround for https://github.com/rollup/plugins/issues/1583
const tsPlugin = rollupTS({ tsconfig: 'tsconfig.json', module: 'nodeNext' });
export default defineConfig([
{
input: 'api.spec.ts',
output: {
dir: 'js',
format: 'esm',
},
plugins: [tsPlugin],
external: ['@wdio/globals', '@vitest/spy', 'wdio-electron-service'],
},
{
input: 'application.spec.ts',
output: {
dir: 'js',
format: 'esm',
},
plugins: [tsPlugin],
external: ['@wdio/globals', 'wdio-electron-service'],
},
{
input: 'dom.spec.ts',
output: {
dir: 'js',
format: 'esm',
},
plugins: [tsPlugin],
external: ['@testing-library/webdriverio', '@wdio/globals', 'wdio-electron-service'],
},
{
input: 'interaction.spec.ts',
output: {
dir: 'js',
format: 'esm',
},
plugins: [tsPlugin],
external: ['@testing-library/webdriverio', '@wdio/globals', 'wdio-electron-service'],
},
]);