1. 12 Jun, 2025 1 commit
  2. 11 Jun, 2025 1 commit
  3. 20 May, 2025 2 commits
  4. 08 Apr, 2025 2 commits
  5. 07 Apr, 2025 1 commit
  6. 04 Apr, 2025 1 commit
  7. 24 Mar, 2025 2 commits
  8. 17 Mar, 2025 2 commits
  9. 11 Feb, 2025 1 commit
  10. 10 Feb, 2025 4 commits
  11. 07 Jan, 2025 3 commits
  12. 03 Jan, 2025 1 commit
  13. 26 Dec, 2024 1 commit
  14. 24 Dec, 2024 2 commits
  15. 19 Dec, 2024 2 commits
  16. 13 Dec, 2024 2 commits
  17. 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
  18. 11 Dec, 2024 1 commit
  19. 04 Dec, 2024 2 commits
  20. 03 Dec, 2024 1 commit
  21. 02 Dec, 2024 2 commits
  22. 25 Nov, 2024 1 commit
  23. 13 Nov, 2024 2 commits
  24. 07 Nov, 2024 1 commit
  25. 05 Nov, 2024 1 commit