mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 07:21:59 +08:00
fix
This commit is contained in:
parent
9ac29c2330
commit
015232a10b
@ -114,7 +114,7 @@
|
||||
},
|
||||
"bundlerEntrypoint": [
|
||||
"./src/index.ts",
|
||||
"./src/framework-preset-cra",
|
||||
"./src/framework-preset-cra.ts",
|
||||
"./src/framework-preset-react-docs.ts",
|
||||
"./src/framework-preset-react-dom-hack.ts",
|
||||
"./src/framework-preset-react.ts"
|
||||
|
@ -1,9 +1,7 @@
|
||||
import { logger } from '@storybook/node-logger';
|
||||
import type { StorybookConfig } from '@storybook/core-webpack';
|
||||
import type { Preset, StorybookConfig } from '@storybook/core-webpack';
|
||||
import { isReactScriptsInstalled } from './cra-config';
|
||||
|
||||
type Preset = string | { name: string };
|
||||
|
||||
const checkForNewPreset = (presetsList: Preset[]) => {
|
||||
const hasNewPreset = presetsList.some((preset: Preset) => {
|
||||
const presetName = typeof preset === 'string' ? preset : preset.name;
|
||||
|
@ -3,8 +3,8 @@ import type { StorybookConfig } from './types';
|
||||
export * from './types';
|
||||
|
||||
export const addons: StorybookConfig['addons'] = [
|
||||
require.resolve('@storybook/react-webpack5/dist/framework-preset-react'),
|
||||
require.resolve('@storybook/react-webpack5/dist/framework-preset-react-dom-hack'),
|
||||
require.resolve('@storybook/react-webpack5/dist/framework-preset-cra'),
|
||||
require.resolve('@storybook/react-webpack5/dist/framework-preset-react-docs'),
|
||||
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-react'),
|
||||
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-react-dom-hack'),
|
||||
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-cra'),
|
||||
require.resolve('@storybook/preset-react-webpack/dist/framework-preset-react-docs'),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user