Improve error message for worker format errors #17483
Labels
contribution welcome
feat: web workers
p2-nice-to-have
Not breaking anything but nice to have (priority)
Description
If using code splitting, vite does not allow using 'iife' for workers. However, googling the message directs me to the wrong place for fixing it.
The error message is:
However, googling this will mention
build.rollupOptions.output.format
, which is not the offending value. Rather, I need to setbuild.worker.format
, but the error message does not mentionworker.format
in any form.Suggested solution
The error message should say
Alternative
We can leave it as is and maybe include an entry in the documentation about
worker.format
.Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: