Skip to content

Commit

Permalink
fix(dev): fix MDX types when using pnpm (#7491)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Sep 20, 2023
1 parent 8d68212 commit c105a1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fix-mdx-types-for-pnpm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Fix types for MDX files when using pnpm
4 changes: 2 additions & 2 deletions packages/remix-dev/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ declare module "*.jpg" {
export default asset;
}
declare module "*.md" {
import "mdx/types";
import "mdx";
export let attributes: any;
export let filename: string;
}
declare module "*.mdx" {
import "mdx/types";
import "mdx";
export let attributes: any;
export let filename: string;
}
Expand Down

0 comments on commit c105a1d

Please sign in to comment.