Closed IanVS closed 3 years ago
Note, changing https://github.com/pocka/storybook-addon-turbo-build/blob/068dee00e26c18e78a80308b08bcec4afeed5572/src/transformers.ts#L44 to tsx
fixes the issue for me.
https://github.com/pocka/storybook-addon-turbo-build/blob/v1.0.0-beta.0/src/transformers.ts#L19-L48
The addon replaces babel-loader without taking care of target files. This process should check file types.
Thanks!
I'm using snowpack with esbuild for my development, and I'd like to mirror my config as much as possible in storybook, which is what drew me to this addon. However, when I add it, typescript seems to stop working correctly, and it chokes on a
type Props
declaration.Have I configured something incorrectly? It seems that esbuild handles typescript natively, so maybe this loader is causing problems? Let me know if there's anything else I can do to help troubleshoot. Thanks!