Skip to content

Add Vite's preprocessorMaxWorkers config #26539

@daniluk4000

Description

@daniluk4000

Describe the feature

Hello there. I've been digging around and found this new preprocessorMaxWorkers setting from Vite, which is considered experimental. I have tried to enable it for our project and build time reduced by almost 30 seconds.

I've come with idea to enable this for all Nuxt users and allow to easy configure it from experimental:

  • Name in config: experimental.preprocessorMaxWorkers
  • Default: true (or maybe false until next minor?)
  • Possible values: boolean | number
  • Basically enables vite.css.preprocessorMaxWorkers

I can see that as potential performance improvement with option for easy disable.

I would happily implement that if Nuxt team is OK with described above.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions