-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mdx-loader): upgrade to MDX v3 + (#9451)
- Loading branch information
Showing
49 changed files
with
42,734 additions
and
35,852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,16 +86,20 @@ export default { | |
// MDX packages are ESM-only and it is a pain to use in Jest | ||
// So we use them in Jest tests as CJS versions | ||
// see https://mdxjs.com/docs/troubleshooting-mdx/#problems-integrating-mdx | ||
'^unified$': '<rootDir>/jest/vendor/[email protected].js', | ||
'^@mdx-js/mdx$': '<rootDir>/jest/vendor/@[email protected].js', | ||
'^remark$': '<rootDir>/jest/vendor/remark@14.0.2.js', | ||
'^remark-mdx$': '<rootDir>/jest/vendor/remark-mdx@2.1.5.js', | ||
'^remark-directive$': '<rootDir>/jest/vendor/remark-directive@2.0.1.js', | ||
'^remark-gfm$': '<rootDir>/jest/vendor/remark-gfm@3.0.1.js', | ||
'^@mdx-js/mdx$': '<rootDir>/jest/vendor/@[email protected].js', | ||
'^remark$': '<rootDir>/jest/vendor/[email protected].js', | ||
'^remark-rehype$': '<rootDir>/jest/vendor/remark-rehype@11.0.0.js', | ||
'^remark-mdx$': '<rootDir>/jest/vendor/remark-mdx@3.0.0.js', | ||
'^remark-directive$': '<rootDir>/jest/vendor/remark-directive@3.0.0.js', | ||
'^remark-gfm$': '<rootDir>/jest/vendor/remark-gfm@4.0.0.js', | ||
'^estree-util-value-to-estree$': | ||
'<rootDir>/jest/vendor/estree-util-value-to-estree@2.1.0.js', | ||
'<rootDir>/jest/vendor/estree-util-value-to-estree@3.0.1.js', | ||
'^mdast-util-to-string$': | ||
'<rootDir>/jest/vendor/[email protected]', | ||
'<rootDir>/jest/vendor/[email protected]', | ||
'^unist-util-visit$': '<rootDir>/jest/vendor/[email protected]', | ||
'^unist-util-remove-position$': | ||
'<rootDir>/jest/vendor/[email protected]', | ||
'^rehype-stringify$': '<rootDir>/jest/vendor/[email protected]', | ||
}, | ||
snapshotSerializers: [ | ||
'<rootDir>/jest/snapshotPathNormalizer.ts', | ||
|
31,033 changes: 17,035 additions & 13,998 deletions
31,033
jest/vendor/@[email protected] → jest/vendor/@[email protected]
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.