Skip to content

Commit

Permalink
WebPageReplay: Deep merge configuration and skip camel case. (#4242)
Browse files Browse the repository at this point in the history
The camel case is evil since it makes some metrcis becoming
arrays.
  • Loading branch information
soulgalore committed Jul 29, 2024
1 parent 5b206c1 commit 0ebdee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/browsertimeWebPageReplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ let config;

try {
config = configPath ? JSON.parse(readFileSync(configPath)) : {};

} catch (e) {
if (e instanceof SyntaxError) {
/* eslint no-console: off */
Expand Down Expand Up @@ -150,6 +151,7 @@ async function runBrowsertime() {
' to increase the level of detail.',
type: 'count'
})
.parserConfiguration({ 'camel-case-expansion': false, 'deep-merge-config': true })
.config(config);

const defaultConfig = {
Expand Down

0 comments on commit 0ebdee2

Please sign in to comment.