Skip to content

feat: add path support to LottieOptions#133

Open
MorlaxAR wants to merge 1 commit into
Gamote:mainfrom
MorlaxAR:main
Open

feat: add path support to LottieOptions#133
MorlaxAR wants to merge 1 commit into
Gamote:mainfrom
MorlaxAR:main

Conversation

@MorlaxAR
Copy link
Copy Markdown

Description

lottie-web supports loading animations from a URL via the path option, but LottieOptions was typed only around AnimationConfigWithData, so passing path required casting through unknown. With this change, LottieOptions now accepts either animationData or path . The path approach lets bundlers emit the JSON as a separate asset instead of inlining it. For larger animations this is a meaningful bundle size improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant