Search code examples
reactjsjsxesdoc

Using esdoc for jsx files


I want to generate document for .jsx files

.esdoc.json :

{
   "source": "./src/",
   "destination": "./doc" 
}

But esdoc just use .js files in ./src to generate document.

So how do i config esdoc to generate document for .jsx files?


Solution

  •   "includes": ["\\.(js|jsx)$"],
    

    I do not recall, but I may have had to modify the esdoc package to accept jsx.