File tree Expand file tree Collapse file tree 4 files changed +12
-134
lines changed
Expand file tree Collapse file tree 4 files changed +12
-134
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- // Import the polyfill first, before any other imports
2- import './lib/react-shim' ;
3-
41import { StrictMode } from 'react' ;
52import { createRoot } from 'react-dom/client' ;
63import './index.css' ;
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import { defineConfig } from 'vite';
22import react from '@vitejs/plugin-react' ;
33import path from 'path' ;
44
5- // Polyfill plugin removed as we no longer use Radix UI
6-
75export default defineConfig ( {
86 base : '/' ,
97 plugins : [ react ( ) ] ,
@@ -24,22 +22,26 @@ export default defineConfig({
2422 // More granular chunking for node_modules
2523 if ( id . includes ( 'node_modules' ) ) {
2624 // Split React and related packages into a separate chunk
27- if ( id . includes ( 'react' ) ||
28- id . includes ( 'scheduler' ) ||
29- id . includes ( 'prop-types' ) ) {
25+ if (
26+ id . includes ( 'react' ) ||
27+ id . includes ( 'scheduler' ) ||
28+ id . includes ( 'prop-types' )
29+ ) {
3030 return 'vendor-react' ;
3131 }
32-
32+
3333 // UI libraries
34- if ( id . includes ( 'class-variance-authority' ) ||
35- id . includes ( 'lucide' ) ) {
34+ if (
35+ id . includes ( 'class-variance-authority' ) ||
36+ id . includes ( 'lucide' )
37+ ) {
3638 return 'vendor-ui' ;
3739 }
38-
40+
3941 // All other third-party dependencies
4042 return 'vendor-other' ;
4143 }
42-
44+
4345 // Group all auth-related code together
4446 if ( id . includes ( '/src/api/' ) || id . includes ( '/src/context/Auth' ) ) {
4547 return 'auth' ;
You can’t perform that action at this time.
0 commit comments