Skip to content

Commit

Permalink
fix(babel-helpers): changed the build to expect external-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 4, 2018
1 parent 10bafdb commit ebb176b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
$ npm install @travi/hapi-react-router -S
```

:warning: this plugin expects [external babel-helpers](https://babeljs.io/docs/plugins/external-helpers/)
to be provided by the consumer

### Register with your [Hapi](https://hapijs.com) v17 server

Include this plugin in the [manifest](https://github.com/hapijs/glue) of your
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default {
babel({
babelrc: false,
exclude: ['./node_modules/**'],
presets: [['travi', {targets: {node: 8, browser: true}, react: true, modules: false}]]
presets: [['travi', {targets: {node: 8, browser: true}, react: true, modules: false}]],
plugins: ['external-helpers']
})
],
output: [
Expand Down

0 comments on commit ebb176b

Please sign in to comment.