I wrote a module with es6 and publish to the npm, I want to use it in another project, so I type like this:
import {ActionButton} from \'rcomponents\'
You can use https://www.npmjs.com/package/babel-node-modules for this case
npm install --save-dev babel-node-modules require('babel-node-modules')([ 'helloworld' // add an array of module names here ]);
and then it compiles listed modules as other files