-
Notifications
You must be signed in to change notification settings - Fork 15
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
注释掉 OBF_LEVEL 还是会混淆函数名字 #3
Comments
如果函数是局部变量的话会被混淆,或者你贴个代码片段我看看,是什么情况 |
源代码压缩之后
|
这个好像没有什么问题吧,看你源码好像你把mOxie这个O的大小写写错了? |
或者说具体是哪个函数报错了么? 如果有浏览器的异常信息的话也贴上来看看? |
报错:没有找到 n 这个函数 |
应该是把n这个函数变成了J函数 |
!function (X, p) {
"use strict";
function J(t, r) {
for (var n, i = [], e = 0; e < t.length; ++e) {
if (n = T[t[e]] || G(t[e]), !n)throw"module definition dependecy not found: " + t[e];
i.push(n)
}
r.apply(null, i)
}
function e(e, t, n) {
if ("string" != typeof e)throw"invalid module definition, module id must be defined and be a string";
if (t === p)throw"invalid module definition, dependencies must be specified";
if (n === p)throw"invalid module definition, definition function must be specified";
J(t, function () {
T[e] = n.apply(null, arguments)
})
} 这里的J是局部变量,命名为n还是J都没关系哦 |
打包的时候所有脚本都参与打包了么? 或者你加一下我微信 genify 我看看具体什么情况 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
注释掉 OBF_LEVEL 还是会混淆函数名字
The text was updated successfully, but these errors were encountered: