Skip to content

Commit

Permalink
Fix var reference
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed May 15, 2023
1 parent b569f03 commit 672639a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/markdoc/src/index.ts
Expand Up @@ -156,7 +156,7 @@ export const Content = createComponent({
// When a given Markdoc file actually uses that component.
// Add the `astroPropagatedAssets` flag to inject only when rendered.
resolveId(this: rollup.TransformPluginContext, id: string, importer: string) {
if (importer === configLoadResult?.fileUrl.pathname && id.endsWith('.astro')) {
if (importer === markdocConfigResult?.fileUrl.pathname && id.endsWith('.astro')) {
return this.resolve(id + '?astroPropagatedAssets', importer, {
skipSelf: true,
});
Expand Down

0 comments on commit 672639a

Please sign in to comment.