From 39ab651319daadd72011ecc48cb2b8715e82b07e Mon Sep 17 00:00:00 2001 From: sam detweiler Date: Sun, 8 Dec 2024 09:24:39 -0600 Subject: [PATCH] Show animations, fix export only on server side (#3649) fix #3644 so only on server side --- CHANGELOG.md | 1 + js/animateCSS.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 };