-
Notifications
You must be signed in to change notification settings - Fork 47
Fix storybook build by vite #836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9ff6ab2 to
d251626
Compare
|
Size Change: 0 B Total Size: 377 kB ℹ️ View Unchanged
|
|
Visit the preview URL for this PR (updated for commit d9538bf): https://pixiv-charcoal-web--pr836-mimo-fix-storybook-v-4wu1j7qk.web.app (expires Tue, 03 Feb 2026 06:01:06 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 314b26d3adca98a761c7e4d9922ebb206ff024a0 |
023099f to
cf79d0a
Compare
cf79d0a to
428e801
Compare
yue4u
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
↑を対応したほうが良さそうです。(別PR可)
Summary
pnpm storybook:build-vite ran
1.85 ± 0.64 times faster than pnpm storybook:build
.storybook/main.ts
Outdated
| async webpackFinal(config, { configType }) { | ||
| if (configType === 'PRODUCTION') { | ||
| return config | ||
| } | ||
| return config | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここのif意味ないかも?
| @@ -1,6 +1,12 @@ | |||
| import remarkGfm from 'remark-gfm' | |||
| import type { StorybookConfig as Webpack5StorybookConfig } from '@storybook/react-webpack5' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO: viteで動くならwebpack残す必要ないかも
428e801 to
38dd0f8
Compare
こちら、ルートの |
rootなのでpackage自体に影響しないが、一部スクリプトの実行を影響するかもですね。このPRでなくてもokです |
別でやります! |
やったこと
動作確認環境
Storybook
チェックリスト
不要なチェック項目は消して構いません