Skip to content

Commit

Permalink
Merge pull request #1147 from chromaui/jmhobbs/cap-2681-chromatic-fai…
Browse files Browse the repository at this point in the history
…ls-to-trace-dependencies-between-rsbuild

Add additional rspack builder entrypoint
  • Loading branch information
jmhobbs authored Jan 30, 2025
2 parents 71abbcc + 2dfe359 commit 9047fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions node-src/lib/getDependentStoryFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ describe('getDependentStoryFiles', () => {

it.each([
[`./node_modules/.cache/storybook/default/dev-server/storybook-stories.js`],
['./node_modules/.cache/storybook-rsbuild-builder/storybook-stories.js'],
[`./node_modules/.cache/storybook/storybook-rsbuild-builder/storybook-config-entry.js`],
[`./node_modules/.cache/storybook-rsbuild-builder/storybook-config-entry.js`],
])('detects direct changes to CSF files, rspack (%s)', async (resolvedModule) => {
Expand Down
1 change: 1 addition & 0 deletions node-src/lib/getDependentStoryFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export async function getDependentStoryFiles(
`/virtual:/@storybook/builder-vite/vite-app.js`,
// rspack builder
`./node_modules/.cache/storybook/default/dev-server/storybook-stories.js`,
'./node_modules/.cache/storybook-rsbuild-builder/storybook-stories.js',
`./node_modules/.cache/storybook/storybook-rsbuild-builder/storybook-config-entry.js`,
`./node_modules/.cache/storybook-rsbuild-builder/storybook-config-entry.js`,
].map((file) => normalize(file))
Expand Down

0 comments on commit 9047fb7

Please sign in to comment.