Skip to content

Commit 6d61fb0

Browse files
feat: use storybook with webpack5
1 parent 734a16c commit 6d61fb0

File tree

3 files changed

+454
-22
lines changed

3 files changed

+454
-22
lines changed

.storybook/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ module.exports = {
2222
},
2323
},
2424
}),
25+
core: {
26+
builder: "webpack5"
27+
}
2528
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@babel/core": "^7.12.10",
3535
"@storybook/addon-essentials": "^6.2.9",
3636
"@storybook/addon-postcss": "^2.0.0",
37+
"@storybook/builder-webpack5": "^6.2.9",
3738
"@storybook/react": "^6.2.9",
3839
"@testing-library/jest-dom": "^5.11.9",
3940
"@testing-library/react": "^11.2.4",

0 commit comments

Comments
 (0)