jerome
jerome

Reputation: 4977

Babel usage in web app - node, react, gulp, browserify

I would like to start using advanced JS features in an pre-existing app with a NodeJS serverside, React using the Fluxible architecture, Gulp task runner and Broserify/CommonJS front end modules.

Anybody who has been down that path or a similar path before and wants to share some insight I would much appreciate it.

Upvotes: 0

Views: 284

Answers (1)

JMM
JMM

Reputation: 26797

babel-node compiles on-the-fly. You can use the API (babel-core) to pre-compile and then run the compiled output in node. There's also a gulp-babel plugin. At the expense of extra processing overhead at build time you could hijack browserify or use module-deps to figure out the dependency graph for you, if relevant. There's a notion of adding a feature to Babel to generate a dependency graph, but it's not available currently.

Upvotes: 1

Related Questions