fix(webpack): fix middleware to specifically serialize options as pascal case #537

Closed
opened 2025-08-09 17:16:40 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @stephenlautier on 7/31/2017

This fixes middleware when consumers override serializer defaults settings via JsonConvert.DefaultSettings which would break webpack options passed to node.

Since it's expected to be as Pascal case, it's safer to specifically specify it, and in our case we had it default to camelCase which was silently breaking it (and it was quite hard to figure it out).

*Originally created by @stephenlautier on 7/31/2017* This fixes middleware when consumers override serializer defaults settings via `JsonConvert.DefaultSettings` which would break webpack options passed to node. Since it's expected to be as Pascal case, it's safer to specifically specify it, and in our case we had it default to camelCase which was silently breaking it (and it was quite hard to figure it out).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#537
No description provided.