Support esnext in storybook
This commit is contained in:
parent
468ca256e6
commit
19279cfebd
16 changed files with 1088 additions and 434 deletions
|
@ -298,7 +298,11 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
|
||||
cachedOutgoingStickerData?: StickerWithHydratedData;
|
||||
|
||||
override initialize(attributes: unknown): void {
|
||||
constructor(attributes: MessageAttributesType) {
|
||||
super(attributes);
|
||||
|
||||
// Note that we intentionally don't use `initialize()` method because it
|
||||
// isn't compatible with esnext output of esbuild.
|
||||
if (isObject(attributes)) {
|
||||
this.set(
|
||||
TypedMessage.initializeSchemaVersion({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue