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

Gulp Babili issue #454

Merged
merged 4 commits into from Mar 7, 2017
Merged

Gulp Babili issue #454

merged 4 commits into from Mar 7, 2017

Conversation

vigneshshanmugam
Copy link
Member

  • options was not passed properly..
  • But still couldn't figure out why the comments are removed for the previous case though..

@vigneshshanmugam
Copy link
Member Author

rebase screw up fixing it..

@boopathi
Copy link
Member

boopathi commented Mar 3, 2017

Think you forked from #395 branch

@hzoo
Copy link
Member

hzoo commented Mar 3, 2017

You can run git fetch upstream master && git fetch rebase master

@vigneshshanmugam
Copy link
Member Author

Done :) thanks guys

return new Promise((resolve, reject) => {
const stream = gulpBabili({
const stream = gulpBabili({}, {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the options miss I was talking about @boopathi

@@ -1,11 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`gulp-babili comments should remove all comments when false 1`] = `"foo(),bar(),baz();"`;
exports[`gulp-babili comments should remove all comments when false 1`] = `"function foo(){}bar();var a=baz();"`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

converting foo() to function foo() {} is the weirdest thing to get it working

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes lol.. Dont even know how its working.. Just want to let you guys know there is something wrong!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, when converting multiple statements to sequence expressions, the comments are dropped. Should add a test case that this doesn't affect the surrounding block comments.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly.. add a separate test case?

@vigneshshanmugam vigneshshanmugam changed the title Gulp issue Gulp Babili issue Mar 3, 2017
@boopathi boopathi merged commit 269a8f9 into babel:master Mar 7, 2017
@vigneshshanmugam vigneshshanmugam deleted the gulp-issue branch March 9, 2017 19:02
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.

None yet

3 participants