Implement @babel/plugin-transform-react-pure-annotations (#11428)
The new plugin is also enabled in `@babel/preset-react`
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import {createFactory} from 'react';
|
||||
|
||||
const div = createFactory('div');
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["transform-react-pure-annotations"]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
import { createFactory } from 'react';
|
||||
const div = /*#__PURE__*/createFactory('div');
|
||||
Reference in New Issue
Block a user