Refactor Dropdown Handlers and Update WordPress Integration
- Updated dropdown onChange handlers across multiple components to use direct value passing instead of event target value for improved clarity and consistency. - Changed `url` to `site_url` in WordPress integration configuration for better semantic clarity. - Enhanced Vite configuration to include `fast-deep-equal` for compatibility with `react-dnd`. - Updated navigation paths in `SiteContentEditor` and `SiteList` for consistency with new routing structure.
This commit is contained in:
@@ -120,6 +120,8 @@ export default defineConfig(({ mode, command }) => {
|
||||
"zustand/middleware", // Required for persist middleware used in stores
|
||||
// Include apexcharts for proper module resolution (skip during marketing-only build)
|
||||
...(isMarketingBuild ? [] : ["apexcharts", "react-apexcharts"]),
|
||||
// Force include fast-deep-equal for react-dnd compatibility
|
||||
"fast-deep-equal",
|
||||
],
|
||||
// Exclude heavy dependencies that are only used in specific pages
|
||||
// They will be lazy-loaded when needed
|
||||
@@ -132,8 +134,6 @@ export default defineConfig(({ mode, command }) => {
|
||||
"@fullcalendar/timegrid",
|
||||
"@react-jvectormap/core",
|
||||
"@react-jvectormap/world",
|
||||
"react-dnd",
|
||||
"react-dnd-html5-backend",
|
||||
"swiper",
|
||||
],
|
||||
esbuildOptions: {
|
||||
|
||||
Reference in New Issue
Block a user