next.js
d7818d21 - turbopack: Update the `next/dist/esm` rewrite `ResolvePlugin` (#55689)

Commit
2 years ago
turbopack: Update the `next/dist/esm` rewrite `ResolvePlugin` (#55689) ### What? This updates `NextSharedRuntimeResolvePlugin` to match on `next/dist/esm` pattern instead of matching on `node_modules/next/dist`. While the old code is more correct, it prevents the plugin from working when we're developing Next.js locally, because the imported path is resolved to `packages/next/dist/esm/`, not `node_modules/next/dist/esm/` ### Why? So that we can develop locally without bugs. ### How? A simple glob change. Closes NEXT- Fixes # --> Closes WEB-1616
Author
Parents
Loading