DEV Community

Discussion on: Using Parcel Bundler with React

Collapse
 
iam_timsmith profile image
Tim Smith

I don't think parcel works with nodejs in terms of compiling es6+, so I could see that being a reason. Hopefully they add that support soon though.

Thread Thread
 
theoutlander profile image
Nick Karnik

Parcel shouldn’t be used with nodejs, IMO. Node supports most of the ES6 syntax. The latest also supports import/export of modules with the new syntax. Is there a reason you would want to use parcel with node?

Thread Thread
 
theoutlander profile image
Nick Karnik

If you were referring to ES6+, you can set up .babelrc to include specific plugins and that should take care of the issue.

Thread Thread
 
iam_timsmith profile image
Tim Smith

Oh, good to know! I'm still learning Node, so I thought I'd have to use a tool like webpack or parcel to handle ES6+. Thanks for the info!

Thread Thread
 
theoutlander profile image
Nick Karnik

Sure. Check out node.green/ if you haven't. It shows all the features supported by node.

Thread Thread
 
iam_timsmith profile image
Tim Smith

Thanks! I'll check that out!