Skip to content

Commit ebb176b

Browse files
committed
fix(babel-helpers): changed the build to expect external-helpers
1 parent 10bafdb commit ebb176b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
$ npm install @travi/hapi-react-router -S
1717
```
1818

19+
:warning: this plugin expects [external babel-helpers](https://babeljs.io/docs/plugins/external-helpers/)
20+
to be provided by the consumer
21+
1922
### Register with your [Hapi](https://hapijs.com) v17 server
2023

2124
Include this plugin in the [manifest](https://github.com/hapijs/glue) of your

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default {
1515
babel({
1616
babelrc: false,
1717
exclude: ['./node_modules/**'],
18-
presets: [['travi', {targets: {node: 8, browser: true}, react: true, modules: false}]]
18+
presets: [['travi', {targets: {node: 8, browser: true}, react: true, modules: false}]],
19+
plugins: ['external-helpers']
1920
})
2021
],
2122
output: [

0 commit comments

Comments
 (0)