Skip to content

Commit

Permalink
Merge pull request #21902 from storybookjs/shilman/21900-revert-sourc…
Browse files Browse the repository at this point in the history
…e-exclude-decorators

Addon-docs: Include decorators by default in source decorators
  • Loading branch information
shilman committed Apr 6, 2023
1 parent 3a16e05 commit 08ca5d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -1618,10 +1618,6 @@ If your story depends on a play function to render correctly, _and_ you are conf

This was a legacy global variable from the early days of react docgen. If you were using this variable, you can instead use docgen information which is added directly to components using `.__docgenInfo`.

#### parameters.docs.source.excludeDecorators defaults to true

By default we don't render decorators in the Source/Canvas blocks. If you want to render decorators, you can set the parameter to `false`.

### 7.0 Deprecations and default changes

#### storyStoreV7 enabled by default
Expand Down
3 changes: 0 additions & 3 deletions code/addons/docs/src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@ export const parameters: any = {
const { DocsRenderer } = (await import('./DocsRenderer')) as any;
return new DocsRenderer();
},
source: {
excludeDecorators: true,
},
},
};

0 comments on commit 08ca5d9

Please sign in to comment.