UNPKG

motion

Version:

An animation library for JavaScript and React.

18 lines (15 loc) 721 B
import * as fm from 'framer-motion'; export * from 'framer-motion'; // Re-export everything from framer-motion. // // `motion` and `m` are aliased through local bindings so the module has // explicit named exports for IDE auto-import (see #3432). The previous // `export { motion, m } from "framer-motion"` line — sitting alongside // `export * from "framer-motion"` — was a duplicate-source re-export pattern // that caused Next.js Turbopack to OOM during module-graph analysis (#3741). // Local declarations shadow the wildcard re-export per the ES spec, so // `motion` and `m` come from the explicit bindings below and the rest from // `export *`. const motion = fm.motion; const m = fm.m; export { m, motion };