UNPKG

379 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = getFlowOptions;
7
8/**
9 * Generates a babel config for stripping away Flow types.
10 */
11function getFlowOptions(config) {
12 if (!config.isSource) {
13 return null;
14 }
15
16 return {
17 plugins: [['@babel/plugin-transform-flow-strip-types', {
18 requireDirective: true
19 }]]
20 };
21}
\No newline at end of file