From 8968f83c7d355827def893a7cc6970eed6fce439 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Tue, 22 Nov 2022 20:53:27 +0100 Subject: [PATCH] Add plugin to fix default export on Babel 6+ --- .babelrc | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 6441110..8bc6431 100644 --- a/.babelrc +++ b/.babelrc @@ -8,5 +8,8 @@ } } ] + ], + "plugins": [ + "add-module-exports" ] } diff --git a/package.json b/package.json index b9c1b8b..e860524 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "devDependencies": { "@babel/cli": "7.13.10", "@babel/core": "7.13.10", - "@babel/preset-env": "7.13.10" + "@babel/preset-env": "7.13.10", + "babel-plugin-add-module-exports": "^1.0.4" } }