Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows paths #55

Closed
wants to merge 1 commit into from
Closed

Conversation

jmfury
Copy link
Contributor

@jmfury jmfury commented Feb 13, 2023

Building on #37 (👏) and as mentioned in #54 this PR supports Windows paths with a simple regex

Main differences from #37 are the following (since it is up to date w/ main):

  • We're now only calling this.addContextDependency once as opposed to previous per component approach
  • component.path is also normalized within the template literal (within generateMetadataFile function)

Examples are now working for me locally on Windows

image

📌 Note

We did have a super simple util function on next-mdx-enhanced for this sort of thing. Let me know if that is preferred!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant