Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
webpack
webpack5 打包后为何最外层使用的是箭头函数包裹,能否去掉?
SystemLight
·
Jan 19, 2021
· 3172 views
This topic created in 1925 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
·
982 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 20:27
·
PVG 04:27
·
LAX 13:27
·
JFK 16:27
♥ Do have faith in what you're doing.
❯