You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The root level IIFE didn't have an array for it's first parameter, aborting... #7
Error: The root level IIFE didn't have an array for it's first parameter, aborting...
at webpackDecoder (~\debundle-test1\node_modules\debundle\src\decoders\webpack.js
:19:11)
at Object.<anonymous> (~\debundle-test1\node_modules\debundle\src\index.js:104:13
)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
@lenin-anzen Looks like the bundle you're trying to debundle stores it's modules in an unfamiliar place. Using a tool like http://astexplorer.net/, you should be able to figure out where they are located, and specify the path in the configuration file with the property moduleAst.
In addition, I suspect that your entryPoint is wrong, the bundle contains this code which makes me thing that your entrypoint is actually module 0:
I am having the same issue. Could you please explain where in the astexplorer one finds the AST of a bundle.js file? Not very familiar with the whole AST thing...
Activity
1egoman commentedon Jul 20, 2017
@lenin-anzen Looks like the bundle you're trying to debundle stores it's modules in an unfamiliar place. Using a tool like http://astexplorer.net/, you should be able to figure out where they are located, and specify the path in the configuration file with the property moduleAst.
In addition, I suspect that your
entryPointis wrong, the bundle contains this code which makes me thing that your entrypoint is actually module 0:lenin-anzen commentedon Jul 28, 2017
I found that the one that makes the package is the following project:
With the next notes:
The model.xml file is:
willvlad commentedon Mar 4, 2018
I am having the same issue. Could you please explain where in the astexplorer one finds the AST of a bundle.js file? Not very familiar with the whole AST thing...
willvlad commentedon Mar 4, 2018
Also, wondered if someone knows how to find the correct entrypoint for a webpack bundle??
nikogu commentedon Oct 15, 2018
@willvlad make sure your bundle file only have webpack code, the
amd、umdmode config need remove. exp: https://github.com/1egoman/debundle/blob/master/test_bundles/webpack/bundle.jswebpack entrypoint is 0