/** * 获取babel配置 * * write 是否写文件,默认 true * * isServer 是否执行服务端代码的编译, 默认 false * * assetPrefixs 静态资源前缀, 默认 '/' * * handleStyle 是否处理样式,主要在编译dll时不需要处理样式,默认true * * subprocess 规定是否启用子进程,默认为false */ export default function getBabelConfig({ write, isServer, assetPrefixs, handleStyle, subprocess, ts, dll }?: { write?: boolean | undefined; isServer?: boolean | undefined; assetPrefixs?: string | undefined; handleStyle?: boolean | undefined; subprocess?: boolean | undefined; ts?: boolean | undefined; dll?: boolean | undefined; }): { compact: boolean; babelrc: boolean; presets: any; plugins: any; };