Skip to content

Commit

Permalink
Add "types" field to fix error when using "moduleResolution": "NodeNe…
Browse files Browse the repository at this point in the history
…xt" (rrweb-io#1369)

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

* Add changeset.
  • Loading branch information
stefansundin authored and billyvg committed Apr 26, 2024
1 parent 3ff48e1 commit dbcc8fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-spiders-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rrweb/types': patch
---

Fix type error when using `"moduleResolution": "NodeNext"`.
1 change: 1 addition & 0 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"typings": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/rrweb-types.js",
"require": "./dist/rrweb-types.umd.cjs"
}
Expand Down

0 comments on commit dbcc8fc

Please sign in to comment.