New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有些js文件不想进行treeshaking,怎么配置 #997
Comments
Please provide a reproduction as well as the expected behavior. |
look under code Edit by @rschristian for clarity: const a = 'a';
const b = 'b';
const c = 'c';
let ary = [];
for (let val of ['a','b','c']){
ary.push(eval(val))
}
console.log(ary)
|
This is probably an upstream issue, but will look into it. |
perfect, can you speak chinese ? can ,netx time please speak it。wowo |
No, I cannot. Just tossed it into Google translate and hoped for the best. |
ok,thanks |
Upstream "issue" in Rollup, see: rollup/rollup#3228, rollup/rollup#2963 We don't really have a solution for this here, nor does there seem to be one upstream. Using Closing this out as there's nothing actionable for us here to my knowledge. |
很多变量,定义后需要动态调用,但是打包的时候直接把变量打包没了
The text was updated successfully, but these errors were encountered: