diff --git a/.changeset/shiny-steaks-whisper.md b/.changeset/shiny-steaks-whisper.md new file mode 100644 index 0000000000..3f3e1d88d7 --- /dev/null +++ b/.changeset/shiny-steaks-whisper.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-toggle": patch +--- + +Fix `lodash.last` import diff --git a/packages/toggle/src/queries/getLastEntryEnclosedInToggle.ts b/packages/toggle/src/queries/getLastEntryEnclosedInToggle.ts index 373262da2b..cb756a26a4 100644 --- a/packages/toggle/src/queries/getLastEntryEnclosedInToggle.ts +++ b/packages/toggle/src/queries/getLastEntryEnclosedInToggle.ts @@ -1,5 +1,5 @@ import { PlateEditor, TNodeEntry, Value } from '@udecode/plate-common'; -import last from 'lodash/last'; +import last from 'lodash/last.js'; import { buildToggleIndex } from '../toggle-controller-store';