pionxzh / wakaru

🔪📦 Javascript decompiler for modern frontend
https://wakaru.vercel.app/
MIT License
227 stars 11 forks source link

support GopherJS bundles #92

Closed 0xdevalias closed 6 months ago

0xdevalias commented 6 months ago

cc // @vik0t0r FYI

See Also

pionxzh commented 6 months ago

This is an interesting project. I have checked a bit of details:

"use strict";
(function() {

// can be used to generate `go.mod` or `.go-version`
var $goVersion = "go1.17.9";
// prelude.js
var $global,$module;if(Error.stackTraceLimit=1/0,"undefined"!=typeof window?$glo

// chunks
$packages["github.com/gopherjs/gopherjs/js"]=(function(){var $pkg={},$init,A,B,J
$packages["runtime/internal/sys"]=(function(){var $pkg={},$init;$init=function()

Implementing such a feature is not overly complex. However, I would appreciate hearing more from @vik0t0r regarding their thoughts on this matter. I do not wish to merely duplicate the logic of another tool and potentially render it obsolete.

pionxzh commented 6 months ago

I will close this based on the response from the author in the original repo. For anyone who's interested in this, you can still manually run gopherjsRE and wakaru separately. Let's keep Wakaru focusing on being a JS debundler/unminifier.