diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c9481b479..8634bbb06c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/js/animateCSS.js b/js/animateCSS.js index a503e1067b..c8f2924e8f 100644 --- a/js/animateCSS.js +++ b/js/animateCSS.js @@ -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 };