Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Commit

Permalink
[babel] Remove babel/plugin-syntax-jsx
Browse files Browse the repository at this point in the history
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
  • Loading branch information
poteto authored and pull[bot] committed May 28, 2024
1 parent 717f278 commit aced50b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion compiler/packages/babel-plugin-react-forget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand All @@ -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
Expand Down

0 comments on commit aced50b

Please sign in to comment.