-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup.config.js
33 lines (32 loc) · 1.23 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
const typescript = require('@rollup/plugin-typescript');
module.exports = {
input: [
'./src/main/observable/windowFocused.ts',
'./src/main/observable/windowOnline.ts',
'./src/main/plugin/abortDeactivated.ts',
'./src/main/plugin/abortPending.ts',
'./src/main/plugin/abortWhen.ts',
'./src/main/plugin/bindAll.ts',
'./src/main/plugin/detachDeactivated.ts',
'./src/main/plugin/invalidateAfter.ts',
'./src/main/plugin/invalidateByPeers.ts',
'./src/main/plugin/invalidatePeers.ts',
'./src/main/plugin/rejectPending.ts',
'./src/main/plugin/resolveWhen.ts',
'./src/main/plugin/retryWhen.ts',
'./src/main/plugin/retryFulfilled.ts',
'./src/main/plugin/retryInvalidated.ts',
'./src/main/plugin/retryRejected.ts',
'./src/main/plugin/synchronizeStorage.ts',
'./src/main/ssr/node/index.ts',
'./src/main/ssr/index.ts',
'./src/main/core.ts',
'./src/main/index.ts',
],
output: [
{ format: 'cjs', entryFileNames: '[name].js', dir: './lib', preserveModules: true },
{ format: 'es', entryFileNames: '[name].mjs', dir: './lib', preserveModules: true },
],
plugins: [typescript({ tsconfig: './tsconfig.build.json' })],
external: ['react', 'parallel-universe', 'stream'],
};