next.js
6de83774 - [Turbopack] store project options in state (#69658)

Commit
1 year ago
[Turbopack] store project options in state (#69658) ### What? We can't pass the whole config (including next config) as argument to `ProjectContainer::new` as this would result in a new project every time the config is different. (It's always different due to some random values). So to leverage persistent caching we need to remove the argument from `ProjectContainer::new` (so it's always the same project) and push the config into a `State`. This way we "modify" the project and can benefit from caching for the unchanged values.
Author
Parents
Loading