j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
870 stars 100 forks source link

Support for Vercel #60

Closed AmarnathCJD closed 7 months ago

AmarnathCJD commented 7 months ago

Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/node_modules/webcrack/dist/index.js from /var/task/api/unobf.js not supported. Instead change the require of index.js in /var/task/api/unobf.js to a dynamic import() which is available in all CommonJS modules.

j4k0xb commented 7 months ago

see https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c