-
Notifications
You must be signed in to change notification settings - Fork 48
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
frida-compile does not work with external modules #61
Comments
same problem :( I fixed it using esbuild instead frida-compile. |
@kursattkorkmazzz what does your esbuild config look like? I'm struggling to get frida to handle my generated import/requires for libraries. Looks like frida has its own ESM bundle format. |
@rubenvereecken My tsconfig look like;
My package.json scripts look likse;
And it just worked. But don't forget the |
@kursattkorkmazzz I'm really surprised you got that to work – what do your Because reusing your
I also tried Wondering whether it's got something to do with you loading |
@rubenvereecken Firstly, sorry for late answering. Actually my output doesn't contain any import or require terms. All codes are built into one file. This is my example output file how looks like: Drive Because my device is not rooted, I prefer to choose gadget. I know that (not sure), even I use re.frida.gadget, It uses script for injecting. Also, your build file shouldn't contain any import or require statment as mine. You may need to adjust your configuration. You use esbuild with --bunde and --platform parameters, right? |
@kursattkorkmazzz amazing, thanks for all this help and input! I should have dug deeper. Yes, I'm using |
frida-compile version:
16.1.5
OS:
Windows 11
test.ts
https://www.npmjs.com/package/json5
compile cmd:
frida-compile test.ts -o test.js
frida output
This code works on frida-compile 10.2.5
The text was updated successfully, but these errors were encountered: