next.js
64271354 - Fix sourcemaps for async Turbopack chunks (#72827)

Commit
1 year ago
Fix sourcemaps for async Turbopack chunks (#72827) Works around https://github.com/nodejs/node/issues/52102 Webpack will be harder to patch and I don't know yet where the Webpack runtime is using `vm.runInThisContext`. Best way to observe change is in https://github.com/vercel/next.js/pull/71909 and `pnpm test-dev-turbo test/development/app-dir/dynamic-io-dev-errors/ -t "should display error when component accessed data without suspense boundary"`. Before: ``` Error: [...] at Page [Server] (<anonymous>) at InnerLayoutRouter (.next/server/chunks/ssr/[root of the server]__088b8c._.js) ``` After: ``` Error: [...] at Page [Server] (<anonymous>) at InnerLayoutRouter (node_modules/.pnpm/file+..+next-repo-2186278d37ae48e2b1397aa86060054592669ed9909b91e96c5af049d12c04c3+packages+n_vk62popbath6ofshgazcbhzdoe/node_modules/next/dist/src/client/components/layout-router.tsx:324:2) ``` Next step is figuring out why the now sourcemapped frames aren't ignore-listed.
Author
Parents
Loading