Update build-a-browser-wallet

This commit is contained in:
JST5000
2024-02-02 15:56:14 -08:00
parent e7f20eb96e
commit 3ac363ae4d
3 changed files with 195 additions and 536 deletions

View File

@@ -16,6 +16,6 @@
}, },
"dependencies": { "dependencies": {
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
"xrpl": "^2.11.0" "xrpl": "^3.0.0"
} }
} }

View File

@@ -1,6 +1,5 @@
import { defineConfig, loadEnv } from 'vite'; import { defineConfig, loadEnv } from 'vite';
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';
import polyfillNode from 'rollup-plugin-polyfill-node'; import polyfillNode from 'rollup-plugin-polyfill-node';
const viteConfig = ({ mode }) => { const viteConfig = ({ mode }) => {
@@ -14,12 +13,6 @@ const viteConfig = ({ mode }) => {
define: { define: {
global: 'globalThis', global: 'globalThis',
}, },
plugins: [
NodeGlobalsPolyfillPlugin({
process: true,
buffer: true,
}),
],
}, },
}, },
build: { build: {
@@ -29,11 +22,6 @@ const viteConfig = ({ mode }) => {
}, },
resolve: { resolve: {
alias: { alias: {
events: 'events',
crypto: 'crypto-browserify',
stream: 'stream-browserify',
http: 'stream-http',
https: 'https-browserify',
ws: 'xrpl/dist/npm/client/WSWrapper', ws: 'xrpl/dist/npm/client/WSWrapper',
}, },
}, },

File diff suppressed because it is too large Load Diff