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 1717 "types" : " build/npm/types/index.d.ts" ,
1818 "exports" : {
1919 "./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+ },
2030 "." : {
2131 "import" : {
2232 "types" : " ./build/npm/types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -16,4 +16,15 @@ export default makeNPMConfigVariants(
1616 } ,
1717 } ,
1818 } ) ,
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+ } ) ) ,
1930) ;
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