@burdenoff/fe-libs 2026.516.1 → 2026.518.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/chrome/AccountSwitcher.d.ts.map +1 -1
- package/dist/chrome/AutoBreadcrumbs.d.ts.map +1 -1
- package/dist/chrome/Breadcrumb.d.ts.map +1 -1
- package/dist/chrome/Breadcrumbs.d.ts.map +1 -1
- package/dist/chrome/CommandPalette.d.ts.map +1 -1
- package/dist/chrome/ContextSwitcher.d.ts.map +1 -1
- package/dist/chrome/DynamicFooter.d.ts.map +1 -1
- package/dist/chrome/Footer.d.ts.map +1 -1
- package/dist/chrome/FooterBar.d.ts +1 -1
- package/dist/chrome/FooterBar.d.ts.map +1 -1
- package/dist/chrome/GeographySwitcher.d.ts.map +1 -1
- package/dist/chrome/GlobalSearch.d.ts.map +1 -1
- package/dist/chrome/HeaderBar.d.ts +1 -1
- package/dist/chrome/HeaderBar.d.ts.map +1 -1
- package/dist/chrome/LanguagePickerSheet.d.ts.map +1 -1
- package/dist/chrome/LanguageSwitcher.d.ts.map +1 -1
- package/dist/chrome/NavLink.d.ts +1 -1
- package/dist/chrome/NavLink.d.ts.map +1 -1
- package/dist/chrome/NotificationCenter.d.ts.map +1 -1
- package/dist/chrome/NotificationCenter.js +2 -8
- package/dist/chrome/PanelContainer.d.ts +1 -1
- package/dist/chrome/PanelContainer.d.ts.map +1 -1
- package/dist/chrome/PluginContextMenuTarget.d.ts.map +1 -1
- package/dist/chrome/PluginFooterStrip.d.ts.map +1 -1
- package/dist/chrome/PluginRoutes.d.ts.map +1 -1
- package/dist/chrome/PluginSettingsPage.d.ts.map +1 -1
- package/dist/chrome/PluginToolbar.d.ts +1 -1
- package/dist/chrome/PluginToolbar.d.ts.map +1 -1
- package/dist/chrome/PluginWidgetGrid.d.ts.map +1 -1
- package/dist/chrome/ProductPickerSheet.d.ts.map +1 -1
- package/dist/chrome/ProductSideNav.d.ts.map +1 -1
- package/dist/chrome/ProductSwitcher.d.ts.map +1 -1
- package/dist/chrome/ProfileSwitcher.d.ts.map +1 -1
- package/dist/chrome/ShortcutHelpDialog.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/Sidebar.d.ts.map +1 -1
- package/dist/chrome/StatusBar.d.ts.map +1 -1
- package/dist/chrome/Tabs.d.ts +2 -2
- package/dist/chrome/Tabs.d.ts.map +1 -1
- package/dist/chrome/index.d.ts +5 -5
- package/dist/chrome/index.d.ts.map +1 -1
- package/dist/form/Checkbox.d.ts +2 -2
- package/dist/form/Checkbox.d.ts.map +1 -1
- package/dist/form/Form.d.ts +4 -4
- package/dist/form/Form.d.ts.map +1 -1
- package/dist/form/FormDescription.d.ts +1 -1
- package/dist/form/FormDescription.d.ts.map +1 -1
- package/dist/form/FormField.d.ts +1 -1
- package/dist/form/FormField.d.ts.map +1 -1
- package/dist/form/FormLabel.d.ts +2 -2
- package/dist/form/FormMessage.d.ts +1 -1
- package/dist/form/FormMessage.d.ts.map +1 -1
- package/dist/form/Input.d.ts +1 -1
- package/dist/form/Radio.d.ts +2 -2
- package/dist/form/Radio.d.ts.map +1 -1
- package/dist/form/Select.d.ts +3 -3
- package/dist/form/Select.d.ts.map +1 -1
- package/dist/form/Textarea.d.ts +1 -1
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.d.ts.map +1 -1
- package/dist/shared/components/AccessDenied.d.ts +2 -2
- package/dist/shared/components/AccessDenied.d.ts.map +1 -1
- package/dist/shared/components/AppErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/ConditionalShell.d.ts.map +1 -1
- package/dist/shared/components/ContextConversationWidget.d.ts.map +1 -1
- package/dist/shared/components/ContextConversationWidget.js +6 -23
- package/dist/shared/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts +1 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -1
- package/dist/shared/components/LegalPage.d.ts.map +1 -1
- package/dist/shared/components/LoadingFallback.d.ts +1 -1
- package/dist/shared/components/LoadingFallback.d.ts.map +1 -1
- package/dist/shared/components/MicrofrontendErrorBoundary.d.ts.map +1 -1
- package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -1
- package/dist/shared/components/PermissionGate.d.ts +2 -2
- package/dist/shared/components/PermissionGate.d.ts.map +1 -1
- package/dist/shared/components/ProductAccessGuard.d.ts +1 -1
- package/dist/shared/components/ProductAccessGuard.d.ts.map +1 -1
- package/dist/shared/components/QuotaMeter.d.ts.map +1 -1
- package/dist/shared/components/RequireAuth.d.ts +1 -1
- package/dist/shared/components/RequireAuth.d.ts.map +1 -1
- package/dist/shared/components/RequireAuth.js +1 -5
- package/dist/shared/components/SSORedirectGuard.d.ts.map +1 -1
- package/dist/shared/components/SearchPage.d.ts.map +1 -1
- package/dist/shared/components/index.d.ts +2 -2
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/events/index.d.ts +150 -150
- package/dist/shared/events/index.d.ts.map +1 -1
- package/dist/shared/events/metadata.d.ts.map +1 -1
- package/dist/shared/events/sinks/BackendAuditSink.d.ts.map +1 -1
- package/dist/shared/events/sinks/RybbitSink.d.ts.map +1 -1
- package/dist/shared/events/sinks/RybbitSink.js +1 -1
- package/dist/shared/feature-flags/FeatureFlagProvider.d.ts.map +1 -1
- package/dist/shared/feature-flags/index.d.ts +1 -1
- package/dist/shared/feature-flags/index.d.ts.map +1 -1
- package/dist/shared/feature-flags/types.d.ts +3 -3
- package/dist/shared/feature-flags/types.d.ts.map +1 -1
- package/dist/shared/feature-flags/useFeatureFlag.d.ts.map +1 -1
- package/dist/shared/geography/GeographyProvider.d.ts.map +1 -1
- package/dist/shared/geography/countries.d.ts +3 -3
- package/dist/shared/geography/countries.d.ts.map +1 -1
- package/dist/shared/geography/index.d.ts +1 -1
- package/dist/shared/geography/index.d.ts.map +1 -1
- package/dist/shared/graphql/GatewayContext.d.ts.map +1 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/index.d.ts +1 -1
- package/dist/shared/graphql/index.d.ts.map +1 -1
- package/dist/shared/graphql/links/sse-link.d.ts.map +1 -1
- package/dist/shared/graphql/security.d.ts.map +1 -1
- package/dist/shared/graphql/workspaceToken.d.ts.map +1 -1
- package/dist/shared/help/HelpButton.d.ts +1 -1
- package/dist/shared/help/HelpButton.d.ts.map +1 -1
- package/dist/shared/help/HelpPanel.d.ts.map +1 -1
- package/dist/shared/help/HelpProvider.d.ts +2 -2
- package/dist/shared/help/HelpProvider.d.ts.map +1 -1
- package/dist/shared/help/index.d.ts +1 -1
- package/dist/shared/help/index.d.ts.map +1 -1
- package/dist/shared/help/types.d.ts +3 -3
- package/dist/shared/hooks/index.d.ts +4 -4
- package/dist/shared/hooks/index.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useBreadcrumbs.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts +3 -3
- package/dist/shared/hooks/shell/useFooterRegistry.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +3 -3
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useLanguages.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useLanguages.js +1 -5
- package/dist/shared/hooks/shell/useProductAccess.d.ts +2 -2
- package/dist/shared/hooks/shell/useProductAccess.d.ts.map +1 -1
- package/dist/shared/hooks/shell/useProducts.d.ts.map +1 -1
- package/dist/shared/hooks/useAsync.d.ts.map +1 -1
- package/dist/shared/hooks/useBreakpoint.d.ts +2 -2
- package/dist/shared/hooks/useBreakpoint.d.ts.map +1 -1
- package/dist/shared/hooks/useCopyToClipboard.d.ts.map +1 -1
- package/dist/shared/hooks/useKeyPress.d.ts.map +1 -1
- package/dist/shared/hooks/useLocalStorage.d.ts.map +1 -1
- package/dist/shared/hooks/usePWA.d.ts.map +1 -1
- package/dist/shared/hooks/useQuotaErrorToast.d.ts.map +1 -1
- package/dist/shared/hooks/useReferralAttribution.d.ts.map +1 -1
- package/dist/shared/hooks/useSessionStorage.d.ts.map +1 -1
- package/dist/shared/keyboard/globalShortcuts.d.ts.map +1 -1
- package/dist/shared/keyboard/index.d.ts +1 -1
- package/dist/shared/keyboard/index.d.ts.map +1 -1
- package/dist/shared/keyboard/types.d.ts +2 -2
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts +2 -2
- package/dist/shared/keyboard/useKeyboardShortcuts.d.ts.map +1 -1
- package/dist/shared/keyboard/utils.d.ts.map +1 -1
- package/dist/shared/logger/ConsoleTransport.d.ts.map +1 -1
- package/dist/shared/logger/LogManager.d.ts.map +1 -1
- package/dist/shared/logger/Logger.d.ts.map +1 -1
- package/dist/shared/motion/AnimatedCounter.d.ts.map +1 -1
- package/dist/shared/motion/MotionCard.d.ts.map +1 -1
- package/dist/shared/motion/MotionCollapse.d.ts +1 -1
- package/dist/shared/motion/MotionCollapse.d.ts.map +1 -1
- package/dist/shared/motion/MotionFade.d.ts +2 -2
- package/dist/shared/motion/MotionFade.d.ts.map +1 -1
- package/dist/shared/motion/MotionItem.d.ts +1 -1
- package/dist/shared/motion/MotionItem.d.ts.map +1 -1
- package/dist/shared/motion/MotionList.d.ts.map +1 -1
- package/dist/shared/motion/MotionPage.d.ts +1 -1
- package/dist/shared/motion/MotionPage.d.ts.map +1 -1
- package/dist/shared/native/consumers.d.ts.map +1 -1
- package/dist/shared/native/types.d.ts +6 -6
- package/dist/shared/pages/AiPage.d.ts.map +1 -1
- package/dist/shared/pages/LegalPage.d.ts.map +1 -1
- package/dist/shared/pages/SearchPage.d.ts.map +1 -1
- package/dist/shared/pages/SearchPage.js +2 -4
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts +1 -1
- package/dist/shared/plugins/PluginRuntimeProvider.d.ts.map +1 -1
- package/dist/shared/plugins/context.d.ts +2 -2
- package/dist/shared/plugins/context.d.ts.map +1 -1
- package/dist/shared/plugins/event-bus.d.ts +20 -20
- package/dist/shared/plugins/event-bus.d.ts.map +1 -1
- package/dist/shared/plugins/panels/usePanelManagerStore.d.ts +1 -1
- package/dist/shared/plugins/registries/useCommandRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useContextMenuRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/usePanelRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useRouteRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useSettingsRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useStatusBarRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useToolbarRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/registries/useWidgetRegistry.d.ts.map +1 -1
- package/dist/shared/plugins/runtime.d.ts.map +1 -1
- package/dist/shared/plugins/types.d.ts +12 -12
- package/dist/shared/plugins/types.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.d.ts +4 -4
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +2 -8
- package/dist/shared/providers/MicrofrontendProvider.d.ts +1 -1
- package/dist/shared/providers/MicrofrontendProvider.d.ts.map +1 -1
- package/dist/shared/providers/index.d.ts +1 -1
- package/dist/shared/providers/index.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts +1 -1
- package/dist/shared/providers/shell/ActiveContextStorage.d.ts.map +1 -1
- package/dist/shared/providers/shell/AppShellContext.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts +2 -2
- package/dist/shared/providers/shell/AuthBridgeClient.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/AuthTokenProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts +1 -1
- package/dist/shared/providers/shell/ContextManagerProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/FeatureFlagsProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts +1 -1
- package/dist/shared/providers/shell/GatewayRouter.d.ts.map +1 -1
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +3 -3
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts +1 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PageConversationContextProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/PermissionProvider.d.ts +2 -2
- package/dist/shared/providers/shell/PermissionProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileGeographyBridge.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -1
- package/dist/shared/providers/shell/ShellUiProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -6
- package/dist/shared/providers/shell/ThemeProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/index.d.ts +10 -10
- package/dist/shared/providers/shell/index.d.ts.map +1 -1
- package/dist/shared/shims/assert.d.ts.map +1 -1
- package/dist/shared/shims/use-sync-external-store-with-selector.d.ts.map +1 -1
- package/dist/shared/shims/util.d.ts.map +1 -1
- package/dist/shared/tours/TourPlayer.d.ts +1 -1
- package/dist/shared/tours/TourPlayer.d.ts.map +1 -1
- package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -1
- package/dist/shared/tours/TourSpotlight.d.ts.map +1 -1
- package/dist/shared/tours/TourTooltip.d.ts.map +1 -1
- package/dist/shared/tours/TourTrigger.d.ts +3 -3
- package/dist/shared/tours/TourTrigger.d.ts.map +1 -1
- package/dist/shared/tours/ToursContext.d.ts +2 -2
- package/dist/shared/tours/ToursContext.d.ts.map +1 -1
- package/dist/shared/tours/routeCatalog.d.ts.map +1 -1
- package/dist/shared/tours/types.d.ts +7 -7
- package/dist/shared/tours/types.d.ts.map +1 -1
- package/dist/shared/tours/useTourPlayer.d.ts.map +1 -1
- package/dist/shared/types/index.d.ts +4 -4
- package/dist/shared/utils/apollo.d.ts.map +1 -1
- package/dist/shared/utils/appHelpers.d.ts.map +1 -1
- package/dist/shared/utils/authCookie.d.ts.map +1 -1
- package/dist/shared/utils/authErrorHandling.d.ts.map +1 -1
- package/dist/shared/utils/format.d.ts +1 -1
- package/dist/shared/utils/format.d.ts.map +1 -1
- package/dist/shared/utils/gatewayFetchRewrite.d.ts.map +1 -1
- package/dist/shared/utils/index.d.ts +3 -3
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared/utils/loggerInit.d.ts.map +1 -1
- package/dist/shared/utils/quotaErrors.d.ts.map +1 -1
- package/dist/shared/utils/tokens.d.ts +3 -3
- package/dist/shared/utils/tokens.d.ts.map +1 -1
- package/dist/storage/StorageFolderPicker.d.ts.map +1 -1
- package/dist/tag/TagBadge.d.ts +1 -1
- package/dist/tag/TagBadge.d.ts.map +1 -1
- package/dist/tag/TagsWidget.d.ts.map +1 -1
- package/dist/tag/TagsWidget.js +1 -5
- package/dist/ui/accordion.d.ts +2 -2
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/alert-dialog.d.ts +4 -4
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +1 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -2
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts +4 -4
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/index.d.ts +4 -4
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/popover.d.ts +2 -2
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +2 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/sheet.d.ts +5 -5
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/spinner.d.ts +1 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/table.d.ts +1 -1
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +2 -2
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/shims/assert.ts +6 -14
- package/src/shared/shims/index.ts +5 -5
- package/src/shared/shims/process.ts +2 -2
- package/src/shared/shims/use-sync-external-store-shim.ts +1 -1
- package/src/shared/shims/use-sync-external-store-with-selector.ts +4 -16
- package/src/shared/shims/util.ts +38 -59
- package/src/vite/index.ts +5 -5
- package/src/vite/mfe.config.ts +28 -37
- package/src/vite/plugins.ts +76 -116
- package/src/vite/shell.config.ts +55 -68
- package/src/vite/types.ts +34 -34
package/src/vite/shell.config.ts
CHANGED
|
@@ -24,20 +24,13 @@
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
|
-
import { defineConfig, type UserConfig, type Plugin } from
|
|
28
|
-
import react from
|
|
29
|
-
import tailwindcss from
|
|
30
|
-
import { resolve, dirname } from
|
|
31
|
-
import { fileURLToPath } from
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
STANDARD_WATCH_IGNORE,
|
|
35
|
-
APP_SHELL_PORT_MAP,
|
|
36
|
-
} from "./types";
|
|
37
|
-
import {
|
|
38
|
-
createContextualAliasPlugin,
|
|
39
|
-
createReactSingletonAliases,
|
|
40
|
-
} from "./plugins";
|
|
27
|
+
import { defineConfig, type UserConfig, type Plugin } from 'vite';
|
|
28
|
+
import react from '@vitejs/plugin-react';
|
|
29
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
30
|
+
import { resolve, dirname } from 'path';
|
|
31
|
+
import { fileURLToPath } from 'url';
|
|
32
|
+
import { type AppShellConfig, STANDARD_WATCH_IGNORE, APP_SHELL_PORT_MAP } from './types';
|
|
33
|
+
import { createContextualAliasPlugin, createReactSingletonAliases } from './plugins';
|
|
41
34
|
|
|
42
35
|
/**
|
|
43
36
|
* Creates a standardized Vite configuration for app shells.
|
|
@@ -46,22 +39,19 @@ import {
|
|
|
46
39
|
* @param configPath - The path to the vite.config.ts file (use import.meta.url)
|
|
47
40
|
* @returns Vite configuration object
|
|
48
41
|
*/
|
|
49
|
-
export function createAppShellConfig(
|
|
50
|
-
config: AppShellConfig,
|
|
51
|
-
configPath: string,
|
|
52
|
-
): UserConfig {
|
|
42
|
+
export function createAppShellConfig(config: AppShellConfig, configPath: string): UserConfig {
|
|
53
43
|
// Resolve __dirname from the config file path
|
|
54
44
|
const __dirname =
|
|
55
|
-
typeof configPath ===
|
|
45
|
+
typeof configPath === 'string' && configPath.startsWith('file://')
|
|
56
46
|
? dirname(fileURLToPath(configPath))
|
|
57
47
|
: configPath;
|
|
58
48
|
|
|
59
49
|
const {
|
|
60
50
|
name,
|
|
61
51
|
port = APP_SHELL_PORT_MAP[name] || 5200,
|
|
62
|
-
feLibsPath =
|
|
52
|
+
feLibsPath = '../../fe-libs/src',
|
|
63
53
|
microfrontends = [],
|
|
64
|
-
microfePath =
|
|
54
|
+
microfePath = '../../microfe',
|
|
65
55
|
additionalAliases = {},
|
|
66
56
|
additionalPlugins = [],
|
|
67
57
|
manualChunks = {},
|
|
@@ -70,16 +60,13 @@ export function createAppShellConfig(
|
|
|
70
60
|
|
|
71
61
|
const resolvedFeLibsPath = resolve(__dirname, feLibsPath);
|
|
72
62
|
const resolvedMicrofePath = resolve(__dirname, microfePath);
|
|
73
|
-
const srcPath = resolve(__dirname,
|
|
74
|
-
const nodeModulesPath = resolve(__dirname,
|
|
63
|
+
const srcPath = resolve(__dirname, './src');
|
|
64
|
+
const nodeModulesPath = resolve(__dirname, 'node_modules');
|
|
75
65
|
|
|
76
66
|
// Build microfrontend path map for contextual alias resolution
|
|
77
67
|
const microfePaths: Record<string, string> = {};
|
|
78
68
|
microfrontends.forEach((mfe) => {
|
|
79
|
-
microfePaths[`microfe-${mfe}`] = resolve(
|
|
80
|
-
resolvedMicrofePath,
|
|
81
|
-
`microfe-${mfe}/src`,
|
|
82
|
-
);
|
|
69
|
+
microfePaths[`microfe-${mfe}`] = resolve(resolvedMicrofePath, `microfe-${mfe}/src`);
|
|
83
70
|
});
|
|
84
71
|
|
|
85
72
|
// Build microfrontend aliases
|
|
@@ -87,7 +74,7 @@ export function createAppShellConfig(
|
|
|
87
74
|
microfrontends.forEach((mfe) => {
|
|
88
75
|
microfeAliases[`@burdenoff/microfe-${mfe}`] = resolve(
|
|
89
76
|
resolvedMicrofePath,
|
|
90
|
-
`microfe-${mfe}/src
|
|
77
|
+
`microfe-${mfe}/src`
|
|
91
78
|
);
|
|
92
79
|
});
|
|
93
80
|
|
|
@@ -104,9 +91,9 @@ export function createAppShellConfig(
|
|
|
104
91
|
|
|
105
92
|
// Default manual chunks for optimal caching
|
|
106
93
|
const defaultManualChunks: Record<string, string[]> = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
94
|
+
'vendor-react': ['react', 'react-dom', 'react-router-dom'],
|
|
95
|
+
'vendor-apollo': ['@apollo/client', 'graphql'],
|
|
96
|
+
'vendor-ui': ['lucide-react', 'zustand'],
|
|
110
97
|
...manualChunks,
|
|
111
98
|
};
|
|
112
99
|
|
|
@@ -118,21 +105,21 @@ export function createAppShellConfig(
|
|
|
118
105
|
strictPort: true,
|
|
119
106
|
headers: {
|
|
120
107
|
// Required for OAuth popup flows and SharedArrayBuffer
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
'Cross-Origin-Opener-Policy': 'same-origin-allow-popups',
|
|
109
|
+
'Cross-Origin-Embedder-Policy': 'unsafe-none',
|
|
123
110
|
},
|
|
124
111
|
watch: {
|
|
125
112
|
ignored: [
|
|
126
113
|
...STANDARD_WATCH_IGNORE,
|
|
127
114
|
// Ignore microfrontend dist outputs
|
|
128
|
-
|
|
115
|
+
'**/microfe/*/dist/**',
|
|
129
116
|
],
|
|
130
117
|
},
|
|
131
118
|
// Allow serving files from linked packages
|
|
132
119
|
fs: {
|
|
133
120
|
allow: [
|
|
134
|
-
resolve(__dirname,
|
|
135
|
-
resolve(__dirname,
|
|
121
|
+
resolve(__dirname, '..'),
|
|
122
|
+
resolve(__dirname, '../..'),
|
|
136
123
|
resolvedFeLibsPath,
|
|
137
124
|
resolvedMicrofePath,
|
|
138
125
|
],
|
|
@@ -141,7 +128,7 @@ export function createAppShellConfig(
|
|
|
141
128
|
|
|
142
129
|
build: {
|
|
143
130
|
// Target modern browsers
|
|
144
|
-
target:
|
|
131
|
+
target: 'es2022',
|
|
145
132
|
|
|
146
133
|
// Enable source maps for production debugging
|
|
147
134
|
sourcemap: true,
|
|
@@ -156,9 +143,9 @@ export function createAppShellConfig(
|
|
|
156
143
|
manualChunks: defaultManualChunks,
|
|
157
144
|
|
|
158
145
|
// Consistent chunk naming for better caching
|
|
159
|
-
chunkFileNames:
|
|
160
|
-
entryFileNames:
|
|
161
|
-
assetFileNames:
|
|
146
|
+
chunkFileNames: 'chunks/[name]-[hash].js',
|
|
147
|
+
entryFileNames: '[name]-[hash].js',
|
|
148
|
+
assetFileNames: 'assets/[name]-[hash].[ext]',
|
|
162
149
|
},
|
|
163
150
|
},
|
|
164
151
|
|
|
@@ -172,7 +159,7 @@ export function createAppShellConfig(
|
|
|
172
159
|
...createReactSingletonAliases(nodeModulesPath),
|
|
173
160
|
|
|
174
161
|
// fe-libs source
|
|
175
|
-
|
|
162
|
+
'@burdenoff/fe-libs': resolvedFeLibsPath,
|
|
176
163
|
|
|
177
164
|
// Microfrontend sources
|
|
178
165
|
...microfeAliases,
|
|
@@ -183,47 +170,47 @@ export function createAppShellConfig(
|
|
|
183
170
|
|
|
184
171
|
// Prevent duplicate dependencies in bundle
|
|
185
172
|
dedupe: [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
173
|
+
'react',
|
|
174
|
+
'react-dom',
|
|
175
|
+
'react-router-dom',
|
|
176
|
+
'@apollo/client',
|
|
177
|
+
'graphql',
|
|
178
|
+
'zustand',
|
|
179
|
+
'@tanstack/react-query',
|
|
193
180
|
],
|
|
194
181
|
|
|
195
182
|
// Ensure correct entry point resolution
|
|
196
|
-
mainFields: [
|
|
197
|
-
conditions: [
|
|
183
|
+
mainFields: ['module', 'main', 'browser'],
|
|
184
|
+
conditions: ['import', 'module', 'default'],
|
|
198
185
|
},
|
|
199
186
|
|
|
200
187
|
// Vite 8 uses Oxc for transforms instead of esbuild
|
|
201
188
|
oxc: {
|
|
202
189
|
jsx: {
|
|
203
|
-
runtime:
|
|
190
|
+
runtime: 'automatic',
|
|
204
191
|
},
|
|
205
192
|
},
|
|
206
193
|
|
|
207
194
|
// Optimize dependencies for faster dev startup
|
|
208
195
|
optimizeDeps: {
|
|
209
196
|
include: [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
197
|
+
'react',
|
|
198
|
+
'react-dom',
|
|
199
|
+
'react-dom/client',
|
|
200
|
+
'react/jsx-runtime',
|
|
201
|
+
'react/jsx-dev-runtime',
|
|
202
|
+
'react-router-dom',
|
|
203
|
+
'react-error-boundary',
|
|
204
|
+
'@apollo/client',
|
|
205
|
+
'@apollo/client/react',
|
|
206
|
+
'@apollo/client/link/context',
|
|
207
|
+
'@apollo/client/link/error',
|
|
208
|
+
'graphql',
|
|
209
|
+
'lucide-react',
|
|
210
|
+
'zustand',
|
|
211
|
+
'sonner',
|
|
212
|
+
'clsx',
|
|
213
|
+
'tailwind-merge',
|
|
227
214
|
...optimizeDepsInclude,
|
|
228
215
|
],
|
|
229
216
|
},
|
package/src/vite/types.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @version Vite 8.0.0-beta.8+
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { Plugin } from
|
|
8
|
+
import type { Plugin } from 'vite';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Microfrontend configuration options
|
|
@@ -74,34 +74,34 @@ export interface AppShellConfig {
|
|
|
74
74
|
*/
|
|
75
75
|
export const STANDARD_MFE_EXTERNALS = [
|
|
76
76
|
// React ecosystem
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
'react',
|
|
78
|
+
'react-dom',
|
|
79
|
+
'react/jsx-runtime',
|
|
80
|
+
'react/jsx-dev-runtime',
|
|
81
|
+
'react-router-dom',
|
|
82
82
|
|
|
83
83
|
// Apollo Client
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
'@apollo/client',
|
|
85
|
+
'@apollo/client/react',
|
|
86
|
+
'@apollo/client/link/error',
|
|
87
|
+
'@apollo/client/link/retry',
|
|
88
|
+
'@apollo/client/link/context',
|
|
89
|
+
'@apollo/client/core',
|
|
90
|
+
'@apollo/client/cache',
|
|
91
|
+
'graphql',
|
|
92
92
|
|
|
93
93
|
// State management
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
'zustand',
|
|
95
|
+
'zustand/middleware',
|
|
96
96
|
|
|
97
97
|
// React Query
|
|
98
|
-
|
|
98
|
+
'@tanstack/react-query',
|
|
99
99
|
|
|
100
100
|
// Common UI
|
|
101
|
-
|
|
101
|
+
'lucide-react',
|
|
102
102
|
|
|
103
103
|
// fe-libs (provided by app shell)
|
|
104
|
-
|
|
104
|
+
'@burdenoff/fe-libs',
|
|
105
105
|
/^@burdenoff\/fe-libs\/.*/,
|
|
106
106
|
] as const;
|
|
107
107
|
|
|
@@ -109,21 +109,21 @@ export const STANDARD_MFE_EXTERNALS = [
|
|
|
109
109
|
* Standard watch ignore patterns
|
|
110
110
|
*/
|
|
111
111
|
export const STANDARD_WATCH_IGNORE = [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
112
|
+
'**/node_modules/**',
|
|
113
|
+
'**/dist/**',
|
|
114
|
+
'**/.git/**',
|
|
115
|
+
'**/coverage/**',
|
|
116
|
+
'**/.turbo/**',
|
|
117
|
+
'**/build/**',
|
|
118
|
+
'**/*.log',
|
|
119
|
+
'**/tmp/**',
|
|
120
|
+
'**/.cache/**',
|
|
121
|
+
'**/test-results/**',
|
|
122
|
+
'**/__snapshots__/**',
|
|
123
|
+
'**/.idea/**',
|
|
124
|
+
'**/.vscode/**',
|
|
125
|
+
'**/.DS_Store',
|
|
126
|
+
'**/Thumbs.db',
|
|
127
127
|
] as const;
|
|
128
128
|
|
|
129
129
|
/**
|