1 Star 0 Fork 5

remonde/Talk

forked from Gitee 极速下载/Talk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
babel.config.js 866 Bytes
一键复制 编辑 原始数据 按行查看 历史
/**
* This is a project wide babel configuration.
* https://babeljs.io/docs/en/config-files#project-wide-configuration
*/
// Note: If Webpack env is set, we are building for the client.
const plugins =
process.env.WEBPACK === "true"
? [
"use-lodash-es",
"lodash",
[
"@babel/plugin-transform-runtime",
{
absoluteRuntime: true,
corejs: 3,
helpers: true,
regenerator: true,
useESModules: true,
version: "^7.10.3",
},
],
]
: [];
const environment =
process.env.WEBPACK === "true"
? { modules: false }
: { targets: { node: "current" }, modules: "commonjs" };
module.exports = {
babelrcRoots: ["./src/core/client/*"],
plugins,
presets: [["@babel/env", environment]],
sourceType: "unambiguous",
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/remonde/Talk.git
[email protected]:remonde/Talk.git
remonde
Talk
Talk
develop

搜索帮助