Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[edge] favor browser exports for edge compiler #38319

Merged

Commits on Jul 5, 2022

  1. [edge] favor browser exports for edge compiler

    this is a regression from the previous implementation where Next.js compiled Middleware using
    the client compiler. We used to favor the browser exports over the `module` and `main`,
    which allowed packages like `debug` to work without any changes on Edge Functions. This is
    no longer the case, and this commit fixes that.
    
    Side note: I believe that in the future we will also have a different key to symbolize edge
    deployments. Maybe it will be `winter` to refer to WinterCG, but only time will tell!
    Schniz committed Jul 5, 2022
    Configuration menu
    Copy the full SHA
    4152967 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    808e131 View commit details
    Browse the repository at this point in the history