Skip to content

mdxComponent works in dev but not on build #245

Closed
@JonathanLorimer

Description

I have a bunch of mdx components globally overridden like so:

  mdxComponents(){
    return {
      p: Paragraph,
      a: Anchor,
      h1: H1,
      h2: H2,
      ul: UnorderedList,
      ol: OrderedList,
      li: ListItem,
      b: Bold,
      strong: Bold,
      blockquote: Blockquote,
      em: Italic,
      img: Image,
    }
  }

and that shows up in dev but not in prod. Note I do have scoped stylesheets in those components, which seem to not be applying. Is that expected?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions