File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ build({
1515 loader : {
1616 ".png" : "file"
1717 } ,
18- external : [ "react" , "react-dom" ]
18+ external : [ "react" , "react-dom" , "@dreamworld/addon-redux" ]
1919} ) ;
Original file line number Diff line number Diff line change 1- import { enhancer as withReduxEnhancer } from "@dreamworld/addon-redux" ;
21import { configureStore } from "@reduxjs/toolkit" ;
32import { default as rootReducer } from "./reducers" ;
43
54const storybook = process . env . NODE_ENV === "storybook" ;
65
6+ let withReduxEnhancer ;
7+
8+ if ( storybook ) {
9+ // @ts -expect-error - This is a dynamic import
10+ withReduxEnhancer = ( await import ( "@dreamworld/addon-redux" ) ) . enhancer ;
11+ }
12+
713export function makeStore ( ) {
814 return configureStore ( {
915 devTools : storybook ,
You can’t perform that action at this time.
0 commit comments