We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b9ab26 commit bc18e83Copy full SHA for bc18e83
lib/compiler/swc/swc-compiler.ts
@@ -212,6 +212,13 @@ export class SwcCompiler extends BaseCompiler {
212
return source;
213
}
214
215
+ if (Array.isArray(target) && Array.isArray(source)) {
216
+ return source.reduce((acc, value, index) => {
217
+ acc[index] = this.deepMerge(target[index], value);
218
+ return acc;
219
+ }, target);
220
+ }
221
+
222
const merged = { ...target };
223
for (const key in source) {
224
if (source.hasOwnProperty(key)) {
0 commit comments