Skip to content
Snippets Groups Projects
Commit 78ce7e26 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

CommonJs fix

parent f0d65e39
No related branches found
No related tags found
No related merge requests found
Pipeline #401492 failed
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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment