How do vue developed components package and publish to npm?

  node.js, question

I developed a component with vuejs, which was developed in the. vue format. After the development is completed, it is in index.

module.exports = require('./components/TimePicker')

Local test succeeded
Then publish it and use it yourself. Always display Cannot FindModule’./Components/TimePicker’
How should npm packages be correctly packaged and released?

According to Vux’s practice:
1.umd mode, the main entry introduces umd packaged files.
2.vue source code form, but need to cooperate with vue-loader to use.