Skip to content

Commit

Permalink
fix: merge build config arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jun 23, 2020
1 parent 632017c commit 173753e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/loader/src/runtimeLoader.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deepMerge, defaultBuildConfig } from '@component-controls/core';
import { deepMergeArrays, defaultBuildConfig } from '@component-controls/core';

import { loadConfiguration, extractStories } from '@component-controls/config';
import { stringifyRequest } from 'loader-utils';
Expand All @@ -10,7 +10,7 @@ module.exports = function(content: string) {
const params = JSON.parse(this.query.slice(1));
//@ts-ignore
const config = loadConfiguration(this.rootContext, params.config);
store.buildConfig = deepMerge(defaultBuildConfig, config?.config);
store.buildConfig = deepMergeArrays(defaultBuildConfig, config?.config);

const stories: StoryPath[] = (config ? extractStories(config) || [] : []).map(
fileName => ({
Expand Down

0 comments on commit 173753e

Please sign in to comment.