DEV Community

Discussion on: Using Parcel Bundler with React

Collapse
 
iam_timsmith profile image
Tim Smith

I love parcel. I use it so much. I can get it up and running in ~5 minutes! I hope more projects start moving over to this.

Collapse
 
theoutlander profile image
Nick Karnik

Agree! Most people are still stuck in the webpack world and afraid to switch because of the effort it took to learn webpack. So far I've had one client who ran into an issue with Parcel and went back to Webpack, but it was related to them using something around WebSockets.

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!