Closed andrewplummer closed 2 years ago
# yarn 1
yarn add https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-mdx https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-plugin-mdx
# yarn 2, 3
yarn add eslint-mdx@https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-mdx/_pkg.tgz eslint-plugin-mdx@https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-plugin-mdx/_pkg.tgz
# npm
npm i https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-mdx https://pkg.csb.dev/mdx-js/eslint-mdx/commit/2c6fb0e5/eslint-plugin-mdx
Please help us to test the fresh new version.
@andrewplummer Have you tried the next major version above?
Just tried it out, I'm seeing various other errors like xxx is defined but never used
and interop with imports plugin but ignoring that as it might require extra config.
The performance issue seems to be fixed though! 👍
Thanks for clarify.
Initial checklist
Affected packages and versions
eslint-plugin-mdx:1.17.0
Link to runnable example
No response
Steps to reproduce
The following specific code seems to cause mdx parsing to become extremely slow:
It seems to be explosive, ie adding and removing
<Popup ... />
elements affects the time exponentially.What is interesting is wrapping everything in a surround
<div>
makes the issue go away, it becomes fast again.Expected behavior
Should be fast.
Actual behavior
Is exceptionally slow in one case only.
Runtime
Node v16
Package manager
yarn v1
OS
macOS
Build and bundle tools
No response