fix sourcemaps for custom module definition