Skip to content

Commit f736670

Browse files
committed
fix: storybook use state plugin
1 parent 0635fa7 commit f736670

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/storybook/builder/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"dependencies": {
5959
"@modern-js/core": "workspace:*",
6060
"@modern-js/runtime": "workspace:*",
61+
"@modern-js/plugin-state": "workspace:*",
6162
"@modern-js/uni-builder": "workspace:*",
6263
"@modern-js/utils": "workspace:*",
6364
"@rsbuild/core": "1.2.19",

packages/storybook/builder/src/addons/components/modern.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import state from '@modern-js/plugin-state/runtime';
12
import { createApp } from '@modern-js/runtime';
23
import type {
34
Plugin,
45
RouterConfig,
56
RuntimePluginFuture,
67
} from '@modern-js/runtime';
7-
import state from '@modern-js/runtime/model';
88
import router from '@modern-js/runtime/router';
99
import React from 'react';
1010
import type { IConfig } from '../type';

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)