Skip to content

Commit 10bafdb

Browse files
committed
build(rollup): updated to the latest rollup config expectations
1 parent cf45b53 commit 10bafdb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

rollup.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22
import babel from 'rollup-plugin-babel';
33

44
export default {
5-
entry: 'src/route.js',
5+
input: 'src/route.js',
6+
external: [
7+
'react',
8+
'react-dom/server',
9+
'react-router',
10+
'boom',
11+
'http-status-codes',
12+
'redial'
13+
],
614
plugins: [
715
babel({
816
babelrc: false,
917
exclude: ['./node_modules/**'],
1018
presets: [['travi', {targets: {node: 8, browser: true}, react: true, modules: false}]]
1119
})
1220
],
13-
targets: [
14-
{dest: 'lib/plugin.cjs.js', format: 'cjs'},
15-
{dest: 'lib/plugin.es.js', format: 'es'}
21+
output: [
22+
{file: 'lib/plugin.cjs.js', format: 'cjs'},
23+
{file: 'lib/plugin.es.js', format: 'es'}
1624
]
1725
};

0 commit comments

Comments
 (0)