-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrollup.config.js
More file actions
26 lines (25 loc) · 642 Bytes
/
rollup.config.js
File metadata and controls
26 lines (25 loc) · 642 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
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import babel from 'rollup-plugin-babel';
export default {
input: 'src/route.js',
external: [
'react',
'react-dom/server',
'react-router',
'boom',
'http-status-codes',
'redial'
],
plugins: [
babel({
babelrc: false,
exclude: ['./node_modules/**'],
presets: [['@travi', {targets: {node: 8, browser: true}, react: true, modules: false}]],
plugins: ['@babel/external-helpers']
})
],
output: [
{file: 'lib/plugin.cjs.js', format: 'cjs'},
{file: 'lib/plugin.es.js', format: 'es'}
]
};