diff --git a/scripts/Diff.ts b/scripts/Diff.ts index ce9e4552..8b1c5e84 100644 --- a/scripts/Diff.ts +++ b/scripts/Diff.ts @@ -1,4 +1,4 @@ -import { MutationQueue } from "./MutationQueue" +import MutationQueue from "./MutationQueue" export default class Diff { static persistentClasses = new Set() diff --git a/scripts/MutationQueue.ts b/scripts/MutationQueue.ts index e19cd190..60deed4e 100644 --- a/scripts/MutationQueue.ts +++ b/scripts/MutationQueue.ts @@ -8,7 +8,7 @@ const timeCapacity = 6.5 // MutationQueue queues up DOM mutations to batch execute them before a frame is rendered. // It checks the time used to process these mutations and if the time is over the // defined time capacity, it will pause and continue the mutations in the next frame. -export class MutationQueue { +export default class MutationQueue { mutations: Array<() => void> onClearCallBacks: Array<() => void>