From f4fdd59897991ba03ade66496ed7d84091a371a5 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Mon, 11 Sep 2023 11:01:24 +1200 Subject: [PATCH] Fix: concurrently esm default export undefined --- index.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 68c4b03a..92013ae8 100644 --- a/index.mjs +++ b/index.mjs @@ -7,4 +7,6 @@ import concurrently from './dist/src/index.js'; // NOTE: the star reexport doesn't work in Node <12.20, <14.13 and <15. export * from './dist/src/index.js'; -export default concurrently.default; +// In some cases, like with Bun, `default` is undefined and the function itself is +// safely accessible via `concurrently`. +export default concurrently.default || concurrently;