Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @react-aria/[email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/@react-aria/utils/dist/animation.main.js b/node_modules/@react-aria/utils/dist/animation.main.js
index f2a8b2a..b8ace4a 100644
--- a/node_modules/@react-aria/utils/dist/animation.main.js
+++ b/node_modules/@react-aria/utils/dist/animation.main.js
@@ -1,8 +1,7 @@
var $78605a5d7424e31b$exports = require("./useLayoutEffect.main.js");
-var $bsryd$reactdom = require("react-dom");
+var $bsryd$reactdom = typeof window !== 'undefined' ? require("react-dom") : {};
var $bsryd$react = require("react");
-
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
@@ -21,7 +20,6 @@ $parcel$export(module.exports, "useExitAnimation", () => $5bd06107f98811f5$expor
* governing permissions and limitations under the License.
*/
-
function $5bd06107f98811f5$export$6d3443f2c48bfc20(ref, isReady = true) {
let [isEntering, setEntering] = (0, $bsryd$react.useState)(true);
let isAnimationReady = isEntering && isReady;
@@ -93,5 +91,5 @@ function $5bd06107f98811f5$var$useAnimation(ref, isActive, onEnd) {
]);
}
-
//# sourceMappingURL=animation.main.js.map
+
This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels