optimize webpack bundling, minimize gateway JS

This commit is contained in:
nitowa
2022-11-23 06:13:28 +01:00
parent 3175b262c2
commit a4b9635ee7
6 changed files with 46 additions and 18 deletions
-5
View File
@@ -1,5 +0,0 @@
(window as any).global = window;
(window as any).Buffer = (window as any).buffer.Buffer;
const rippleApi = require('xrpio')
window['xrpIO'] = rippleApi.xrpIO
+3 -4
View File
@@ -1,8 +1,7 @@
(window as any).global = window;
(window as any).Buffer = (window as any).Buffer || require('buffer/').Buffer;
(window as any).buffer = (window as any).Buffer
import { xrpIO } from 'xrpio';
(window as any).xrpIO = xrpIO;
//import { xrpIO } from 'xrpio';
declare const xrpIO
declare const DATA_HASH: string
const api = new xrpIO("wss://s.altnet.rippletest.net:51233")