aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
15.89k stars 558 forks source link

Million Lint with Next: Respecting functions that returns the config #1016

Closed AmrTamer23 closed 2 months ago

AmrTamer23 commented 2 months ago

What version of million are you using?

none Million Lint: ^0.0.73

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

yarn

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the Bug

After adding Million Lint to my next project it couldn't build, due to not respecting the withMDX function from @next/mdx,

module.exports = MillionLint.next({
  rsc: true
})(withMDX(nextConfig));

and this is the error image

What's the expected result?

I fixed it with calling the Million Lint function inside the withMDX function like this

module.exports = withMDX(
  MillionLint.next({
    rsc: true,
  })(nextConfig)
);

Link to Minimal Reproducible Example

None

Participation

github-actions[bot] commented 2 months ago

Thanks for opening this issue! A maintainer will review it soon.

tobySolutions commented 2 months ago

Thank you very much for reporting this here @AmrTamer23, I will report this to the team and they'll take a look at it.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.