From 9ec931a88981dd8b76e5aac548f6bdf353e8cf92 Mon Sep 17 00:00:00 2001 From: Zsolt Medgyesi Date: Fri, 21 Apr 2023 13:06:35 +0200 Subject: [PATCH] support commonjs default export --- 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"] },