WebPageReplay: Deep merge configuration and skip camel case. (#4242)
The camel case is evil since it makes some metrcis becoming arrays.
This commit is contained in:
parent
5b206c11fc
commit
0ebdee2a5d
|
|
@ -24,6 +24,7 @@ let config;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
config = configPath ? JSON.parse(readFileSync(configPath)) : {};
|
config = configPath ? JSON.parse(readFileSync(configPath)) : {};
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof SyntaxError) {
|
if (e instanceof SyntaxError) {
|
||||||
/* eslint no-console: off */
|
/* eslint no-console: off */
|
||||||
|
|
@ -150,6 +151,7 @@ async function runBrowsertime() {
|
||||||
' to increase the level of detail.',
|
' to increase the level of detail.',
|
||||||
type: 'count'
|
type: 'count'
|
||||||
})
|
})
|
||||||
|
.parserConfiguration({ 'camel-case-expansion': false, 'deep-merge-config': true })
|
||||||
.config(config);
|
.config(config);
|
||||||
|
|
||||||
const defaultConfig = {
|
const defaultConfig = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue