Reconstructing a Vue and Three.js app from a single Webpack bundle

I’ve been working on a small project that tries to reconstruct readable source code from bundled JavaScript.

I recently tested it on a real-world example: a Vue 2 + Three.js tower defense game that was bundled into a single webpack file

The tool attempts to:

recover module boundaries rebuild a project-like structure restore variable and function naming

In this case, it managed to reconstruct most of the project:

~90% file mapping ~93% naming recovery core game logic preserved

Example repo (with before/after): https://github.com/zhongguagua/jsunpack-example

It’s still very much a work in progress, and there are limitations (missing imports, some incorrect mappings, etc).

Curious to hear feedback from people who have worked with reverse engineering or JS tooling.

1 points | by YufanZhang 1 hour ago

0 comments