From 78ce7e26f95bf06973c3002273ed0fd6acbb4270 Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Wed, 7 Aug 2024 14:03:04 +0200
Subject: [PATCH] CommonJs fix

---
 src/components/testsvganimation.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/components/testsvganimation.tsx b/src/components/testsvganimation.tsx
index 50211b52..dbbfea62 100644
--- a/src/components/testsvganimation.tsx
+++ b/src/components/testsvganimation.tsx
@@ -1,8 +1,9 @@
 import gsap from "gsap";
-import { ScrollTrigger } from 'gsap/dist/ScrollTrigger';
+import { createRequire } from 'module';
+const ScrollTrigger = createRequire('gsap/dist/ScrollTrigger');
 import { useGSAP } from '@gsap/react';
 import { useRef } from 'react';
-import MotionPathPlugin from "gsap/dist/MotionPathPlugin";
+const MotionPathPlugin = createRequire("gsap/dist/MotionPathPlugin");
 
 function TestSVG() {
 
-- 
GitLab