flowcheck-loader
A Webpack loader for Flowcheck
Last updated 6 years ago by gaearon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install flowcheck-loader 
SYNC missed versions from official npm registry.

flowcheck-loader

This is a Webpack loader for Flowcheck.

Flowcheck is a runtime assertions library that uses Flow syntax but is meant to be ran in development.

Chain this loader with jsx?stripTypes so types are stripped in JS code:

// Webpack config
module.exports = {
  ...
  module: {
    loaders: [
      { test: /\.jsx?$/, loaders: ['jsx?harmony&stripTypes', 'flowcheck'], exclude: /node_modules/ }
    ]
  }
};

You can use this with or without using Flow or TypeScript itself.
It can also be a nice first step towards migrating code to Flow.

Read more about Flowcheck

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

2 Versions

  • 1.0.0                                ...           6 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |