Skip to content

Commit

Permalink
chore: update size-limit config (#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Dec 13, 2024
1 parent c3fcf07 commit 31321f9
Showing 2 changed files with 24 additions and 10 deletions.
15 changes: 5 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -158,18 +158,13 @@
"size-limit": [
{
"path": "lib/components/internal/plugins/index.js",
"limit": "2.5 kB"
"brotli": false,
"limit": "11 kB"
},
{
"path": [
"lib/components/app-layout/visual-refresh-toolbar/exports.js",
"lib/components/split-panel/implementation.js",
"lib/components/breadcrumb-group/implementation.js",
"lib/components/drawer/implementation.js",
"lib/components/side-navigation/implementation.js",
"lib/components/help-panel/implementation.js"
],
"limit": "140 kB"
"path": "lib/components/internal/widget-exports.js",
"brotli": false,
"limit": "795 kB"
}
],
"browserslist": [
19 changes: 19 additions & 0 deletions src/internal/widget-exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
export { PACKAGE_VERSION } from './environment';
export {
AppLayoutDrawerImplementation as AppLayoutDrawer,
AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers,
} from '../app-layout/visual-refresh-toolbar/drawer';
export { AppLayoutNavigationImplementation as AppLayoutNavigation } from '../app-layout/visual-refresh-toolbar/navigation';
export { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../app-layout/visual-refresh-toolbar/notifications';
export {
AppLayoutSplitPanelDrawerBottomImplementation as AppLayoutSplitPanelBottom,
AppLayoutSplitPanelDrawerSideImplementation as AppLayoutSplitPanelSide,
} from '../app-layout/visual-refresh-toolbar/split-panel';
export { AppLayoutToolbarImplementation as AppLayoutToolbar } from '../app-layout/visual-refresh-toolbar/toolbar';
export { SplitPanelImplementation as SplitPanel } from '../split-panel/implementation';
export { BreadcrumbGroupImplementation as BreadcrumbGroup } from '../breadcrumb-group/implementation';
export { DrawerImplementation as Drawer } from '../drawer/implementation';
export { SideNavigationImplementation as SideNavigation } from '../side-navigation/implementation';
export { HelpPanelImplementation as HelpPanel } from '../help-panel/implementation';

0 comments on commit 31321f9

Please sign in to comment.