Fetch the repository succeeded.
This action will force synchronization from lizw-2015/amis-admin, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
// this config for jest to trans ts to js, And run test cases.
// only for trans ts files, can not for type checking.
module.exports = {
// targets, useBuiltIns 等选项用于编译出兼容目标环境的代码
// 其中 useBuiltIns 如果设为 "usage" Babel 会根据实际代码中使用的 ES6/ES7 代码,以及与你指定的 targets,
// 按需引入对应的 polyfill 而无需在代码中直接引入 import '@babel/polyfill',避免输出的包过大,同时又可以放心使用各种新语法特性。
presets: [
[
"@babel/preset-env",
{
modules: false,
targets: {browsers: ["> 1%", "last 2 versions", "not ie <= 8"]},
useBuiltIns: "usage",
corejs: {version: 3, proposals: true}
}
],
"@babel/react",
"@babel/preset-typescript",
],
plugins: [
["@babel/plugin-transform-runtime", {corejs: {version: 3, proposals: true}}],
"@babel/plugin-transform-object-assign",
["@babel/plugin-proposal-decorators", {legacy: true}],
["@babel/plugin-proposal-class-properties", {loose: true}],
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。