next.js
0563fa77 - refactor(next-core): separate options context for pages/api (#58148)

Commit
2 years ago
refactor(next-core): separate options context for pages/api (#58148) ### What I want to mimic webpack config's behavior (https://github.com/vercel/next.js/blob/9b4b0847ed4a1025e73bec16a9ee11766e632e14/packages/next/src/build/webpack-config.ts#L1381-L1385) to the pages/api in turbopack. PR attempt to create a new context corresponding to pages/api, and use it to create api chunks. Currently it just creates a new context, there is no new behavior's being introduced yet. I'm hoping to connect dots with https://github.com/vercel/turbo/pull/6376 later.
Author
Parents
Loading