webpack loader
- Dominant language
- JavaScript
- Stars
- 797
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
[](https://oss.issuehunt.io/r/gajus/flow-runtime/issues/165)
This is a:
- [ ] Bug Report
- [x] Feature Request
- [ ] Question
- [ ] Other
It'd be awesome to have a webpack loader so I could automatically get runtime validation of flow types from libraries.
My use case is that I want to validate DraftJS state on the server, which I'd love to do like this:
```JS
// Note: .js.flow file
import { RawDraftContentState } from 'flow-runtime-loader!draft-js/lib/RawDraftContentState.js.flow';
const storePost = (body) => {
t.param('body', RawDraftContentState).assert(body);
return storePostInDb({ body });
}
```
Does something like that exist?
---
IssueHunt Summary
### Backers (Total: $200.00)
- [ issuehunt](https://oss.issuehunt.io/u/issuehunt) ($200.00)
### Submitted pull Requests
- [#284 Add flow-runtime webpack loader](https://oss.issuehunt.io/r/gajus/flow-runtime/pull/284)
- [#295 Add flow-runtime webpack loader](https://oss.issuehunt.io/r/gajus/flow-runtime/pull/295)
- [#305 Add flow-runtime webpack loader](https://oss.issuehunt.io/r/gajus/flow-runtime/pull/305)
---
#### [Become a backer now!](https://oss.issuehunt.io/r/gajus/flow-runtime/issues/165)
#### [Or submit a pull request to get the deposits!](https://oss.issuehunt.io/r/gajus/flow-runtime/issues/165)
### Tips
- Checkout the [Issuehunt explorer](https://oss.issuehunt.io/r/gajus/flow-runtime/) to discover more funded issues.
- Need some help from other developers? [Add your repositories](https://oss.issuehunt.io/r/new) on IssueHunt to raise funds.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.