module.exports = require('./components/Modal');


@@ -1,29 +1,22 @@
-module.exports = require(
+import Modal from 
 './c
@@ -35,8 +35,29 @@
 dal'
-)
 ;%0A%0A
+export default Modal;%0A

Use ES module for top level export