DEV Community

Discussion on: Setting up a Minimal, Yet Useful JavaScript Dev Environment

Collapse
 
stasgavrylov profile image
Stas Gavrylov

Great post, thanks for advice. It would be really nice if there was an easy way to add ES6 imports/exports to the flow.

Collapse
 
kamilogorek profile image
Kamil Ogórek

There is, but why would you need an ES6 modules in Node.js? It doesn't support it natively anyway. Or do you want to use ES6 modules and just be able to test them like I described in an article?

Collapse
 
stasgavrylov profile image
Stas Gavrylov

I know that they're not supported yet, but I hope we'll get it soon. I am a front-end dev, and so in general I have to spend a lot of time tuning webpack/babel before I start a project. And as you probably know, ES6 modules are commonly used in front-end nowadays.
Testing would also be nice.

Thread Thread
 
kamilogorek profile image
Kamil Ogórek

I got you covered! ;)

gist.github.com/kamilogorek/0a2d7f...

And then you can use ES6 modules in your tests as well as in your code :)

Thread Thread
 
stasgavrylov profile image
Stas Gavrylov

Thanks a lot, Kamil,
you're a real MVP :)