Skip to content

Commit

Permalink
feat: doura support devtool
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjinyang authored Feb 6, 2023
1 parent 56864c6 commit 0b551b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/platform-web/src/shuvi-app/model/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Doura, doura } from 'doura';
import { Doura, doura, devtool } from 'doura';
import {
createRuntimePlugin,
getPageData,
Expand All @@ -16,7 +16,8 @@ const isServer = typeof window === 'undefined';
const initStore: InitDoura = ({ initialState, ctx }) => {
const createStoreInstance = () => {
return doura({
initialState
initialState,
plugins: process.env.NODE_ENV === 'development' ? [[devtool]] : []
});
};
// for server
Expand Down

0 comments on commit 0b551b4

Please sign in to comment.