Skip to content

Vite V8 with Rolldown - use a Hook Filters api in Vite Plugin to improve performance #175

@timofei-iatsenko

Description

@timofei-iatsenko

Despite the oidc vite plugin works with Vite 8, on each build it reporting:

[PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
  - oidc-spa (26%)
See https://rolldown.rs/options/checks#plugintimings for more details.

I think this is because rolldown has to cross the nodejs <-> rust native boundaries for every discoverd module because of the transform hook without filter.

Vite since 6.3 introduced a Hook Filters API which aimed to solve this exact issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions