Is it possible, at the moment, to use this ES2015 feature in NodeJS without using the Babel or Traceur transpilers?

import Promise from 'bluebird' 

    2 answers 2

    It is impossible. They are not yet ready in V8 https://bugs.chromium.org/p/v8/issues/detail?id=1569

       node --es_staging 

      or

       node --harmony 

      The question only arises why it is needed in the node ... But it is up to you how to use it.

      • Thank. I'll try as soon as I get to the laptop. And what are these new opportunities are bad, in your opinion? - Eugene
      • I'm not saying that they are bad, just in Node.js itself is built on modular programming. var module = require("./module/_core.js") - Pleshevskiy
      • one
        @Eugene If you want to write a library, then anyone who does not use ES6 will not be able to use it. - D-side
      • one
        @Pleshevskiy what you describe is the same as import "./module/_core" as module . - D-side
      • one
        @Eugene to run will have to run the node in ES6 mode, even those who are not surrendered to ES6. But this is all an excuse, you need to change to new versions. - D-side