-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
29 lines (28 loc) · 864 Bytes
/
rollup.config.js
File metadata and controls
29 lines (28 loc) · 864 Bytes
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
import typescript from 'rollup-plugin-typescript';
import peerDepsExternal from "rollup-plugin-peer-deps-external";
export default [
{
input: 'src/index.ts',
plugins: [
peerDepsExternal(),
typescript() // so Rollup can convert TypeScript to JavaScript
],
output: [
{ file: 'dist/index.web.cjs.js', format: 'cjs' },
{ file: 'dist/index.web.esm.js', format: 'esm' },
{ file: 'dist/index.web.umd.js', name: 'BaseUI', format: "umd" }
]
},
{
input: 'src/index.native.ts',
plugins: [
peerDepsExternal(),
typescript() // so Rollup can convert TypeScript to JavaScript
],
output: [
{ file: 'dist/index.native.cjs.js', format: 'cjs' },
{ file: 'dist/index.native.esm.js', format: 'esm' },
{ file: 'dist/index.native.umd.js', name: 'BaseUI', format: "umd" }
]
},
]