mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:41:25 +08:00
Resolve renderer
as an addon
This commit is contained in:
parent
2310757acc
commit
031a39f8fc
@ -12,6 +12,7 @@ import {
|
||||
cache,
|
||||
loadMainConfig,
|
||||
validateFrameworkName,
|
||||
resolveAddonName,
|
||||
} from '@storybook/core-common';
|
||||
import prompts from 'prompts';
|
||||
import global from 'global';
|
||||
@ -90,7 +91,7 @@ export async function buildDevStandalone(options: CLIOptions & LoadOptions & Bui
|
||||
require.resolve('./presets/common-preset'),
|
||||
...(managerBuilder.corePresets || []),
|
||||
...(previewBuilder.corePresets || []),
|
||||
...(renderer ? [renderer] : []),
|
||||
...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
|
||||
...corePresets,
|
||||
require.resolve('./presets/babel-cache-preset'),
|
||||
],
|
||||
|
@ -20,6 +20,7 @@ import {
|
||||
normalizeStories,
|
||||
logConfig,
|
||||
loadMainConfig,
|
||||
resolveAddonName,
|
||||
} from '@storybook/core-common';
|
||||
|
||||
import { outputStats } from './utils/output-stats';
|
||||
@ -84,7 +85,7 @@ export async function buildStaticStandalone(
|
||||
require.resolve('./presets/common-preset'),
|
||||
...(managerBuilder.corePresets || []),
|
||||
...(previewBuilder.corePresets || []),
|
||||
...(renderer ? [renderer] : []),
|
||||
...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
|
||||
...corePresets,
|
||||
require.resolve('./presets/babel-cache-preset'),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user