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}; `; }