text: (window.webpackJsonp=window.webpackJsonp||[]).push([[68],{231:function(e,a,t){"use strict";t.r(a);var s=t(0),n=Object(s.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"content"},[t("h1",{attrs:{id:"babel"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#babel","aria-hidden":"true"}},[e._v("#")]),e._v(" Babel")]),e._v(" "),t("h4",{attrs:{id:"_1、babel"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#_1、babel","aria-hidden":"true"}},[e._v("#")]),e._v(" 1、Babel")]),e._v(" "),t("ul",[t("li",[e._v("是javascript的编译器/解码器/转码器/解析器")])]),e._v(" "),t("h4",{attrs:{id:"_2、配置"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#_2、配置","aria-hidden":"true"}},[e._v("#")]),e._v(" 2、配置")]),e._v(" "),t("ul",[t("li",[e._v(".babelrc")])]),e._v(" "),t("div",{staticClass:"language- extra-class"},[t("pre",{pre:!0,attrs:{class:"language-text"}},[t("code",[e._v('命令:\n    babel ./index.js -o ./_index.js\n下包：\n    cnpm install --save-dev babel-cli babel-preset-env\n    \n    \n{\n    "presets": [\n        "env"\n    ]\n}\n\nbabel-loader // es6转es5\n')])])])])}],!1,null,null,null);a.default=n.exports}}]);