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:
5
.changeset/wise-spiders-jog.md
Normal file
5
.changeset/wise-spiders-jog.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@rrweb/types': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix type error when using `"moduleResolution": "NodeNext"`.
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/types.js",
|
"import": "./dist/types.js",
|
||||||
"require": "./dist/types.umd.cjs"
|
"require": "./dist/types.umd.cjs"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user