Skip to content

Add support for rollup watch mode

Sarah German requested to merge sarahg/rollup-watch into main

What does this MR do and why?

If you're only working with frontend JavaScript code, using "rollup watch" allows for seeing compiled changes locally in ~5 seconds instead of ~40 seconds. Thanks to @eread for surfacing the docs on rollup cache. 🙌

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Checkout this branch.
  2. Run yarn watch.
  3. Modify a .js or .vue file within the /content/frontend directory.
  4. Verify that rollup generates a new bundle for changed file.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports