Skip to content

Commit

Permalink
Exclude decorators by default.
Browse files Browse the repository at this point in the history
Due to reordering in #21182 the source decorator comes *before* any user decorator in `preview.js`. This means that we commonly trigger the bug in #21649.

Really it makes more sense to default this to true and people can opt out in cases where they want to show the decorator.
  • Loading branch information
tmeasday committed Mar 22, 2023
1 parent 872dbff commit e77ccb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/addons/docs/src/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ export const parameters: any = {
const { DocsRenderer } = (await import('./DocsRenderer')) as any;
return new DocsRenderer();
},
source: {
excludeDecorators: true,
},
},
};

0 comments on commit e77ccb5

Please sign in to comment.