frida / frida-compile

Compile a Frida script comprised of one or more Node.js modules
Other
190 stars 48 forks source link

frida-compile does not work with external modules #61

Open Ouroboros opened 1 year ago

Ouroboros commented 1 year ago

frida-compile version:

16.1.5

OS:

Windows 11

test.ts

https://www.npmjs.com/package/json5

import { parse } from 'json5';

console.log(parse);

compile cmd:

frida-compile test.ts -o test.js

frida output

SyntaxError: Could not find export 'parse' in module '/node_modules/json5/dist/index.mjs'

This code works on frida-compile 10.2.5

kursattkorkmazzz commented 1 day ago

same problem :(

I fixed it using esbuild instead frida-compile.