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
Is your feature request related to a problem? Please describe
Storybook is unable to load babel.config.ts (note ts, not js). It looks like it's explicitly not included here
I think we're going the other way towards forcing everybody to use the .storybook/main.js babel configuration instead (which should support this usage but requires a line of configuration on the user's part). @ndelangen should be able to share more.
Is your feature request related to a problem? Please describe
Storybook is unable to load
babel.config.ts
(notets
, notjs
). It looks like it's explicitly not included herestorybook/lib/core-common/src/utils/load-custom-babel-config.ts
Lines 80 to 84 in 7064642
I've
Describe the solution you'd like
Support automatic discovery of
babel.config.ts
and.babelrc.ts
Describe alternatives you've considered
Currently I load the babel config in my
main.ts
using thebabel
prop.Which also I've noticed, is documented here, but is not included in the
StorybookConfig
type, so I end up with a// @ts-expect-error
.Are you able to assist to bring the feature to reality?
If it makes sense to add to the aforementioned list, I can open a PR.
Additional context
The PR where I ran into this issue: getsentry/sentry#26918
The text was updated successfully, but these errors were encountered: