question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I gulp with ES6/Harmony

See original GitHub issue

My module uses ES6/Harmony features and as such I need to run node like this:

node --harmony <app.js>

(There’s no way of enabling Harmony features at runtime - see this).

So to get gulp working I’m doing this:

node --harmony `which gulp`

Not nice, but it works. Unfortunately even if the build fails the exit code for the run is 0. Is there any way of getting this working?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ratbeardcommented, Feb 24, 2015

Note that using harmonize doesn’t allow you to use es6 syntax in the gulpfile.js itself.

0reactions
mik01ajcommented, Feb 11, 2015

A better way would be to use harmonize. See: http://stackoverflow.com/a/28412779/115493

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm:gulp-es6-module-jstransform | Skypack
Transpile ES6 modules to CommonJS with es6-module-jstransform. Usage no npm install needed! Copy. Open in CodePen.
Read more >
Uglify SyntaxError: Unexpected token: punc ()) - Stack Overflow
I am trying to use gulp in order to ...
Read more >
gulp-render CDN by jsDelivr - A CDN for npm and GitHub
A free, fast, and reliable CDN for gulp-render. Pre-render React components at ... gulppluginreactjsxrenderrenderingjavascriptes6harmonycompilertranspiler.
Read more >
nodequad - npm Package Health Analysis | Snyk
Node library to communicate with aeroquad multicopter platform For more information about how to use this package see README · Ensure you're using...
Read more >
rewriting - Npms.io
local_offercodegen, desugaring, ecmascript, es5, es6, harmony, javascript, ... Gulp plugin that transpiles ES6 Unicode regular expressions to ES5.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found