79374727

Date: 2025-01-21 14:12:34
Score: 0.5
Natty:
Report link

Ok, shortly after posting I found the answer myself by just trying out a few things. To ensure that the third-party modules are converted properly, one simply has to include them in the vite config like so:

{
    optimizeDeps: {
        include: ["prop-types", "sanitize-html"]
    },
}

(I had originally tried optimizeDeps, but only by including our own module, which did not help.)

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DavidP