mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Add WalletConnect support
Co-authored-by: Njoku Emmanuel <kalunjoku123@gmail.com> Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
co-authored by
Njoku Emmanuel
parent
767355b782
commit
400a2df0a4
+12
-10
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user