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

@@ -1,13 +1,13 @@
import definitions from "./definitions";
export default function ({ Plugin, types: t }) {
export default function ({ types: t }) {
const RUNTIME_MODULE_NAME = "babel-runtime";
function has(obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key);
}
return new Plugin("runtime", {
return {
metadata: {
group: "builtin-post-modules"
},
@@ -110,5 +110,5 @@ export default function ({ Plugin, types: t }) {
}
}
}
});
};
}