Home Reference Source

src/esdoc.js

exports.onHandleCode = function(ev) {
  ev.data.code = ev.data.code
    .replace(/module\.exports = /g, 'export default ')
    .replace(/exports = /g, 'export default ');
};