设置 output.globalObject 会破坏解析后的 + gzip

作者: ntucker创建于 2019年6月23日更新于 2019年7月5日
标签Status: Needs details / reproductionstatus: Needs triage

问题描述

javascript
config.output.globalObject = "(typeof self !== 'undefined' ? self : this)"

解析后的 + gzip 文件大小会出现问题。删除此项即可解决问题。

内容来源: webpack/webpack-bundle-analyzer