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-runtime",
"version": "1.0.7",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",
"repository": "babel-plugins/babel-plugin-runtime",
"repository": "babel/babelbabel-plugin-runtime",
"license": "MIT",
"main": "lib/index.js",
"keywords": [

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