es6 modules with node : My package json is configured ok to import es6 modules using babel:
  

    "scripts": {
        "start": "nodemon src/index.js --exec babel-node --presets es2015,stage-2",
        "build": "babel src -d dist",
        "serve": "node dist/index.js"
      },

This is my index file:

    import test from './test'
    console.log(test)
    console.log(test())

test file:

    let test = () => console.log('test');
    export default
When I run the code, I got:

    [Function: test]
    test
    undefined

Where does the undefined come from?