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,25 @@
{
"name": "@babel/plugin-transform-react-pure-annotations",
"version": "7.9.4",
"description": "Mark top-level React method calls as pure for tree shaking",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-pure",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"main": "lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.8.3",
"@babel/helper-plugin-utils": "^7.8.3"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/helper-plugin-test-runner": "^7.8.3"
}
}