From 8a2ba2774d2a2c0c8db9b4976a75c830f2c7297b Mon Sep 17 00:00:00 2001 From: Daniela Serafim Soares Date: Mon, 28 Mar 2022 19:16:01 -0300 Subject: [PATCH] polyfill fix --- index.html | 10 +--------- package.json | 2 +- vite.config.ts | 1 + 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 8960a87..2843773 100644 --- a/index.html +++ b/index.html @@ -5,15 +5,7 @@ Simple DApp - +
diff --git a/package.json b/package.json index e1d790c..af9b39d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", "preview": "vite preview", "format": "prettier -w ." }, diff --git a/vite.config.ts b/vite.config.ts index 7d83bbe..31f284b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,7 @@ import NodeGlobalPolyfillPlugin from "@esbuild-plugins/node-globals-polyfill"; // https://vitejs.dev/config/ export default defineConfig({ + base: "./", plugins: [react()], resolve: { alias: {