From b40f11ce0319c02c3515d94e40786f107c06ed29 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Tue, 11 Apr 2023 11:18:09 +0300 Subject: [PATCH] fix: solves react-scripts 4 loader error --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index af8e8b4a8..97a204cd6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,7 @@ export default defineConfig({ }), ], build: { + target: ['es2020', 'edge88', 'firefox78', 'chrome79', 'safari14'], minify: 'terser', lib: { entry: ['src/index.tsx'],