iview / iview/iview-admin

打包后的main.js里面存在很多es6的语法,好像是没有转成es5,请问有人遇到这个问题了吗?

Open
#767 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.4k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

`[{
name: "Fee", title: "费用管理", path: "/", access: !1, children: [{
name: "Fee01", title: "仓储费用管理", path: "/feeMang", access: !1, meta: {title: "仓储费用管理"},
component: ()=>n.e(32).then(n.bind(null, 577))
}, {
name: "Fee02", title: "运输费用管理", path: "/feeAtan", access: !1, meta: {title: "运输费用管理"},
component: ()=>n.e(33).then(n.bind(null, 578))
}], component: r.a, icon: "icon-kucun-xianxing"
}];
localStorage.setItem("router", JSON.stringify(l));
var f = [i, c, s, ...l, u, a, o]`
上面是部分打包后的main.js中的代码

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the generated main.js snippet and reproducing the production build. Then trace the repository's webpack and transpilation configuration to determine why ES6 syntax remains. Done means the bundled main.js no longer contains the reported ES6 syntax and the production build still succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.