Skip to content

Commit

Permalink
support commonjs default export (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmedgyes committed May 11, 2023
1 parent 18503c7 commit 245f1cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"] },
Expand Down

0 comments on commit 245f1cf

Please sign in to comment.