From bf806c5f8078069a5dbffb155f321df57d9d5829 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 8 Sep 2022 08:54:54 -0400 Subject: [PATCH] build(ExportMap): Add "default" entry https://nodejs.org/api/packages.html#conditional-exports > "default" - the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d87d426d9..d0507e6b8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "browser": "./dist/browser/index.js", "import": "./dist/node/index.js", "umd": "./dist/umd/itk-wasm.js", - "package.json": "./package.json" + "package.json": "./package.json", + "default": "./dist/index.js" } }, "type": "module",