1. 07 Jan, 2025 3 commits
  2. 03 Jan, 2025 1 commit
  3. 26 Dec, 2024 1 commit
  4. 24 Dec, 2024 2 commits
  5. 19 Dec, 2024 2 commits
  6. 13 Dec, 2024 2 commits
  7. 12 Dec, 2024 1 commit
    • Hendrik Liebau's avatar
      Backport: Fix `unstable_allowDynamic` when used with pnpm (#73765) · 049a6907
      Hendrik Liebau authored
      > [!NOTE]
      > This is a backport of #73732 for Next.js 14.
      
      When using dependencies in Middleware that make use of dynamic code
      evaluation, Next.js emits a build error because this is not supported in
      the Edge runtime.
      
      In rare cases, when the code can not be reached at runtime and can't be
      removed by tree-shaking, users might opt in to using the
      `unstable_allowDynamic` config.
      
      When combined with pnpm, the provided glob patterns as documented at
      https://nextjs.org/docs/messages/edge-dynamic-code-evaluation#possible-ways-to-fix-it
      did not match correctly because of pnpm's use of the `.pnpm` directory.
      
      To fix the pattern matching, we need to provide the `dot` option to
      [picomatch](https://github.com/micromatch/picomatch), which enables
      dotfile matching.
      
      _Side note: Ideally we would detect dynamic code evaluation after tree
      shaking, to reduce the number of cases where users need to revert to
      using `unstable_allowDynamic`._
      
      fixes #51401
      049a6907
  8. 11 Dec, 2024 1 commit
  9. 04 Dec, 2024 2 commits
  10. 03 Dec, 2024 1 commit
  11. 02 Dec, 2024 2 commits
  12. 25 Nov, 2024 1 commit
  13. 13 Nov, 2024 2 commits
  14. 07 Nov, 2024 1 commit
  15. 05 Nov, 2024 5 commits
  16. 30 Oct, 2024 1 commit
  17. 23 Oct, 2024 1 commit
  18. 10 Oct, 2024 1 commit
  19. 08 Oct, 2024 2 commits
  20. 06 Oct, 2024 1 commit
  21. 05 Oct, 2024 1 commit
  22. 04 Oct, 2024 5 commits
  23. 01 Oct, 2024 1 commit