Skip to content

Conversation

@j3rem1e
Copy link
Contributor

@j3rem1e j3rem1e commented Jan 28, 2021

Issue: #13742

What I did

The Svelte component name was not correctly guessed for unusual files names.
I use now the function from svelte/compiler which generates the component name.
However, this function is not exported by Svelte, so I had to duplicate it in the loader.

How to test

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

@j3rem1e j3rem1e linked an issue Jan 30, 2021 that may be closed by this pull request
@j3rem1e j3rem1e added bug patch:yes Bugfix & documentation PR that need to be picked to main branch svelte labels Jan 30, 2021
Copy link
Contributor

@phated phated left a comment

Choose a reason for hiding this comment

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

Looking good. Just a few things.

@j3rem1e
Copy link
Contributor Author

j3rem1e commented Feb 1, 2021

@phated I have updated my PR with your remarks, thanks !

Copy link
Contributor

@phated phated left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks!

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

😻

@shilman shilman merged commit 4b6df37 into storybookjs:next Feb 2, 2021
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Feb 2, 2021
shilman added a commit that referenced this pull request Feb 2, 2021
Svelte: Fixes component name in docgen-loader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch svelte

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to import Svelte files that doesn't start with capital letter

3 participants