I want to compile the sub-module es6 file into es5 in node, and then package it into a file. There is no problem in running.

  node.js, question

The page refers to a js file. This js file uses other modules. I want to turn these modules into a js, and the pages can be used directly.
Don’t want to use gulp, just let node reference various middleware to implement. Is there a good plan?

Recommend webpack, node itself supports the writing of CMD.