Is it possible, at the moment, to use this ES2015 feature in NodeJS without using the Babel or Traceur transpilers?
import Promise from 'bluebird' Is it possible, at the moment, to use this ES2015 feature in NodeJS without using the Babel or Traceur transpilers?
import Promise from 'bluebird' 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.
var module = require("./module/_core.js") - Pleshevskiyimport "./module/_core" as module . - D-sideSource: https://ru.stackoverflow.com/questions/514835/
All Articles