-
I think it may make sense for
Dequal is a (slightly) smaller and (significantly) faster alternative. Your usage is very minimal and it's not the ES6 variant, which means you can use the Because you're not using More Info |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Hi @lukeed, great work on the |
Beta Was this translation helpful? Give feedback.
-
I believe due to popularity of |
Beta Was this translation helpful? Give feedback.
-
@lukeed Really cool library, but this change is making some of my tests fail (using jest). /.../node_modules/dequal/lite/index.mjs:3
export function dequal(foo, bar) {
SyntaxError: Unexpected token 'export'
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1728:14)
at Object.<anonymous> (node_modules/swr/dist/index.js:1:163) I think it's because of the mjs file because jest ignores node_modules for transformation. I'm not sure if you have any suggestions. I'm trying to figure out how to just transform just the dequal package, but it hasn't worked so far. |
Beta Was this translation helpful? Give feedback.
Hi @lukeed, great work on the
dequal
lib! The benchmark looks amazing. For sure we'd love to use a smaller and faster alternative of FDE. Would you mind opening a PR for it (dequal/lite
)?