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
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 7e586f4c90
commit e117803eae
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"
}