richardfuca / react-native-decompiler

Decompile React Native bundles
GNU Affero General Public License v3.0
104 stars 12 forks source link

Webpack V5 not supported #186

Open tonysepia opened 3 years ago

tonysepia commented 3 years ago

First of all, thank you for the great tool!

I have a question about the performance of the software. I am trying to use the guidance provided in the output:

Finding modules...

[!] No modules were found!
[!] Possible reasons:

[!] - The React Native app is unbundled. If it is, export the "js-modules" folder from the app and provide it as the --js-modules argument

I am sure the app is bundled, as I can see the following files in the folder: 0.xxxx.chunk.js -> 23.xxxx.chunk.js main.xxx.chunk.js runtime-main.xxx.js

[!] - The bundle is a binary/encrypted file (ex. Facebook, Instagram). These files are not supported It does not appear to be an encrypted/binary file, as I can see meaningful (in business-sense) variable names inside the chunks

[!] - The provided Webpack bundle input is not or does not contain the entrypoint bundle I have tried to run the script on the following files: main.xxx.chunk.js runtime-main.xxx.js I can't imagine there being another entry point, as all the present filenames are listed above. It has to be one of these, unless I am mistaken

[!] - The file provided is not a React Native or Webpack bundle. The file contains the following string, so I assume that it is a Webpack bundle: var f = window.webpackJsonp

Is there anything else I can check?

Thank you in advance

richardfuca commented 3 years ago

Can you provide the first couple of characters from runtime-main.xxx.js, main.xxx.chunk.js, and from one of the 0.xxxx.chunk.js -> 23.xxxx.chunk.js files?

tonysepia commented 3 years ago

Hi Richard,

Thank you for responding!

Here you are:

runtime-main.xxx.js !function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],d=0,s=[];

main.xxx.chunk.js (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1311:function(e,n,t){"use strict";var r=t(354),a=t(577)

0.xxxx.chunk.js (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{3550:function(t,e,r){t.exports=function(){"use strict";

21.xxxx.chunk.js (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{6086:function(n,o){function e(n){

Thank you!