-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrollup.config.js
More file actions
22 lines (21 loc) · 609 Bytes
/
rollup.config.js
File metadata and controls
22 lines (21 loc) · 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* eslint-disable import/no-anonymous-default-export */
/* eslint-disable import/no-default-export */
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
export default {
input: 'src/index.js',
plugins: [
resolve({
extensions: ['.mjs', '.js', '.json', '.jsx'],
}),
babel({
babelHelpers: 'runtime',
exclude: /node_modules/, // only transpile our source code
}),
],
output: {
file: 'dist/main.js',
format: 'es',
},
external: [/@babel\/runtime/, 'react', 'prop-types', 'react-modal', 'react-dom', 'js-var-type'],
};