Skip to content

Commit

Permalink
Rename to composeConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Aug 2, 2021
1 parent 61b6189 commit 5b6d4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/builder-webpack4/src/preview/iframe-webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default async ({
};
`,
[configEntryPath]: dedent`
import { getGlobalsFromEntries } from '@storybook/core-client/dist/esm/preview/new/getGlobalsFromEntries';
import { composeConfigs } from '@storybook/core-client/dist/esm/preview/new/composeConfigs';
import { WebPreview } from '@storybook/core-client/dist/esm/preview/new/WebPreview';
import { importFn } from './${storiesFilename}';
Expand All @@ -106,7 +106,7 @@ export default async ({
.join('\n')}
const getGlobalMeta = () =>
getGlobalsFromEntries([
composeConfigs([
${configs
.map((fileName: string, index: number) => `configModuleExport${index}`)
.join(',\n')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getSingletonField(moduleExportList: ModuleExports[], field: string): an
return getField(moduleExportList, field)[0];
}

export function getGlobalsFromEntries<StoryFnReturnType>(
export function composeConfigs<StoryFnReturnType>(
moduleExportList: ModuleExports[]
): WebGlobalMeta<StoryFnReturnType> {
return {
Expand Down

0 comments on commit 5b6d4b2

Please sign in to comment.