Remove Flow Types

A laravel-mix wrapper to strip flow types before processing js files.
latest v1.0.2 - released
10 downloads last week
MIT license
3 versions

Laravel Mix Remove Flow Types

A laravel-mix wrapper for the remove-flow-types-loader Webpack loader.

Use this extension if you want to use Flow type annotations in your Javascript files.


# npm
npm install laravel-mix-remove-flow-types --save-dev

# yarn
yarn add laravel-mix-remove-flow-types --dev


The loader is configured to match all .js and .jsx files, there is no need to specify files that contain flow type definitions. Just call the removeFlowTypes function somewhere in your mix chain.

const mix = require('laravel-mix');

mix.removeFlowTypes().js('resources/js/app.js', 'public/js');