reactDomUmdSrc
Package: @autotracer/plugin-vite-react18 · Layer: Build · Type: string · Default: "https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js"
reactDomUmdSrc is a build configuration option for reactTracer.vite() — the Vite plugin initializer of the @autotracer/plugin-vite-react18 React build-time injection package. It overrides the <script> source used to load the ReactDOM UMD bundle when buildWithWorkspaceLibs is enabled.
Use this when you need to self-host the ReactDOM UMD file instead of loading it from the default unpkg URL, for example to avoid external CDN requests or to satisfy a stricter Content Security Policy.
This option matters only when buildWithWorkspaceLibs is true.
Read together with buildWithWorkspaceLibs and reactUmdSrc.
Usage
reactTracer.vite({
buildWithWorkspaceLibs: true,
reactDomUmdSrc: "/vendor/react-dom.production.min.js",
});