Skip to content

QuizNot attempted

Which hashes change

You edit only Checkout.tsx, which is its own lazy chunk loaded with import('./pages/Checkout') from the entry chunk. After the rebuild, which file names change?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • The Checkout chunk, and the entry chunk that references it by file name; unrelated chunks keep their names
  • The Checkout chunk's contents changed, so its hash changes.
  • The entry's compiled code contains the string import('./Checkout-<hash>.js'), so its contents (and hash) change too.
  • Chunks that don't reference it keep their names, so returning users re-download only those files.
  • Not "only Checkout": the importer embeds the new name.
  • Not "every chunk": hashes come from contents, not from build time.
  • Not "package version": the version isn't part of the hash.