mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user