Add "types" field to fix error when using "moduleResolution": "NodeNext" (#1369)

* Add "types" field to fix error when using "moduleResolution": "NodeNext".

* Add changeset.
This commit is contained in:
Stefan Sundin
2024-04-18 02:42:28 -07:00
committed by GitHub
parent f7c6973ae9
commit c278d068a0
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'@rrweb/types': patch
---
Fix type error when using `"moduleResolution": "NodeNext"`.

View File

@@ -30,6 +30,7 @@
"typings": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/types.js",
"require": "./dist/types.umd.cjs"
}