feat(richtext-lexical)!: move migration related features to /migrate subpath export in order to decrease module count when those are not used (#7660)

This lowers the module count by 31 modules

BREAKING: Migration-related lexical modules are now exported from
`@payloadcms/richtext-lexical/migrate` instead of
`@payloadcms/richtext-lexical`
This commit is contained in:
Alessio Gravili
2024-08-13 16:20:05 -04:00
committed by GitHub
parent 78e55d61be
commit a19263245f
5 changed files with 39 additions and 26 deletions

View File

@@ -2,14 +2,16 @@ import type { CollectionConfig } from 'payload'
import {
HTMLConverterFeature,
LexicalPluginToLexicalFeature,
LinkFeature,
SlateToLexicalFeature,
TreeViewFeature,
UploadFeature,
lexicalEditor,
lexicalHTML,
} from '@payloadcms/richtext-lexical'
import {
LexicalPluginToLexicalFeature,
SlateToLexicalFeature,
} from '@payloadcms/richtext-lexical/migrate'
import { lexicalMigrateFieldsSlug } from '../../slugs.js'
import { getSimpleLexicalData } from './data.js'