Skip to content

feat: Remove vite-node#845

Draft
hugoattal wants to merge 3 commits into
mainfrom
native-vite
Draft

feat: Remove vite-node#845
hugoattal wants to merge 3 commits into
mainfrom
native-vite

Conversation

@hugoattal

Copy link
Copy Markdown
Collaborator

WIP

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@codesandbox

codesandbox Bot commented Jun 23, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for histoire-examples-svelte3 failed.

Name Link
🔨 Latest commit 9c10347
🔍 Latest deploy log https://app.netlify.com/projects/histoire-examples-svelte3/deploys/6a3a5bc7b8e4a800083823b6

@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit 9c10347
🔍 Latest deploy log https://app.netlify.com/projects/histoire-site/deploys/6a3a5bc76e64d90008ee6dd9
😎 Deploy Preview https://deploy-preview-845--histoire-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for histoire-examples-vue3 failed.

Name Link
🔨 Latest commit 9c10347
🔍 Latest deploy log https://app.netlify.com/projects/histoire-examples-vue3/deploys/6a3a5bc7a90e2e0008027792

@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for histoire-controls failed.

Name Link
🔨 Latest commit 9c10347
🔍 Latest deploy log https://app.netlify.com/projects/histoire-controls/deploys/6a3a5bc7d76aac000888ccb0

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades core dependencies (including Vue, TypeScript, and Vite), migrates the bundling process from Rollup to Rolldown, and replaces vite-node with Vite's native ModuleRunner for story collection. Additionally, it refactors several control components to use Vue 3's defineModel and applies numerous TypeScript type improvements and safety checks. A critical bug was identified in the sidebar tree generation logic where stories belonging to the default group are completely omitted because the default group lacks a configuration object.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +71 to +78
if (group.groupConfig) {
result.push({
group: true,
id: group.groupConfig.id ?? group.groupConfig.title,
title: group.groupConfig.title,
children: buildTree(group.treeObject),
})
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Critical Bug: The default group (defaultGroup) has groupConfig set to null. With this change, when iterating over groups, the default group will fall into the else block, and since group.groupConfig is null, it will do nothing. As a result, all stories belonging to the default group (i.e., any story not explicitly assigned to a group) will be completely omitted from the sidebar tree.

To fix this, we should render the default group's stories at the root level by calling result.push(...buildTree(group.treeObject)) when group.groupConfig is falsy.

      if (group.groupConfig) {
        result.push({
          group: true,
          id: group.groupConfig.id ?? group.groupConfig.title,
          title: group.groupConfig.title,
          children: buildTree(group.treeObject),
        })
      }
      else {
        result.push(...buildTree(group.treeObject))
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant