From 13391afc06a4e4a5ba1c29fa4b3a6bb4fd048ed6 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 8 Oct 2019 23:51:03 +0200 Subject: [PATCH] fix(rollup): use named export --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 856b5864..39ed7d54 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -44,6 +44,7 @@ export default [{ file: pkg.browser, format: 'umd', sourcemap: isProd, + exports: 'named', globals: { react: 'React' } @@ -55,7 +56,7 @@ export default [{ onwarn, output: { file: pkg.module, - format: 'esm', + format: 'esm' }, plugins: [ bundleSize(),