Is your feature request related to a problem? Please describe.
When I define a preview component for a type, it is often useful to re-use components that will later be used to render a type. If those components are written in typescript, it is problematic, because I cannot just import them directly.
Describe the solution you'd like
Allow me to customize the webpack config used by the sanity dev server and build.
Describe alternatives you've considered
Support a more extensive feature set out of the box, similar to create-react-app.
I agree we should provide the ability to use a custom webpack config. In the meantime you should be able to use TypeScript for your custom components by adding a .babelrc to your sanity project and use the @babel/typescript preset.
@bjoerge any update on this?
Is there some sort of workaround for example to allow custom webpack loaders?
Most helpful comment
@bjoerge any update on this?