Esbuild plugin for server-side rendering with Nota documents.
To use this plugin, your esbuild entryPoints should be .nota documents.
Then an HTML file and JS bundle will be generated for each document
with a pre-rendered version of the document.
Note that we use Puppeteer and NOT ReactDomServer for SSR in order to
allow things like document links to resolve before being saved to the output.
Esbuild plugin for server-side rendering with Nota documents.
To use this plugin, your esbuild entryPoints should be .nota documents. Then an HTML file and JS bundle will be generated for each document with a pre-rendered version of the document.
Note that we use Puppeteer and NOT ReactDomServer for SSR in order to allow things like document links to resolve before being saved to the output.