匹配正则: resolve =>\W*\s*require\(\[\n*\r*\s*(.*)\n*\r*\s*\],\s?resolve\)
替换正则: () => import($1)
$1为引用第一组()内的内容
匹配删除console.log:
console.log\(.*\)(\n|\r|\f|;)$
匹配正则: resolve =>\W*\s*require\(\[\n*\r*\s*(.*)\n*\r*\s*\],\s?resolve\)
替换正则: () => import($1)
$1为引用第一组()内的内容
匹配删除console.log:
console.log\(.*\)(\n|\r|\f|;)$