Skip to content

Commit

Permalink
Fix markdoc smoke fail
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 5, 2023
1 parent d237a33 commit f8d0bdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-nails-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdoc': patch
---

Handle internal access change
5 changes: 4 additions & 1 deletion packages/integrations/markdoc/components/TreeNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export const ComponentNode = createComponent({
);

// Let the runtime know that this component is being used.
result.propagators.set(
// `result.propagators` has been moved to `result._metadata.propagators`
// TODO: remove this fallback in the next markdoc integration major
const propagators = result._metadata.propagators || result.propagators;
propagators.set(
{},
{
init() {
Expand Down

0 comments on commit f8d0bdc

Please sign in to comment.