Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复JS解析错误,但是没有报错的问题 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

修复JS解析错误,但是没有报错的问题 #5

wants to merge 1 commit into from

Conversation

neekey
Copy link

@neekey neekey commented Oct 14, 2013

UglifyJS.parse 方法的执行,在遇到JS语法问题等时会抛出错误,但是grunt在执行任务的时候不会主动去获取到这些错误,导致kmc直接中断执行,但是不报任何错误,切后续的任务还是会继续执行。对用户来说遇到这样的问题会很难定位到问题。

举例,用户有如下文件:

- a.js
- b.js
- c.js

b.js中包含内容KISSY.('hello, throw me out!'),于是在执行kmc的时候解析到 b.js 时候出错,c.js直接就没有被打包,没有报错,但是grunt继续执行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant