Add WalletConnect support

Co-authored-by: Njoku Emmanuel <kalunjoku123@gmail.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-08-03 16:25:16 +02:00
co-authored by Njoku Emmanuel
parent 767355b782
commit 400a2df0a4
15 changed files with 2272 additions and 105 deletions
+12 -10
View File
@@ -1,26 +1,28 @@
import path from "path";
import { UserConfig } from "vite";
import svelte from "@sveltejs/vite-plugin-svelte";
import rewriteAll from "vite-plugin-rewrite-all";
import path from 'path';
import { UserConfig } from 'vite';
import svelte from '@sveltejs/vite-plugin-svelte';
import rewriteAll from 'vite-plugin-rewrite-all';
const config: UserConfig = {
optimizeDeps: {
exclude: ['svelte-routing']
exclude: ['svelte-routing', '@pedrouid/environment', '@pedrouid/iso-crypto']
},
plugins: [svelte(), rewriteAll()],
resolve: {
alias: {
"@app": path.resolve("./src"),
// Polyfill for Node.js "stream" library.
"stream": path.resolve("./src/polyfills/stream.ts"),
'@app': path.resolve('./src'),
// Polyfill for Node.js 'stream' library.
'stream': path.resolve('./src/polyfills/stream.ts'),
'typedarray-to-buffer': path.resolve('./src/polyfills/typedarray-to-buffer.js'),
'enc-utils': path.resolve('./src/polyfills/enc-utils.js'),
},
},
define: {
// eslint-disable-next-line @typescript-eslint/naming-convention
"process.env": { READABLE_STREAM: "disable" }
'process.env': { READABLE_STREAM: 'disable' }
},
build: {
outDir: "build",
outDir: 'build',
sourcemap: true
}
};