From f3942a60f2b398f344a98209dda14b4ba63e86c2 Mon Sep 17 00:00:00 2001 From: Ivaylo Bonev Date: Thu, 15 May 2025 17:21:13 +0300 Subject: [PATCH] revert '* as tweens' import introduced with v6.2 due to vitest tests failing due to the cjs import --- src/Confetti.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Confetti.ts b/src/Confetti.ts index bf21b37..75b09a9 100644 --- a/src/Confetti.ts +++ b/src/Confetti.ts @@ -1,4 +1,4 @@ -import * as tweens from 'tween-functions' +import { easeInOutQuad } from 'tween-functions' import ParticleGenerator from './ParticleGenerator' import { IRect } from './Rect' @@ -141,7 +141,7 @@ export const confettiDefaults: Pick< ], opacity: 1.0, debug: false, - tweenFunction: tweens.easeInOutQuad, + tweenFunction: easeInOutQuad, tweenDuration: 5000, recycle: true, run: true,