[babel] Remove babel/plugin-syntax-jsx

Internal version of babel/core doesn't support the `inherits` property, so let's 
try removing it. The tests still seem to pass, so this might be vestigial from 
the first iteration of the compiler from last year
This commit is contained in:
Lauren Tan
2023-09-05 12:08:01 -04:00
parent fdd6a1b8b1
commit 375e2d8f33
2 changed files with 0 additions and 3 deletions
@@ -28,7 +28,6 @@
},
"dependencies": {
"@babel/generator": "7.2.0",
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/types": "^7.19.0",
"chalk": "4",
"invariant": "^2.2.4",
@@ -8,7 +8,6 @@
/// <reference path="./types.d.ts" />
import type * as BabelCore from "@babel/core";
import jsx from "@babel/plugin-syntax-jsx";
import { compileProgram, parsePluginOptions } from "../Entrypoint";
/**
@@ -21,7 +20,6 @@ export default function ReactForgetBabelPlugin(
): BabelCore.PluginObj {
return {
name: "react-forget",
inherits: jsx,
visitor: {
// Note: Babel does some "smart" merging of visitors across plugins, so even if A is inserted
// prior to B, if A does not have a Program visitor and B does, B will run first. We always