@burdenoff/fe-libs 2026.516.2 → 2026.518.2
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/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/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/plugins.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* @version Vite 8.0.0-beta.8+
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { Plugin } from
|
|
9
|
-
import { resolve } from
|
|
8
|
+
import type { Plugin } from 'vite';
|
|
9
|
+
import { resolve } from 'path';
|
|
10
10
|
|
|
11
11
|
interface ContextualAliasOptions {
|
|
12
12
|
/** Path to fe-libs/src */
|
|
@@ -35,18 +35,16 @@ interface ContextualAliasOptions {
|
|
|
35
35
|
* ]
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export function createContextualAliasPlugin(
|
|
39
|
-
options: ContextualAliasOptions,
|
|
40
|
-
): Plugin {
|
|
38
|
+
export function createContextualAliasPlugin(options: ContextualAliasOptions): Plugin {
|
|
41
39
|
const { feLibsPath, srcPath, microfePaths = {} } = options;
|
|
42
40
|
|
|
43
41
|
return {
|
|
44
|
-
name:
|
|
45
|
-
enforce:
|
|
42
|
+
name: 'burdenoff:contextual-alias',
|
|
43
|
+
enforce: 'pre',
|
|
46
44
|
|
|
47
45
|
async resolveId(source, importer, resolveOptions) {
|
|
48
46
|
// Only handle @/ imports
|
|
49
|
-
if (!source.startsWith(
|
|
47
|
+
if (!source.startsWith('@/')) {
|
|
50
48
|
return null;
|
|
51
49
|
}
|
|
52
50
|
|
|
@@ -59,7 +57,7 @@ export function createContextualAliasPlugin(
|
|
|
59
57
|
let basePath: string;
|
|
60
58
|
|
|
61
59
|
// Determine base path based on importer location
|
|
62
|
-
if (importer.includes(
|
|
60
|
+
if (importer.includes('fe-libs')) {
|
|
63
61
|
// Importer is from fe-libs, resolve to fe-libs/src
|
|
64
62
|
basePath = feLibsPath;
|
|
65
63
|
} else {
|
|
@@ -103,14 +101,14 @@ export function createContextualAliasPlugin(
|
|
|
103
101
|
*/
|
|
104
102
|
export function createAdaptiveExpressionsFix(): Plugin {
|
|
105
103
|
return {
|
|
106
|
-
name:
|
|
107
|
-
enforce:
|
|
104
|
+
name: 'burdenoff:adaptive-expressions-fix',
|
|
105
|
+
enforce: 'pre',
|
|
108
106
|
|
|
109
107
|
resolveId(source) {
|
|
110
108
|
// Force correct resolution for adaptive-expressions
|
|
111
|
-
if (source ===
|
|
109
|
+
if (source === 'adaptive-expressions') {
|
|
112
110
|
return {
|
|
113
|
-
id:
|
|
111
|
+
id: 'adaptive-expressions/lib/index.js',
|
|
114
112
|
external: false,
|
|
115
113
|
};
|
|
116
114
|
}
|
|
@@ -130,15 +128,13 @@ export function createAdaptiveExpressionsFix(): Plugin {
|
|
|
130
128
|
* plugins: [createReactSingletonPlugin(resolve(__dirname, 'node_modules'))]
|
|
131
129
|
* ```
|
|
132
130
|
*/
|
|
133
|
-
export function createReactSingletonAliases(
|
|
134
|
-
nodeModulesPath: string,
|
|
135
|
-
): Record<string, string> {
|
|
131
|
+
export function createReactSingletonAliases(nodeModulesPath: string): Record<string, string> {
|
|
136
132
|
return {
|
|
137
|
-
react: resolve(nodeModulesPath,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
react: resolve(nodeModulesPath, 'react'),
|
|
134
|
+
'react-dom': resolve(nodeModulesPath, 'react-dom'),
|
|
135
|
+
'react-dom/client': resolve(nodeModulesPath, 'react-dom/client'),
|
|
136
|
+
'react/jsx-runtime': resolve(nodeModulesPath, 'react/jsx-runtime'),
|
|
137
|
+
'react/jsx-dev-runtime': resolve(nodeModulesPath, 'react/jsx-dev-runtime'),
|
|
142
138
|
};
|
|
143
139
|
}
|
|
144
140
|
|
|
@@ -151,40 +147,31 @@ export function createReactSingletonAliases(
|
|
|
151
147
|
*/
|
|
152
148
|
export function createNodeShimAliases(
|
|
153
149
|
feLibsShimsPath: string,
|
|
154
|
-
srcPath?: string
|
|
150
|
+
srcPath?: string
|
|
155
151
|
): Record<string, string> {
|
|
156
152
|
const shimsPath = srcPath ?? feLibsShimsPath;
|
|
157
153
|
return {
|
|
158
|
-
assert: resolve(feLibsShimsPath,
|
|
159
|
-
util: resolve(feLibsShimsPath,
|
|
160
|
-
process: resolve(feLibsShimsPath,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"use-sync-external-store/shim/index": resolve(
|
|
166
|
-
shimsPath,
|
|
167
|
-
"use-sync-external-store-shim.ts",
|
|
168
|
-
),
|
|
169
|
-
"use-sync-external-store/shim/index.js": resolve(
|
|
154
|
+
assert: resolve(feLibsShimsPath, 'assert.ts'),
|
|
155
|
+
util: resolve(feLibsShimsPath, 'util.ts'),
|
|
156
|
+
process: resolve(feLibsShimsPath, 'process.ts'),
|
|
157
|
+
'use-sync-external-store/shim': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
158
|
+
'use-sync-external-store/shim/index': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
159
|
+
'use-sync-external-store/shim/index.js': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
160
|
+
'use-sync-external-store/with-selector': resolve(
|
|
170
161
|
shimsPath,
|
|
171
|
-
|
|
162
|
+
'use-sync-external-store-with-selector.ts'
|
|
172
163
|
),
|
|
173
|
-
|
|
164
|
+
'use-sync-external-store/with-selector.js': resolve(
|
|
174
165
|
shimsPath,
|
|
175
|
-
|
|
166
|
+
'use-sync-external-store-with-selector.ts'
|
|
176
167
|
),
|
|
177
|
-
|
|
168
|
+
'use-sync-external-store/shim/with-selector': resolve(
|
|
178
169
|
shimsPath,
|
|
179
|
-
|
|
170
|
+
'use-sync-external-store-with-selector.ts'
|
|
180
171
|
),
|
|
181
|
-
|
|
172
|
+
'use-sync-external-store/shim/with-selector.js': resolve(
|
|
182
173
|
shimsPath,
|
|
183
|
-
|
|
184
|
-
),
|
|
185
|
-
"use-sync-external-store/shim/with-selector.js": resolve(
|
|
186
|
-
shimsPath,
|
|
187
|
-
"use-sync-external-store-with-selector.ts",
|
|
174
|
+
'use-sync-external-store-with-selector.ts'
|
|
188
175
|
),
|
|
189
176
|
};
|
|
190
177
|
}
|
|
@@ -196,68 +183,41 @@ export function createNodeShimAliases(
|
|
|
196
183
|
* @param nodeModulesPath - Path to the app's node_modules
|
|
197
184
|
* @param shimsPath - Path to the shims directory for use-sync-external-store
|
|
198
185
|
*/
|
|
199
|
-
export function createZustandEsmPlugin(
|
|
200
|
-
nodeModulesPath: string,
|
|
201
|
-
shimsPath: string,
|
|
202
|
-
): Plugin {
|
|
186
|
+
export function createZustandEsmPlugin(nodeModulesPath: string, shimsPath: string): Plugin {
|
|
203
187
|
const zustandEsmMap: Record<string, string> = {
|
|
204
|
-
zustand: resolve(nodeModulesPath,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
),
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"zustand/esm/vanilla/shallow.mjs",
|
|
218
|
-
),
|
|
219
|
-
"zustand/react": resolve(nodeModulesPath, "zustand/esm/react.mjs"),
|
|
220
|
-
"zustand/react/shallow": resolve(
|
|
221
|
-
nodeModulesPath,
|
|
222
|
-
"zustand/esm/react/shallow.mjs",
|
|
223
|
-
),
|
|
224
|
-
"zustand/traditional": resolve(
|
|
225
|
-
nodeModulesPath,
|
|
226
|
-
"zustand/esm/traditional.mjs",
|
|
227
|
-
),
|
|
228
|
-
"use-sync-external-store/shim": resolve(
|
|
229
|
-
shimsPath,
|
|
230
|
-
"use-sync-external-store-shim.ts",
|
|
231
|
-
),
|
|
232
|
-
"use-sync-external-store/shim/index": resolve(
|
|
233
|
-
shimsPath,
|
|
234
|
-
"use-sync-external-store-shim.ts",
|
|
235
|
-
),
|
|
236
|
-
"use-sync-external-store/shim/index.js": resolve(
|
|
237
|
-
shimsPath,
|
|
238
|
-
"use-sync-external-store-shim.ts",
|
|
239
|
-
),
|
|
240
|
-
"use-sync-external-store/with-selector": resolve(
|
|
188
|
+
zustand: resolve(nodeModulesPath, 'zustand/esm/index.mjs'),
|
|
189
|
+
'zustand/vanilla': resolve(nodeModulesPath, 'zustand/esm/vanilla.mjs'),
|
|
190
|
+
'zustand/middleware': resolve(nodeModulesPath, 'zustand/esm/middleware.mjs'),
|
|
191
|
+
'zustand/middleware/immer': resolve(nodeModulesPath, 'zustand/esm/middleware/immer.mjs'),
|
|
192
|
+
'zustand/shallow': resolve(nodeModulesPath, 'zustand/esm/shallow.mjs'),
|
|
193
|
+
'zustand/vanilla/shallow': resolve(nodeModulesPath, 'zustand/esm/vanilla/shallow.mjs'),
|
|
194
|
+
'zustand/react': resolve(nodeModulesPath, 'zustand/esm/react.mjs'),
|
|
195
|
+
'zustand/react/shallow': resolve(nodeModulesPath, 'zustand/esm/react/shallow.mjs'),
|
|
196
|
+
'zustand/traditional': resolve(nodeModulesPath, 'zustand/esm/traditional.mjs'),
|
|
197
|
+
'use-sync-external-store/shim': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
198
|
+
'use-sync-external-store/shim/index': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
199
|
+
'use-sync-external-store/shim/index.js': resolve(shimsPath, 'use-sync-external-store-shim.ts'),
|
|
200
|
+
'use-sync-external-store/with-selector': resolve(
|
|
241
201
|
shimsPath,
|
|
242
|
-
|
|
202
|
+
'use-sync-external-store-with-selector.ts'
|
|
243
203
|
),
|
|
244
|
-
|
|
204
|
+
'use-sync-external-store/with-selector.js': resolve(
|
|
245
205
|
shimsPath,
|
|
246
|
-
|
|
206
|
+
'use-sync-external-store-with-selector.ts'
|
|
247
207
|
),
|
|
248
|
-
|
|
208
|
+
'use-sync-external-store/shim/with-selector': resolve(
|
|
249
209
|
shimsPath,
|
|
250
|
-
|
|
210
|
+
'use-sync-external-store-with-selector.ts'
|
|
251
211
|
),
|
|
252
|
-
|
|
212
|
+
'use-sync-external-store/shim/with-selector.js': resolve(
|
|
253
213
|
shimsPath,
|
|
254
|
-
|
|
214
|
+
'use-sync-external-store-with-selector.ts'
|
|
255
215
|
),
|
|
256
216
|
};
|
|
257
217
|
|
|
258
218
|
return {
|
|
259
|
-
name:
|
|
260
|
-
enforce:
|
|
219
|
+
name: 'burdenoff:zustand-esm',
|
|
220
|
+
enforce: 'pre',
|
|
261
221
|
resolveId(source) {
|
|
262
222
|
if (source in zustandEsmMap) {
|
|
263
223
|
return zustandEsmMap[source];
|
|
@@ -273,39 +233,39 @@ export function createZustandEsmPlugin(
|
|
|
273
233
|
*/
|
|
274
234
|
export function createManualChunks(id: string): string | undefined {
|
|
275
235
|
if (
|
|
276
|
-
id.includes(
|
|
277
|
-
id.includes(
|
|
278
|
-
id.includes(
|
|
279
|
-
id.includes(
|
|
236
|
+
id.includes('node_modules/react-dom') ||
|
|
237
|
+
id.includes('node_modules/react/') ||
|
|
238
|
+
id.includes('node_modules/react-router') ||
|
|
239
|
+
id.includes('node_modules/react-error-boundary')
|
|
280
240
|
) {
|
|
281
|
-
return
|
|
241
|
+
return 'vendor-react';
|
|
282
242
|
}
|
|
283
243
|
if (
|
|
284
|
-
id.includes(
|
|
285
|
-
id.includes(
|
|
286
|
-
id.includes(
|
|
244
|
+
id.includes('node_modules/@apollo/client') ||
|
|
245
|
+
id.includes('node_modules/graphql') ||
|
|
246
|
+
id.includes('node_modules/graphql-ws')
|
|
287
247
|
) {
|
|
288
|
-
return
|
|
248
|
+
return 'vendor-apollo';
|
|
289
249
|
}
|
|
290
250
|
if (
|
|
291
|
-
id.includes(
|
|
292
|
-
id.includes(
|
|
293
|
-
id.includes(
|
|
251
|
+
id.includes('node_modules/lucide-react') ||
|
|
252
|
+
id.includes('node_modules/sonner') ||
|
|
253
|
+
id.includes('node_modules/cmdk')
|
|
294
254
|
) {
|
|
295
|
-
return
|
|
255
|
+
return 'vendor-ui';
|
|
296
256
|
}
|
|
297
|
-
if (id.includes(
|
|
298
|
-
return
|
|
257
|
+
if (id.includes('node_modules/@radix-ui')) {
|
|
258
|
+
return 'vendor-radix';
|
|
299
259
|
}
|
|
300
260
|
if (
|
|
301
|
-
id.includes(
|
|
302
|
-
id.includes(
|
|
303
|
-
id.includes(
|
|
261
|
+
id.includes('node_modules/react-hook-form') ||
|
|
262
|
+
id.includes('node_modules/@hookform') ||
|
|
263
|
+
id.includes('node_modules/zod')
|
|
304
264
|
) {
|
|
305
|
-
return
|
|
265
|
+
return 'vendor-forms';
|
|
306
266
|
}
|
|
307
|
-
if (id.includes(
|
|
308
|
-
return
|
|
267
|
+
if (id.includes('node_modules/date-fns')) {
|
|
268
|
+
return 'vendor-datefns';
|
|
309
269
|
}
|
|
310
270
|
return undefined;
|
|
311
271
|
}
|
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
|
/**
|