From d1cbf766abf130ac15caafd7d7f0f44a0c895b39 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 10 Jul 2024 10:18:04 +0200 Subject: [PATCH] fix(react): disable arai components locales optimization --- vite.config.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index f0f0dfde8..48ab90a9c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'; import ViteReact from '@vitejs/plugin-react'; import RubyPlugin from 'vite-plugin-ruby'; import FullReload from 'vite-plugin-full-reload'; -import optimizeLocales from '@react-aria/optimize-locales-plugin'; +//import optimizeLocales from '@react-aria/optimize-locales-plugin'; const plugins = [ RubyPlugin(), @@ -10,13 +10,13 @@ const plugins = [ FullReload( ['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'], { delay: 200 } - ), - { - ...optimizeLocales.vite({ - locales: ['en-GB', 'fr-FR'] - }), - enforce: 'pre' as const - } + ) + // { + // ...optimizeLocales.vite({ + // locales: ['en-GB', 'fr-FR'] + // }), + // enforce: 'pre' as const + // } ]; export default defineConfig({