1 Star 0 Fork 7

leo / rdoc

forked from 小弟调调 / rdoc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.babelrc.js 721 Bytes
一键复制 编辑 原始数据 按行查看 历史
小弟调调 提交于 2018-05-04 16:44 . Fix custom theme errors.
const babelrc = {
"presets": [
[
"env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}
],
"react"
],
"plugins": [
"transform-object-rest-spread",
"syntax-dynamic-import",
"transform-async-to-generator",
"transform-class-properties",
"transform-runtime"
],
"env": {
"production": {}
},
}
if (process.env.NODE_ENV === 'development') {
// 不要包含多余的空格字符和行结束符。
// 设置为“auto”时,对于大于500KB的输入大小,设置为"true"。
// https://babeljs.io/docs/usage/api/#options
babelrc.cacheDirectory = true;
} else {
babelrc.compact = true;
}
module.exports = babelrc
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/shi0730/rdoc.git
git@gitee.com:shi0730/rdoc.git
shi0730
rdoc
rdoc
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891