next.js
f4e6dea1 - build: fix externals resolution when importing from next/dist (#55269)

Commit
2 years ago
build: fix externals resolution when importing from next/dist (#55269) This fixes a "bug" where Sentry was trying to access some of the internal async storages and it would fail because their imports would be compiled as-is instead of using the special rules for Next externals as we are short-cutting it for `next/dist` requests for some reason. Not a bug per se because this is technically an undocumented API but I think it's a reasonable fix since we don't provide an API for that. The alternative for them would be to try to play around with the bundling, which is not a good use of anyone's time.
Author
Parents
Loading