From 417e86847f774f5fee40bcf0a13bc52036bf94e7 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 18 Sep 2023 15:46:17 +0300 Subject: [PATCH] chore: use flatMap instead of map_flat in rollup config (#4138) --- packages/ui/rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/rollup.config.js b/packages/ui/rollup.config.js index f7752ab34b5e..80a0dcaf9ac5 100644 --- a/packages/ui/rollup.config.js +++ b/packages/ui/rollup.config.js @@ -21,7 +21,7 @@ const external = [ export default () => [ 'index', 'reporter', -].map(entry => [ +].flatMap(entry => [ { input: `./node/${entry}.ts`, output: { @@ -57,7 +57,7 @@ export default () => [ dts(), ], }, -]).flat() +]) function onwarn(message) { if (['EMPTY_BUNDLE', 'CIRCULAR_DEPENDENCY'].includes(message.code))