File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 17
17
"types" : " build/npm/types/index.d.ts" ,
18
18
"exports" : {
19
19
"./package.json" : " ./package.json" ,
20
+ "./replay-worker" : {
21
+ "import" : {
22
+ "types" : " ./build/npm/types/replay-worker.d.ts" ,
23
+ "default" : " ./build/npm/esm/replay-worker.js"
24
+ },
25
+ "require" : {
26
+ "types" : " ./build/npm/types/replay-worker.d.ts" ,
27
+ "default" : " ./build/npm/cjs/replay-worker.js"
28
+ }
29
+ },
20
30
"." : {
21
31
"import" : {
22
32
"types" : " ./build/npm/types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -16,4 +16,15 @@ export default makeNPMConfigVariants(
16
16
} ,
17
17
} ,
18
18
} ) ,
19
+ ) . concat (
20
+ ...[ 'esm' , 'cjs' ] . map ( format => ( {
21
+ input : [ 'src/replay-worker.ts' ] ,
22
+ output : {
23
+ file : `build/npm/${ format } /replay-worker.js` ,
24
+ format : format ,
25
+ strict : false ,
26
+ } ,
27
+ treeshake : false ,
28
+ external : [ '@sentry-internal/replay/worker-bundler' ] ,
29
+ } ) ) ,
19
30
) ;
Original file line number Diff line number Diff line change
1
+ // Forward to replay package
2
+ import '@sentry-internal/replay/worker-bundler' ;
You can’t perform that action at this time.
0 commit comments