Skip to content

Commit

Permalink
last bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Nov 26, 2023
1 parent 9e67254 commit 2fc89e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 4 additions & 6 deletions packages/ui/app/src/commons/BlueprintIcon.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import dynamic from "next/dynamic";

export const BlueprintIcon = dynamic(
() => import("@blueprintjs/core/lib/esm/components/icon/icon").then(({ Icon }) => Icon),
{
ssr: false,
}
);
// TODO: delete blueprint icons to reduce bundle size
export const BlueprintIcon = dynamic(() => import("@blueprintjs/core").then(({ Icon }) => Icon), {
ssr: false,
});
6 changes: 1 addition & 5 deletions packages/ui/app/src/mdx/MdxErrorBoundaryContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import { IconNames } from "@blueprintjs/icons";
import dynamic from "next/dynamic";
import React, { useMemo } from "react";

const NonIdealState = dynamic(() =>
import("@blueprintjs/core/lib/esm/components/non-ideal-state/nonIdealState").then(
({ NonIdealState }) => NonIdealState
)
);
const NonIdealState = dynamic(() => import("@blueprintjs/core").then(({ NonIdealState }) => NonIdealState));

export declare namespace MdxErrorBoundaryContent {
export interface Props {
Expand Down

0 comments on commit 2fc89e6

Please sign in to comment.