Skip to content

[Tracking]: make compilation readonly for all hooks #12598

@hardfist

Description

@hardfist

make compilation readonly for all hooks

It's hard to known whether plugin change the compilation state which makes cache error prone, so we move all mutation parts into seperate params which makes track mutation explicitly and easy to invalidate outdated cache

  • add_entry
  • finish_modules
  • seal
  • optimize_chunks
  • optimize_tree
  • optimize_chunk_modules
  • chunk_ids
  • runtime_modules
  • additional_chunk_runtime_requirements
  • runtime_requirement_in_chunk
  • additional_tree_runtime_requirements
  • optimize_code_generation
  • process_assets
  • after_process_assets

Metadata

Metadata

Assignees

No one assigned

    Labels

    teamThe issue/pr is created by the member of Rspack.tracking issueCategory: A tracking issue for an RFC or an unstable feature.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions