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

Commit

Permalink
remove import-react from babel transform
Browse files Browse the repository at this point in the history
Summary: Jest transformer does not need to auto import react as typescripts requires all files to have react imported anyway

Reviewed By: elboman

Differential Revision: D53429265

fbshipit-source-id: ca9c5baf05c40a919007d6447f0b837be34acd26
  • Loading branch information
antonk52 authored and facebook-github-bot committed Feb 5, 2024
1 parent e8e3556 commit d7488c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/babel-transformer/src/transform-jest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {default as doTransform} from './transform';
import {default as getCacheKey} from './get-cache-key';

const presets = [require('@babel/preset-react')];
const plugins = [require('./import-react'), require('./fb-stubs')];
const plugins = [require('./fb-stubs')];

module.exports = {
transform,
Expand Down

0 comments on commit d7488c1

Please sign in to comment.