Skip to content

Commit

Permalink
Merge pull request #16652 from ckeditor/add-pure-comments-to-improve-…
Browse files Browse the repository at this point in the history
…tree-shaking

Fix (ui): Add `/* #__PURE__ */` comments before mixin calls to properly tree-shake unused classes. Closes #16651.
  • Loading branch information
filipsobol authored Jul 2, 2024
2 parents ccc93c9 + 3c569c6 commit b582a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ckeditor5-ui/src/button/filedialogbuttonview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import ListItemButtonView from './listitembuttonview.js';
* } );
* ```
*/
export default class FileDialogButtonView extends FileDialogViewMixin( ButtonView ) {}
export default class FileDialogButtonView extends /* #__PURE__ */ FileDialogViewMixin( ButtonView ) {}

/**
* The file dialog button view used in a lists.
Expand All @@ -64,7 +64,7 @@ export default class FileDialogButtonView extends FileDialogViewMixin( ButtonVie
* } );
* ```
*/
export class FileDialogListItemButtonView extends FileDialogViewMixin( ListItemButtonView ) {}
export class FileDialogListItemButtonView extends /* #__PURE__ */ FileDialogViewMixin( ListItemButtonView ) {}

/**
* Mixin function that enhances a base button view class with file dialog functionality. It is used
Expand Down

0 comments on commit b582a13

Please sign in to comment.