docs: Add workaround comment for Markdoc export issue
This commit is contained in:
parent
ef64469637
commit
9ebf7f1cf7
@ -5,6 +5,9 @@ import Markdoc from "@markdoc/markdoc";
|
|||||||
|
|
||||||
type TagAttributesValue = string | number | boolean | null | undefined | object | unknown;
|
type TagAttributesValue = string | number | boolean | null | undefined | object | unknown;
|
||||||
|
|
||||||
|
// Workaround for Markdoc, that's not exporting the type
|
||||||
|
// in production build (Vite issue).
|
||||||
|
// See: https://stackoverflow.com/questions/76191154/the-requested-module-does-not-provide-an-export-named-default
|
||||||
const { Tag: MarkdocTag } = Markdoc;
|
const { Tag: MarkdocTag } = Markdoc;
|
||||||
|
|
||||||
export class Tag extends MarkdocTag {
|
export class Tag extends MarkdocTag {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user