All Projects → brunocodutra → Flow Bin Loader

brunocodutra / Flow Bin Loader

Licence: mit
webpack loader for Flow

Programming Languages

javascript
184084 projects - #8 most used programming language
flow
126 projects

Projects that are alternatives of or similar to Flow Bin Loader

One Loader
Single-file components for React
Stars: ✭ 233 (+2018.18%)
Mutual labels:  webpack, webpack-loader
Sass Loader
Compiles Sass to CSS
Stars: ✭ 3,718 (+33700%)
Mutual labels:  webpack, webpack-loader
Vue Template Loader
Vue.js 2.0 template loader for webpack
Stars: ✭ 253 (+2200%)
Mutual labels:  webpack, webpack-loader
Polymer Webpack Loader
WebPack Loader for Polymer Web Components
Stars: ✭ 192 (+1645.45%)
Mutual labels:  webpack, webpack-loader
Inline Style Loader
inline style loader for webpack
Stars: ✭ 16 (+45.45%)
Mutual labels:  webpack, webpack-loader
Angular Router Loader
A Webpack loader that enables string-based module loading with the Angular Router
Stars: ✭ 194 (+1663.64%)
Mutual labels:  webpack, webpack-loader
Markdown Loader
markdown loader for webpack
Stars: ✭ 335 (+2945.45%)
Mutual labels:  webpack, webpack-loader
Webpack.js.org
Repository for webpack documentation and more!
Stars: ✭ 2,049 (+18527.27%)
Mutual labels:  webpack, webpack-loader
Wasm Loader
✨ WASM webpack loader
Stars: ✭ 604 (+5390.91%)
Mutual labels:  webpack, webpack-loader
Comlink Loader
Webpack loader to offload modules to Worker threads seamlessly using Comlink.
Stars: ✭ 535 (+4763.64%)
Mutual labels:  webpack, webpack-loader
Css Modules Typescript Loader
Webpack loader to create TypeScript declarations for CSS Modules
Stars: ✭ 172 (+1463.64%)
Mutual labels:  webpack, webpack-loader
Nunjucks Isomorphic Loader
Nunjucks loader for webpack, supporting both javascript templating and generating static HTML files through the HtmlWebpackPlugin.
Stars: ✭ 17 (+54.55%)
Mutual labels:  webpack, webpack-loader
Workerize Loader
🏗️ Automatically move a module into a Web Worker (Webpack loader)
Stars: ✭ 2,135 (+19309.09%)
Mutual labels:  webpack, webpack-loader
String Replace Loader
Replace loader for Webpack
Stars: ✭ 205 (+1763.64%)
Mutual labels:  webpack, webpack-loader
Pug As Jsx Loader
Stars: ✭ 168 (+1427.27%)
Mutual labels:  webpack, webpack-loader
Extract Loader
webpack loader to extract HTML and CSS from the bundle
Stars: ✭ 297 (+2600%)
Mutual labels:  webpack, webpack-loader
Bs Loader
📻 Bucklescript loader for Webpack and Jest
Stars: ✭ 146 (+1227.27%)
Mutual labels:  webpack, webpack-loader
File Loader
File Loader
Stars: ✭ 1,846 (+16681.82%)
Mutual labels:  webpack, webpack-loader
Css Loader
CSS Loader
Stars: ✭ 4,067 (+36872.73%)
Mutual labels:  webpack, webpack-loader
Node Addon Loader
A loader for node native addons
Stars: ✭ 17 (+54.55%)
Mutual labels:  webpack, webpack-loader

flow-bin-loader

npm version

A webpack loader built around flow-bin to enforce type checking with Flow.

Installation

$ npm install --save-dev flow-bin flow-bin-loader

Usage

Add the plugin to your webpack config as follows:

module: {
  rules: [
    {
      test: /\.jsx?$/,
      loader: 'flow-bin-loader',
      exclude: /node_modules/,
      enforce: 'pre',
    }
  ]
},

Don't forget to add // @flow to the top of the files you want to be checked.

Configuration

By default, modules are resolved with respect to the directory where .flowconfig lives, so you might need to tell Flow how to map paths to the correct directory.

In order to do that, create a file named .flowconfig in the root directory of your project and add a module mapper rule such as the one below.

[options]
module.name_mapper='^\(.*\)$' -> '<PROJECT_ROOT>/src/\1'

For the complete list of options, visit https://flowtype.org/docs/advanced-configuration.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].