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');
require('laravel-mix-remove-flow-types');
mix.removeFlowTypes().js('resources/js/app.js', 'public/js');