-
Notifications
You must be signed in to change notification settings - Fork 24
/
rollup.config.js
34 lines (33 loc) · 954 Bytes
/
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
import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
export default {
input: './src/index.js',
external: [
'react',
'react-dom',
'@mui/styles',
'@mui/material/Slider',
'@mui/material/Box',
'@mui/material/Button',
'@mui/material/Divider',
'@mui/material/Tooltip',
'@mui/material/TextField',
'@mui/material/FormControl',
'@mui/material/FormHelperText',
'@mui/material/InputLabel',
'@mui/material/Input',
'@mui/material/InputAdornment',
'@mui/material/Popover',
'material-ui-popup-state',
'prop-types',
'react-is',
'hoist-non-react-statics',
'Element',
],
output: [
{ file: './dist/esm/index.js', format: 'esm', sourcemap: true },
{ file: './dist/index.js', format: 'cjs', sourcemap: true },
],
plugins: [babel(), resolve({ extensions: ['.js', '.jsx'] }), terser()],
};