Skip to content

Document hooks in order, along with other relevant steps #3402

@jakearchibald

Description

@jakearchibald

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

https://rollupjs.org/guide/en/#hooks - It's currently difficult to figure out the order in which hooks are called, and how it relates to the rest of Rollup's processing.

This leads to confusion like #2739 - it isn't clear from the docs that renderChunk comes after hashing.

Your Proposal for Changes

Reorder the items in https://rollupjs.org/guide/en/#hooks so they roughly represent execution order.

If actions performed by the hook change the order, document that too.

Include internal actions, like "hashes added to file", so it's clear which things happen before/after that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions