Skip to content

Fix Vite builder source loader plugin#19610

Closed
joshwooding wants to merge 2 commits into
storybookjs:nextfrom
joshwooding:fix-vite-builder-source-loader-plugin
Closed

Fix Vite builder source loader plugin#19610
joshwooding wants to merge 2 commits into
storybookjs:nextfrom
joshwooding:fix-vite-builder-source-loader-plugin

Conversation

@joshwooding

Copy link
Copy Markdown
Contributor

Issue: #19554

What I did

Added getOptions to the mocked class loader.

sourceloader doesn't have any types so I added expect error.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@joshwooding joshwooding requested a review from IanVS October 24, 2022 21:29
Comment thread code/lib/builder-vite/src/plugins/source-loader-plugin.ts Outdated
@joshwooding joshwooding force-pushed the fix-vite-builder-source-loader-plugin branch from 575a656 to abdbe93 Compare October 28, 2022 22:32
@joshwooding joshwooding requested a review from IanVS October 28, 2022 22:42
@joshwooding joshwooding force-pushed the fix-vite-builder-source-loader-plugin branch from abdbe93 to 685f8de Compare October 30, 2022 16:06
@joshwooding joshwooding force-pushed the fix-vite-builder-source-loader-plugin branch from 685f8de to 73b9f2d Compare October 30, 2022 16:06
@IanVS

IanVS commented Oct 31, 2022

Copy link
Copy Markdown
Member

Will this still be required if we go with #19680?

@joshwooding

Copy link
Copy Markdown
Contributor Author

Will this still be required if we go with #19680?

Nope, this work led to #19680 being done. I guess depending on timeframes of it being merged this can be seen as a "quick fix"

@shilman

shilman commented Nov 1, 2022

Copy link
Copy Markdown
Member

Hi Josh, I'm merging #19680 so I'm going to close this. Can you please integrate that instead? Happy to chat about it on Discord and/or pair if it helps.

@shilman shilman closed this Nov 1, 2022
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.

3 participants