rsnext/packages/next/build/analysis
Sukka 25d34057d6
feat: enhance warning messages about unanalyzable config field (#38907)
x-ref: #38750
x-ref: https://github.com/vercel/next.js/pull/38750#discussion_r926203439

cc @ijjk 

The PR implements the details about un-extractable fields in the `UnsupportedValueError`.

The PR also enhances the warning message about the unrecognizable `config` field. Now the warning message will look like this:

```
warn  - Next.js can't recognize the exported `config` field in route "/unsupported-value-type":
Unsupported node type "CallExpression" at "config.runtime".
The default config will be used instead.
Read More - https://nextjs.org/docs/messages/invalid-page-config
```

The corresponding production test case has also been updated.
2022-07-22 19:31:47 +00:00
..
extract-const-value.ts feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00
get-page-static-info.ts feat: enhance warning messages about unanalyzable config field (#38907) 2022-07-22 19:31:47 +00:00
parse-module.ts Extract and refactor getPageStaticInfo (#37062) 2022-05-20 14:24:00 +02:00