From 76e072b332046ce0c0101588818f535e7ac09a4b Mon Sep 17 00:00:00 2001 From: xigua Date: Sun, 21 Jan 2024 19:51:24 +0800 Subject: [PATCH] fix: remove redundant code --- packages/suika/src/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/suika/src/index.tsx b/packages/suika/src/index.tsx index 55c861e3..b3fcaed9 100644 --- a/packages/suika/src/index.tsx +++ b/packages/suika/src/index.tsx @@ -6,12 +6,6 @@ import App from './App'; import '@suika/core/dist/style.css'; import '@suika/components/dist/style.css'; -// vite does not automatically import styles when referencing other packages, you need to manually import them -// TODO: FIXME: find a better way to do this -if (import.meta.env.PROD) { - import('@suika/components/dist/style.css'); -} - const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement, );