Skip to content

Commit

Permalink
fix: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Jan 21, 2024
1 parent 5f98362 commit 76e072b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/suika/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 76e072b

Please sign in to comment.