Home
Sign Up
Sign In
V2EX
›
webpack
webpack5 打包后为何最外层使用的是箭头函数包裹,能否去掉?
SystemLight
·
Jan 19, 2021
· 3437 views
This topic created in 2027 days ago, the information mentioned may be changed or developed.
webpack5 打包后如下,并非 babel 配置问题,包裹内的代码没有问题。
(()=>{"use strict";console.log("hello")})();
webpack5
打包
包裹
babel
1 replies
•
2021-01-19 20:32:45 +08:00
1
czzhengkw
Jan 19, 2021
https://webpack.js.org/configuration/output/#outputenvironment
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1026 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 18:34
·
PVG 02:34
·
LAX 11:34
·
JFK 14:34
♥ Do have faith in what you're doing.
❯