From 446fc87e64d340b645ab65a3dca5a99dcc2d6448 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 2 Jul 2023 10:12:30 -0700 Subject: [PATCH] fix: add babel-plugin-add-module-exports --- .babelrc | 1 + package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/.babelrc b/.babelrc index e0fa5707..2baf51fb 100644 --- a/.babelrc +++ b/.babelrc @@ -1,6 +1,7 @@ { "env": { "legacy": { + "plugins": [["add-module-exports", { "addDefaultProperty": true }]], "presets": [ [ "@babel/preset-env", diff --git a/package.json b/package.json index a451cc73..b8d26ba2 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@babel/core": "^7.21.8", "@babel/plugin-transform-flow-comments": "^7.22.5", "@babel/preset-env": "^7.21.5", + "babel-plugin-add-module-exports": "^1.0.4", "babel-plugin-tester": "^11.0.4", "eslint": "^8.41.0", "eslint-plugin-ft-flow": "^2.0.3", diff --git a/yarn.lock b/yarn.lock index 6e3f10f2..0eb094b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1526,6 +1526,11 @@ babel-jest@^29.5.0: graceful-fs "^4.2.9" slash "^3.0.0" +babel-plugin-add-module-exports@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-1.0.4.tgz#6caa4ddbe1f578c6a5264d4d3e6c8a2720a7ca2b" + integrity sha512-g+8yxHUZ60RcyaUpfNzy56OtWW+x9cyEe9j+CranqLiqbju2yf/Cy6ZtYK40EZxtrdHllzlVZgLmcOUCTlJ7Jg== + babel-plugin-istanbul@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73"