From 6dfbd7726d68cb203ed678c90bb32d05c9dbd26e Mon Sep 17 00:00:00 2001 From: Dav Hill Date: Thu, 24 Mar 2022 13:44:55 +1100 Subject: [PATCH] Export as esModule --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 20167b5..1bfcef8 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,8 @@ const ${functionName} = (props) => }); } -module.exports.default = ${functionName}; +module.exports.__esModule = true; +module.exports.default = '${pathname}'; module.exports.ReactComponent = ${functionName}; `; }