Skip to content

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Jul 5, 2023

Adds a patch to the @storybook/source-loader in order to get full source for each story (see storybookjs/storybook#23325). The patch changes exportSource to sanitizedSource in https://github.com/storybookjs/storybook/blob/992efdfec892e86fb85ef47e9c5ade53180f40ca/code/lib/source-loader/src/abstract-syntax-tree/generate-helpers.js#L197. The change is only one identifier, but the entire module is patched because storybook minifies all dist files.

Also removes other addons so that the only addon pane that is visible is for source code.

Adds a patch to the `@storybook/source-loader` in order to get full
source for each story (see storybookjs/storybook#23325).

Also removes other addons so that the only addon pane that is visible
is for source code.
@ling1726 ling1726 requested a review from a team as a code owner July 5, 2023 19:31
@ling1726 ling1726 merged commit a045bfb into microsoft:main Jul 5, 2023
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