fix lodash-es/* imports causing crash on astro

This commit is contained in:
dswbx
2024-12-04 14:47:52 +01:00
parent c54455870c
commit f3619bee26
2 changed files with 2 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import type {
ValidatorType ValidatorType
} from "@rjsf/utils"; } from "@rjsf/utils";
import { toErrorSchema } from "@rjsf/utils"; import { toErrorSchema } from "@rjsf/utils";
import get from "lodash-es/get"; import { get } from "lodash-es";
function removeUndefinedKeys(obj: any): any { function removeUndefinedKeys(obj: any): any {
if (!obj) return obj; if (!obj) return obj;

View File

@@ -14,9 +14,7 @@ import {
getWidget, getWidget,
mergeSchemas mergeSchemas
} from "@rjsf/utils"; } from "@rjsf/utils";
import get from "lodash-es/get"; import { get, isEmpty, omit } from "lodash-es";
import isEmpty from "lodash-es/isEmpty";
import omit from "lodash-es/omit";
import { Component } from "react"; import { Component } from "react";
import { twMerge } from "tailwind-merge"; import { twMerge } from "tailwind-merge";
import { Label } from "../templates/FieldTemplate"; import { Label } from "../templates/FieldTemplate";