From 00bb73b0ad7bb3b4996bbddd706bf6f823881f9c Mon Sep 17 00:00:00 2001 From: yun-cheng Date: Fri, 22 Mar 2024 16:53:14 +0800 Subject: [PATCH] fix(vite): update vite-plugin-svgr config to resolve GitHub Actions build error --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 44854ff..a5f8361 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -29,7 +29,9 @@ export default defineConfig(({ mode }) => ({ plugins: [ tsconfigPaths(), react(), - svgr(), + svgr({ + include: '**/*.svg?react' + }), ...(mode === 'test' ? [] : [