You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is storybook building takes around 15 seconds with just single story. If I make the same for my real project it takes more than 20 seconds which is quite slow.
I guess this is because of both babel-loader and ts-loader build node_modules folder (I can see this process at console). Any way to avoid building node_modules.
P.S. I'm migrating application from @kadira/storybook to @storybook/react. With @kadira/storybook it worked much faster for me with the same codebase.
The text was updated successfully, but these errors were encountered:
You don't have to double up on babel-loader and ts-loader. ts-loader can load javascript for you, and you're transpiling the Typescript down to ES5/commonjs modules anyways.
I'm not seeing anything that should make this so slow, exclude: /node_modules/ should already be excluding your node_modules.
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks!
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
I've created typescript based React app (with
create-react-app
) and added storybook there (by usinggetstroybook
CLI command).I've added
webpack.config.js
to definets-loader
to transpile my TypeScript code.I've placed whole code here - https://github.com/sergeyzwezdin/storybook-with-ts
The problem is storybook building takes around 15 seconds with just single story. If I make the same for my real project it takes more than 20 seconds which is quite slow.
I guess this is because of both
babel-loader
andts-loader
buildnode_modules
folder (I can see this process at console). Any way to avoid buildingnode_modules
.P.S. I'm migrating application from
@kadira/storybook
to@storybook/react
. With@kadira/storybook
it worked much faster for me with the same codebase.The text was updated successfully, but these errors were encountered: