Commit b0674be
authored
feat: Customization of serialization for languageOptions (#19760)
* feat: Customization serialization for languageOptions
fixes #19759
* Update docs and tests
* Check result of toJSON is not a function and throw error
* Allow toJSON() on languageOptions
* Reduce duplicated code
* Prefer toJSON over meta1 parent 3ec2082 commit b0674be
File tree
3 files changed
+554
-228
lines changed- docs/src/extend
- lib/config
- tests/lib/config
3 files changed
+554
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
268 | 289 | | |
269 | 290 | | |
270 | 291 | | |
| |||
274 | 295 | | |
275 | 296 | | |
276 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
277 | 306 | | |
278 | 307 | | |
279 | 308 | | |
280 | 309 | | |
281 | 310 | | |
282 | 311 | | |
283 | 312 | | |
284 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
285 | 317 | | |
286 | 318 | | |
287 | 319 | | |
288 | 320 | | |
289 | 321 | | |
290 | 322 | | |
291 | 323 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 324 | + | |
302 | 325 | | |
303 | 326 | | |
304 | 327 | | |
| |||
0 commit comments