#36228·storybook

Builder Vite: `storybook/internal/preview/runtime` served with 1Mb inline source map when used with Vite 8

Author: AriPerkkioCreated Sep 8, 2026Updated Sep 14, 2026
Labelsperformance issuebuilder-vitebuildsev:S3

The preview/runtime that's served in storybook dev is huge when used with Vite 8.

$ npm create vite
# React, TS, Install Deps + Start

# CTRL + c
$ cd vite-project
$ npm install vite@8

$ npm create storybook@latest
# Minimal, no AI features

$ npm run storybook

# Open browser and check dev tools for sb-vite/deps/storybook_internal_preview_runtime.js
# 1.3Mb, inline sourcemap with 3,396,407 characters
# CTRL + c
$ cd vite-project
$ npm install vite@7 @vitejs/plugin-react@5

$ npm run storybook

# Open browser and check dev tools for sb-vite/deps/storybook_internal_preview_runtime.js
# 383kb, no inline sourcemaps