1

I've just start an express project and want to use ES6 for both server and client. Currently I'm using a mixed style of require and import.

Should I use import over require in es6 project? Will import replace require in the future? If I want to use import and export in pure es6 way, which export syntax should I use?

2
  • ES6 modules are second-class citizens, it depends on what you need, and what tool you use, ie. jspm, Babel, etc. I'd stick to first-class Common modules for the time being, until the ES6 loader standard is finalized. Commented Aug 13, 2015 at 2:54
  • 1
    already answered here: stackoverflow.com/questions/31354559/… Commented Aug 13, 2015 at 3:00

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.