Home
Sign Up
Sign In
V2EX
›
webpack
webpack5 打包后为何最外层使用的是箭头函数包裹,能否去掉?
SystemLight
·
Jan 19, 2021
· 3310 views
This topic created in 1977 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
·
830 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms ·
UTC 22:23
·
PVG 06:23
·
LAX 15:23
·
JFK 18:23
♥ Do have faith in what you're doing.
❯