From 835726d426cdbcc773e66d74a3ff4e1d20866139 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Wed, 2 Oct 2024 11:35:49 -0500 Subject: [PATCH] fix: node js esm module import --- package.json | 4 ++-- rollup.config.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9170280..39cf5d7 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "description": "", "exports": { ".": { - "import": "./dist/index.es.js", + "import": "./dist/index.es.mjs", "require": "./dist/index.cjs.js", "types": "./dist/index.d.ts" } }, "main": "dist/index.cjs.js", - "module": "dist/index.es.js", + "module": "dist/index.es.mjs", "types": "dist/index.d.ts", "author": "https://getstream.io", "license": "See license in LICENSE", diff --git a/rollup.config.mjs b/rollup.config.mjs index 51d4e2f..91cf92b 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -14,7 +14,7 @@ const nodeConfig = { sourcemap: true, }, { - file: "dist/index.es.js", + file: "dist/index.es.mjs", format: "es", sourcemap: true, },