diff --git a/.size-limit.js b/.size-limit.js index 91cdcda788..5b8e3fa6a4 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -4,21 +4,21 @@ module.exports = [ { name: 'CJS', path: 'dist/lightweight-charts.production.cjs', - limit: '47.58 KB', + limit: '47.59 KB', }, { name: 'ESM', path: 'dist/lightweight-charts.production.mjs', - limit: '47.53 KB', + limit: '47.54 KB', }, { name: 'Standalone-ESM', path: 'dist/lightweight-charts.standalone.production.mjs', - limit: '49.25 KB', + limit: '49.26 KB', }, { name: 'Standalone', path: 'dist/lightweight-charts.standalone.production.js', - limit: '49.3 KB', + limit: '49.31 KB', }, ]; diff --git a/src/helpers/strict-type-checks.ts b/src/helpers/strict-type-checks.ts index 620657353e..7832fa980a 100644 --- a/src/helpers/strict-type-checks.ts +++ b/src/helpers/strict-type-checks.ts @@ -18,7 +18,7 @@ export function merge(dst: Record, ...sources: Record[ continue; } - if ('object' !== typeof src[i] || dst[i] === undefined) { + if ('object' !== typeof src[i] || dst[i] === undefined || Array.isArray(src[i])) { dst[i] = src[i]; } else { // eslint-disable-next-line @typescript-eslint/no-unsafe-argument