babeljs – Failed to use gulp and babel transpile JavaScript file – Stack Overflow

I was having a similar problem with trying to use the react preset, but this worked for me: require the preset inside your gulpfile, and then use that preset variable rather than the string name of the preset … I don’t know whether this is the best way to do it, but it worked for me at least.

Source: babeljs – Failed to use gulp and babel transpile JavaScript file – Stack Overflow

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s