Skip to content

Commit 3a0d9a6

Browse files
authored
fix: node js esm module import (#61)
1 parent 40c18b0 commit 3a0d9a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"description": "",
55
"exports": {
66
".": {
7-
"import": "./dist/index.es.js",
7+
"import": "./dist/index.es.mjs",
88
"require": "./dist/index.cjs.js",
99
"types": "./dist/index.d.ts"
1010
}
1111
},
1212
"main": "dist/index.cjs.js",
13-
"module": "dist/index.es.js",
13+
"module": "dist/index.es.mjs",
1414
"types": "dist/index.d.ts",
1515
"author": "https://getstream.io",
1616
"license": "See license in LICENSE",

rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const nodeConfig = {
1414
sourcemap: true,
1515
},
1616
{
17-
file: "dist/index.es.js",
17+
file: "dist/index.es.mjs",
1818
format: "es",
1919
sourcemap: true,
2020
},

0 commit comments

Comments
 (0)