browserify / browserify/browser-unpack

problem: couldn't parse this bundle

Open
#16 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Hi, there :-)

Due to some reasons, I can not leak my js file out for this issue. :worried:

Maybe you can give me a little advice about this.

I encounter this error at command line: `couldn't parse this bundle`, and after that, clone this repo, do debug to find where throw this error, finally, I find [this line](https://github.com/substack/browser-unpack/blob/master/index.js#L21), it will return when ast.body.length not equal 1, but here is my ast.body(see the picture below)

![2017-03-18 10 57 20](https://cloud.githubusercontent.com/assets/54462/24068473/8d2f9fb2-0bca-11e7-97bc-c60b8c7fa859.png)

There are `"ExpressionStatement"`, `"IfStatement"` there. Because I know nothing about ast things, but maybe you can give me a advice how to fix this? Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.