start moving more transformers to packages and finish import of plugins from babel-plugins
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "babel-plugin-react-constant-elements",
|
||||
"version": "1.0.3",
|
||||
"description": "Treat React JSX elements as value types and hoist them to the highest scope",
|
||||
"repository": "babel-plugins/babel-plugin-react-constant-elements",
|
||||
"repository": "babel/babelbabel-plugin-react-constant-elements",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export default function ({ Plugin }) {
|
||||
export default function () {
|
||||
var immutabilityVisitor = {
|
||||
enter(node, parent, scope, state) {
|
||||
var stop = () => {
|
||||
@@ -23,7 +23,7 @@ export default function ({ Plugin }) {
|
||||
}
|
||||
};
|
||||
|
||||
return new Plugin("react-constant-elements", {
|
||||
return {
|
||||
metadata: {
|
||||
group: "builtin-basic"
|
||||
},
|
||||
@@ -42,5 +42,5 @@ export default function ({ Plugin }) {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user