Show animations, fix export only on server side (#3649)

fix #3644 so only on server side
This commit is contained in:
sam detweiler 2024-12-08 09:24:39 -06:00 committed by GitHub
parent 76fac78909
commit 39ab651319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ _This release is scheduled to be released on 2025-01-01._
### Changed
- [core] Run code style checks in workflow only once.
- [core] fix animations export #3644 only on server side
### Removed

View File

@ -155,4 +155,4 @@ function removeAnimateCSS (element, animation) {
node.classList.remove("animate__animated", animationName);
node.style.removeProperty("--animate-duration");
}
module.exports = { AnimateCSSIn, AnimateCSSOut };
if (typeof window === "undefined") module.exports = { AnimateCSSIn, AnimateCSSOut };