diff --git a/rollup.config.js b/rollup.config.js index acd6a018..118ec217 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -68,7 +68,9 @@ export default { flow(), commonjs({ include: 'node_modules/**' }), babel({ - exclude: 'node_modules/**' + exclude: 'node_modules/**', + plugins: [['@babel/plugin-transform-runtime', { useESModules: !cjs }]], + runtimeHelpers: true }), umd ? replace({