Skip to content

fix: Make babel-plugin-minify-infinity work again. (#839)#840

Closed
Cyp wants to merge 1 commit intobabel:masterfrom
Cyp:fix-minify-infinity
Closed

fix: Make babel-plugin-minify-infinity work again. (#839)#840
Cyp wants to merge 1 commit intobabel:masterfrom
Cyp:fix-minify-infinity

Conversation

@Cyp
Copy link
Copy Markdown

@Cyp Cyp commented May 14, 2018

Here's an attempt at fixing #839. I don't know whether there are any other cases that need catching.

@Cyp Cyp requested a review from boopathi as a code owner May 14, 2018 09:09
@Cyp Cyp force-pushed the fix-minify-infinity branch from 73eec1d to 0bc953c Compare May 14, 2018 09:23
);
const badTransforms = {
ArrayPattern: true,
AssignmentExpression: true,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doesn't this prevent transforming x = Infinity?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, I missed testing that case.

@boopathi
Copy link
Copy Markdown
Member

Ah!. I worked on the same thing and have #841 .

@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label May 14, 2018
@Cyp Cyp force-pushed the fix-minify-infinity branch from 0bc953c to 538237b Compare May 14, 2018 11:05
@Cyp
Copy link
Copy Markdown
Author

Cyp commented May 14, 2018

Don't know if it's the right approach, but I've updated my version in case.

@vigneshshanmugam
Copy link
Copy Markdown
Member

Thanks for the PR @Cyp

Fixed by #841

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tag: Bug Fix Pull Request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants