File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 44
55### Fixed
66* Remove ` MuxedAccount.parseBaseAddress ` from TypeScript definitions ([ #797 ] ( https://github.com/stellar/js-stellar-base/pull/797 ) ).
7+ * Fix browser compatibility with proper module resolution and UMD configuration ([ #798 ] ( https://github.com/stellar/js-stellar-base/pull/798 ) ).
78
89## [ ` v13.1.0 ` ] ( https://github.com/stellar/js-stellar-base/compare/v13.0.1...v13.1.0 )
910
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ const config = {
2121 } ,
2222 output : {
2323 clean : true ,
24- library : 'StellarBase' ,
24+ library : {
25+ name : 'StellarBase' ,
26+ type : 'umd' ,
27+ umdNamedDefine : true
28+ } ,
2529 path : path . resolve ( __dirname , '../dist' )
2630 } ,
2731 mode : process . env . NODE_ENV ?? 'development' ,
@@ -30,7 +34,7 @@ const config = {
3034 rules : [
3135 {
3236 test : / \. m ? j s $ / ,
33- exclude : / n o d e _ m o d u l e s / ,
37+ exclude : / n o d e _ m o d u l e s \/ (? ! ( j s - x d r ) ) / ,
3438 use : {
3539 loader : 'babel-loader' ,
3640 options : {
Original file line number Diff line number Diff line change 44 "description" : " Low-level support library for the Stellar network." ,
55 "main" : " ./lib/index.js" ,
66 "browser" : {
7- "main " : " ./dist/stellar-base.min.js" ,
7+ "./lib/index.js " : " ./dist/stellar-base.min.js" ,
88 "sodium-native" : false
99 },
1010 "types" : " ./types/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments