From 1fc8cf3c5ecccb948f35531f143e8aa329691d57 Mon Sep 17 00:00:00 2001 From: grunghi Date: Fri, 15 Apr 2022 10:58:33 +0200 Subject: [PATCH] Use ESM export instead of CJS in utils/lazyValue.js to prevent build error in nuxt3 --- src/utils/lazyValue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/lazyValue.js b/src/utils/lazyValue.js index 6c25151..fbec207 100644 --- a/src/utils/lazyValue.js +++ b/src/utils/lazyValue.js @@ -1,6 +1,6 @@ // lazy-value by sindresorhus -module.exports = fn => { +export default fn => { let called = false; let result;