Skip to content

Commit

Permalink
build(rollup): updated to the latest rollup config expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 4, 2018
1 parent cf45b53 commit 10bafdb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@
import babel from 'rollup-plugin-babel';

export default {
entry: 'src/route.js',
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}]]
})
],
targets: [
{dest: 'lib/plugin.cjs.js', format: 'cjs'},
{dest: 'lib/plugin.es.js', format: 'es'}
output: [
{file: 'lib/plugin.cjs.js', format: 'cjs'},
{file: 'lib/plugin.es.js', format: 'es'}
]
};

0 comments on commit 10bafdb

Please sign in to comment.