1 Star 0 Fork 75

dust/rsuite

forked from rsuite/rsuite 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.babelrc.js 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = api => {
if (api) {
api.cache(() => process.env.NODE_ENV);
}
return {
presets: [
[
'@babel/preset-env',
{
loose: true
}
],
'@babel/preset-react',
'@babel/preset-flow'
],
plugins: [
'lodash',
'date-fns',
'@babel/plugin-transform-proto-to-assign',
'@babel/plugin-transform-runtime',
'transform-react-flow-handled-props',
'transform-dev',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-logical-assignment-operators',
'@babel/plugin-proposal-optional-chaining',
[
'@babel/plugin-proposal-pipeline-operator',
{
proposal: 'minimal'
}
],
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-do-expressions'
],
env: {
coverage: {
plugins: [
[
'istanbul',
{
exclude: [
'src/utils/deprecationWarning.js',
'src/utils/lowPriorityWarning.js',
'src/utils/ajaxUpload.js'
]
}
]
]
}
}
};
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wang517513/rsuite.git
git@gitee.com:wang517513/rsuite.git
wang517513
rsuite
rsuite
master

搜索帮助