start moving more transformers to packages and finish import of plugins from babel-plugins

This commit is contained in:
Sebastian McKenzie
2015-09-01 08:37:37 +01:00
parent 9f9d9cd84b
commit 1ea835f42f
255 changed files with 3785 additions and 1265 deletions

View File

@@ -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": [

View File

@@ -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 }) {
}
}
}
});
};
}