File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1- import type { MdcConfig } from '@nuxtjs/mdc'
1+ import type { MdcConfig , ModuleOptions as MDCModuleOptions } from '@nuxtjs/mdc'
22import type { Nuxt } from '@nuxt/schema'
33import { extendViteConfig } from '@nuxt/kit'
44import { createJiti } from 'jiti'
55import type { ModuleOptions } from '../types'
66import { setParserOptions } from './content'
77
88export async function configureMDCModule ( contentOptions : ModuleOptions , nuxt : Nuxt ) {
9+ const mdcOptions = ( nuxt . options as unknown as { mdc : MDCModuleOptions } ) . mdc
10+ contentOptions . renderer . alias = {
11+ ...( mdcOptions ?. components ?. map || { } ) ,
12+ ...( contentOptions . renderer . alias || { } ) ,
13+ }
14+
915 // Hook into mdc configs and store them for parser
1016 nuxt . hook ( 'mdc:configSources' , async ( mdcConfigs ) => {
1117 if ( mdcConfigs . length ) {
You can’t perform that action at this time.
0 commit comments