Skip to content

Commit 1ef3ab3

Browse files
authored
fix: load inlinesvg with esm (#2656)
1 parent 9e3c72d commit 1ef3ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/Icon/CustomSvgIcon/CustomSvgIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const CustomSvgIcon: FunctionComponent<CustomSvgIconProps> = ({
5656
if (typeof src !== "string") return null;
5757

5858
// eslint-disable-next-line @typescript-eslint/no-explicit-any
59-
const SVGComponent = (SVG.default || SVG) as React.FC<any>;
59+
const SVGComponent = (SVG.default || SVG) as React.FC<any>; // fix esm issue
6060

6161
const PlaceHolder = <div className={className} id={id}></div>;
6262

0 commit comments

Comments
 (0)