Skip to content

Commit

Permalink
feat(remix-dev): set handle from frontmatter in MDX files
Browse files Browse the repository at this point in the history
Fixes #4864.
  • Loading branch information
lpsinger committed Dec 14, 2022
1 parent 1247f4b commit f961b2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/remix-dev/compiler/plugins/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function mdxPlugin(config: RemixConfig): esbuild.Plugin {
export const filename = ${JSON.stringify(path.basename(args.path))};
export const headers = typeof attributes !== "undefined" && attributes.headers;
export const meta = typeof attributes !== "undefined" && attributes.meta;
export const handle = typeof attributes !== "undefined" && attributes.handle;
`;

let compiled = await xdm.compile(fileContents, {
Expand Down

0 comments on commit f961b2c

Please sign in to comment.