Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
remove unused babel flow plugin
Browse files Browse the repository at this point in the history
Summary: We are no longer using flow in flipper and have no plugins that use it. It should be safe to remove

Reviewed By: lblasa

Differential Revision: D53476217

fbshipit-source-id: 6534e4877a4ea45207a5f255ff071fc068dbbc15
  • Loading branch information
antonk52 authored and facebook-github-bot committed Feb 6, 2024
1 parent 58ebbe2 commit 7af0ec5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion desktop/babel-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@babel/core": "^7.20.12",
"@babel/generator": "^7.20.14",
"@babel/parser": "^7.20.13",
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@babel/plugin-transform-typescript": "^7.20.13",
"@babel/preset-env": "^7.20.2",
Expand Down
4 changes: 1 addition & 3 deletions desktop/babel-transformer/src/transform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ import {transformFromAstSync} from '@babel/core';
import {default as flipperEnv} from './flipper-env';
import {resolve} from 'path';

const jsParsePlugins: ParserPlugin[] = ['jsx', ['flow', {all: true}]];
const jsParsePlugins: ParserPlugin[] = ['jsx'];
const tsParsePluins: ParserPlugin[] = ['jsx', 'typescript'];
const commonJsPlugin = [
require('@babel/plugin-transform-modules-commonjs'),
{
strictMode: false,
},
];
const flowStripTypesPlugin = require('@babel/plugin-transform-flow-strip-types');
const dynamicRequiresPlugin = require('./dynamic-requires');
const typeScriptPlugin = require('@babel/plugin-transform-typescript');
const emotionPlugin = require('@emotion/babel-plugin');
Expand All @@ -34,7 +33,6 @@ const tsTransformPlugins = [
];
const jsTransformPlugins = [
commonJsPlugin,
flowStripTypesPlugin,
dynamicRequiresPlugin,
[emotionPlugin, {autoLabel: 'always', sourceMap: false}],
];
Expand Down
15 changes: 0 additions & 15 deletions desktop/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1191,13 +1191,6 @@
dependencies:
"@babel/helper-plugin-utils" "^7.16.7"

"@babel/plugin-syntax-flow@^7.18.6":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.18.6.tgz#774d825256f2379d06139be0c723c4dd444f3ca1"
integrity sha512-LUbR+KNTBWCUAqRG9ex5Gnzu2IOkt8jRJbHHXFT9q+L9zm7M/QQbEqXyw1n1pohYvOyWC8CjeyjrSaIwiYjK7A==
dependencies:
"@babel/helper-plugin-utils" "^7.18.6"

"@babel/plugin-syntax-import-assertions@^7.20.0":
version "7.20.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz#bb50e0d4bea0957235390641209394e87bdb9cc4"
Expand Down Expand Up @@ -1475,14 +1468,6 @@
"@babel/helper-plugin-utils" "^7.16.7"
"@babel/plugin-syntax-flow" "^7.16.7"

"@babel/plugin-transform-flow-strip-types@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.19.0.tgz#e9e8606633287488216028719638cbbb2f2dde8f"
integrity sha512-sgeMlNaQVbCSpgLSKP4ZZKfsJVnFnNQlUSk6gPYzR/q7tzCgQF2t8RBKAP6cKJeZdveei7Q7Jm527xepI8lNLg==
dependencies:
"@babel/helper-plugin-utils" "^7.19.0"
"@babel/plugin-syntax-flow" "^7.18.6"

"@babel/plugin-transform-for-of@^7.0.0":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz#649d639d4617dff502a9a158c479b3b556728d8c"
Expand Down

0 comments on commit 7af0ec5

Please sign in to comment.