如何保留函数参数名称而又不取消所有修改?

问题描述

在我的terser操作中启用重排功能时,功能参数名称也会被重排。例如:

export class MyClass {
    constructor(foo,bar) {
        this.foo = foo;
        this.bar = bar;
    }
}

// becomes

export class MyClass{constructor(s,o){this.foo=s,this.bar=o}}

因为我直接从HTML页面上的脚本标签引用了这些缩小的文件,所以为intellisense提供未修饰的函数参数名称会有所帮助,但是我不想关闭 all ,例如作为非参数变量名称的缩写。是否有允许在terser中使用的设置?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...