Skip to content

Commit 417e868

Browse files
authored
chore: use flatMap instead of map_flat in rollup config (#4138)
1 parent b4d5ae2 commit 417e868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const external = [
2121
export default () => [
2222
'index',
2323
'reporter',
24-
].map(entry => [
24+
].flatMap(entry => [
2525
{
2626
input: `./node/${entry}.ts`,
2727
output: {
@@ -57,7 +57,7 @@ export default () => [
5757
dts(),
5858
],
5959
},
60-
]).flat()
60+
])
6161

6262
function onwarn(message) {
6363
if (['EMPTY_BUNDLE', 'CIRCULAR_DEPENDENCY'].includes(message.code))

0 commit comments

Comments
 (0)