chore: able to select bundler in dev
This commit is contained in:
@@ -131,12 +131,17 @@ export const getViteConfig = async (payloadConfig: SanitizedConfig): Promise<Inl
|
||||
// TODO: need to handle this better. This is overly simple.
|
||||
if (source.startsWith('.')) {
|
||||
fullSourcePath = path.resolve(path.dirname(importer), source)
|
||||
}
|
||||
|
||||
if (fullSourcePath) {
|
||||
const aliasMatch = absoluteAliases[fullSourcePath]
|
||||
if (aliasMatch) {
|
||||
return aliasMatch
|
||||
if (fullSourcePath) {
|
||||
const exactMatch = absoluteAliases[fullSourcePath]
|
||||
if (exactMatch) return exactMatch
|
||||
|
||||
const indexMatch = absoluteAliases[`${fullSourcePath}/index`]
|
||||
if (indexMatch) return indexMatch
|
||||
|
||||
const withoutFileExtensionMatch =
|
||||
absoluteAliases[`${fullSourcePath.replace(/\.[^/.]+$/, '')}`]
|
||||
if (withoutFileExtensionMatch) return withoutFileExtensionMatch
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@ export { default as BlockSearch } from '../../../admin/components/forms/field-ty
|
||||
export type { Props as BlocksDrawerProps } from '../../../admin/components/forms/field-types/Blocks/BlocksDrawer/types'
|
||||
export { RowActions } from '../../../admin/components/forms/field-types/Blocks/RowActions'
|
||||
export { default as SectionTitle } from '../../../admin/components/forms/field-types/Blocks/SectionTitle/index'
|
||||
export { Props as SectionTitleProps } from '../../../admin/components/forms/field-types/Blocks/SectionTitle/types'
|
||||
export type { Props as SectionTitleProps } from '../../../admin/components/forms/field-types/Blocks/SectionTitle/types'
|
||||
export type { Props } from '../../../admin/components/forms/field-types/Blocks/types'
|
||||
|
||||
@@ -62,10 +62,12 @@ export function createLexical({
|
||||
export { BlockQuoteFeature } from './field/features/BlockQuote'
|
||||
export { BlocksFeature } from './field/features/Blocks'
|
||||
export { HeadingFeature } from './field/features/Heading'
|
||||
export { LinkFeature, LinkFeatureProps } from './field/features/Link'
|
||||
export { LinkFeature } from './field/features/Link'
|
||||
export type { LinkFeatureProps } from './field/features/Link'
|
||||
export { ParagraphFeature } from './field/features/Paragraph'
|
||||
export { RelationshipFeature } from './field/features/Relationship'
|
||||
export { UploadFeature, UploadFeatureProps } from './field/features/Upload'
|
||||
export { UploadFeature } from './field/features/Upload'
|
||||
export type { UploadFeatureProps } from './field/features/Upload'
|
||||
export { AlignFeature } from './field/features/align'
|
||||
export { TextDropdownSectionWithEntries } from './field/features/common/floatingSelectToolbarTextDropdownSection'
|
||||
export { TreeviewFeature } from './field/features/debug/TreeView'
|
||||
@@ -82,7 +84,7 @@ export { CheckListFeature } from './field/features/lists/CheckList'
|
||||
export { OrderedListFeature } from './field/features/lists/OrderedList'
|
||||
export { UnoderedListFeature } from './field/features/lists/UnorderedList'
|
||||
|
||||
export {
|
||||
export type {
|
||||
Feature,
|
||||
FeatureProvider,
|
||||
FeatureProviderMap,
|
||||
|
||||
Reference in New Issue
Block a user