Reputation: 76208
Following How to reduce redux-form's bundle size? guide here. I'm using the babel-plugin-transform-imports
method.
However, that produces an error when using Flow types:
import type { FormProps } from 'redux-form'
Error:
Module not found: Error: Can't resolve 'redux-form/es/FormProps'
Not sure if this is a bug, a missing feature, mis-configuration or simply impossible combination.
It'd be nice to be able to use import { ... } from 'redux-form'
syntax rather than the verbose import ... from 'redux-form/es/...'
syntax along with Flow.
I think I can also do
import { propTypes } from 'redux-form'
type Props = { ...propTypes }
but I'm not sure if that's the right way to go. Thoughts/Solutions/Workarounds?
Upvotes: 1
Views: 162