I need to save the code of a es6 code module and dump it. So ideally what I would need is something like:
import React, {PropTypes} from 'react'; // this function get the source code of the // module I am running in function getMyModuleSourceCode = { ... } class DemoComponent extends React.Component { render() { const myCode = getMyModuleSourceCode(); processMySourceCode(myCode); } }