Skip to content

Enable lazy compilation in Storybook

Created by: valerybugakov

Context

I am thrilled to share that Storybook 6.5 will offer lazy compilation in development mode. Storybook will only compile the core runtime to get going quickly, and then it’ll build stories as you visit them. That means instant boot-up and lightning-quick rebuilds for larger Storybooks. Read on to see how it all works.

Link to the release blog post.

Implementation

  1. Upgrade Storybook to the latest version.
  2. Complete the migration to the Component Story Format.
  3. Enable the new story store in the Storybook configuration.