From 424dbbf7c5eb1ee63a232de26a72a83be31c3e92 Mon Sep 17 00:00:00 2001 From: Raphael Merx Date: Thu, 20 Jul 2023 20:50:02 +0800 Subject: [PATCH] Fix import error for enketo-transformer/web from 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 30ad914..2ad1a04 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "types": "./dist/types/src/dom/node/index.d.ts" }, "./web": { - "default": "./dist/enketo-transformer/web/transformer.js", - "types": "./dist/enketo-transformer/web/src/transformer.d.ts" + "types": "./dist/enketo-transformer/web/src/transformer.d.ts", + "default": "./dist/enketo-transformer/web/transformer.js" } }, "typesVersions": {