Implement @babel/plugin-transform-react-pure-annotations (#11428)

The new plugin is also enabled in `@babel/preset-react`
This commit is contained in:
Devon Govett
2020-05-24 13:55:29 -07:00
committed by GitHub
parent 93a50056ca
commit 6ba1f0dd22
39 changed files with 221 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
import {createFactory} from 'react';
const div = createFactory('div');

View File

@@ -0,0 +1,4 @@
{
"sourceType": "module",
"plugins": ["transform-react-pure-annotations"]
}

View File

@@ -0,0 +1,2 @@
import { createFactory } from 'react';
const div = /*#__PURE__*/createFactory('div');