chore: Support full source in storybook documentation #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a patch to the
@storybook/source-loaderin order to get full source for each story (see storybookjs/storybook#23325). The patch changesexportSourcetosanitizedSourcein 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.