Skip to content

Commit f8ecd35

Browse files
committed
Fix typing exports for web SDK
For projects with moduleResolution set to bundler in tsconfig.json, the types must be exported in the package.json file.
1 parent 084a04f commit f8ecd35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/web/package.json.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"exports": {
99
".": {
1010
"import": "./dist/esm/sdk.js",
11-
"require": "./dist/cjs/sdk.js"
11+
"require": "./dist/cjs/sdk.js",
12+
"types": "./types/index.d.ts"
1213
},
1314
"./package.json": "./package.json"
1415
},

0 commit comments

Comments
 (0)