From 245f1cf60e0167d4d733ef90e638428d065856b2 Mon Sep 17 00:00:00 2001 From: Zsolt Medgyesi Date: Thu, 11 May 2023 04:05:37 +0200 Subject: [PATCH] support commonjs default export (#1225) --- babel.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 3a6c045df..e56adbcc9 100644 --- a/babel.config.js +++ b/babel.config.js @@ -13,7 +13,12 @@ module.exports = (api) => { ], plugins: [ - process.env.BABEL_ENV !== "module" && "add-module-exports", + process.env.BABEL_ENV !== "module" && [ + "add-module-exports", + { + addDefaultProperty: true, + }, + ], [ "transform-inline-environment-variables", { include: ["BABEL_ENV", "ENV"] },