From 8ab59f88757d4500a2329c6400069fa9522a60a9 Mon Sep 17 00:00:00 2001 From: Daniel Gustaw Date: Tue, 28 Mar 2023 09:15:12 +0900 Subject: [PATCH] fixed https://github.com/spence-s/human-object-diff/issues/22 --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6425405..21cb2af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,5 +35,9 @@ class DiffEngine { } } +// CommonJS export +module.exports = DiffEngine +module.exports.default = DiffEngine + // ES module export -export = DiffEngine +export default DiffEngine