From ebb176b33aaebfffc78524c11f4ddbe964c1fdee Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Mon, 4 Jun 2018 17:23:19 -0500 Subject: [PATCH] fix(babel-helpers): changed the build to expect external-helpers --- README.md | 3 +++ rollup.config.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc6dfc60..902ee5c1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/rollup.config.js b/rollup.config.js index 79cd7290..7f6125f0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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: [