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

upgrade from babel-core^6.18 to @babel/core^7.2.3 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CHNB128
Copy link

@CHNB128 CHNB128 commented Feb 7, 2019

A try to use implicit-return over babel 7 and catch some error.
Then decide to update you lib from 6 to 7 and it made sense.

@CHNB128 CHNB128 force-pushed the master branch 4 times, most recently from 57f8408 to d7b11c5 Compare February 8, 2019 11:08
@@ -52,7 +56,11 @@ export default ({ types: t }) => {
const lastNode = body[lastIndex]

// skip unreturnable statements
if (unreturnableStatements.has(lastNode.type)) return
try {
if (unreturnableStatements.has(lastNode.type)) return

Choose a reason for hiding this comment

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

The obvious perceivable error here would be something along the lines of Cannot read property 'type' of null or undefined, so is a try/catch and using errors for control flow needed here?

@@ -1,2 +1 @@
node_modules
lib

Choose a reason for hiding this comment

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

Is there a particular reason why lib is commented out in the gitignore instead of perhaps npmignore? On the flipside, unprocessed sources can be npm ignored

@wzhouwzhou
Copy link

+1 on this thread, it would be amazing if @miraks responded to this and kept this up-to-date

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.

2 participants