-
Notifications
You must be signed in to change notification settings - Fork 128
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
Multiple bundles #107
Comments
Already on your todo list! |
If it's not obfuscated (eg. just minimised), you may have some luck with wakaru in the meantime. I think it handles multi-chunk bundles from memory: |
Funny thing, I came here linked by them because they doesn't do obfuscated code, but I have a webpack bundle (and maybe multiple bundle, still reverse engineering the code) split in multiple chunks & files (I think it's a Next framework). For now I do webcrack on all files, keeping the generated module and passing them to wakaru. It's something. Anyhow, in my case I have a I removed the hash and shortened the VERY long list of mangled variables that are used to point to a chunks. self.__BUILD_MANIFEST = function (s, c, [...]) {
return {
__rewrites: {
beforeFiles: [],
afterFiles: [],
fallback: []
},
"/": [s, t, [...], "static/chunks/pages/index-[hash].js"],
"/404": [s, e, c, "static/chunks/pages/404-[hash].js"],
"/_error": ["static/chunks/pages/_error-[hash].js"],
sortedPages: ["/", "/404", "/_app", "/_error", [...]]
};
}("static/chunks/8621-[hash].js", "static/chunks/6579-[hash].js", [...]);
if (self.__BUILD_MANIFEST_CB) {
self.__BUILD_MANIFEST_CB();
} |
The manifest from Next is very useful to guess the complete filename. But I think it would be hard to support this feature since we won't be able to restore the folder or filename, all we get is a module id. One possible solution is matching the dependencies. "routes/status": {
"id": "routes/status",
"parentId": "root",
"path": "status",
"hasAction": false,
"hasLoader": false,
"hasClientAction": false,
"hasClientLoader": false,
"hasErrorBoundary": false,
"module": "/assets/m8vsowdoh2jxozsr.js",
"imports": ["/assets/dckfpppmklfb86fh.js", "/assets/f8f8l0d0j83ubfpm.js", "/assets/j36pxwjzprolzjey.js"],
"css": ["/assets/root-e9fk4trk.css"]
}, So, like this one, we can see that it depends on |
@sharky98 While not directly relevant to your main issue here, you might find benefit in some scripts I wrote for another project to extract the full list of chunks/etc from the
It's also worth noting that in newer versions of Next.js, the
@pionxzh While guessing the filename/folder structure would definitely be a nice 'feature add'; I think the main request here wasn't even going that deeply, and is just about being able to pass in multiple chunks/code files and have them all handled together properly as 'one bundle of code'. |
It would be cool of this could support multiple bundles.
I was trying to re an app earlier and it was packed into separate bundles, had to do them one after another and sort of hack it all back together.
Amazing project, I hope to contribute one day.
The text was updated successfully, but these errors were encountered: