This tool is able to generate the dependency graph of the project and bundle the whole project to a single script file, plus converting ES6 to ES5, so that the all the modules in the project can be loaded in browser environment.
npm i @kevinhe/minipack
After installing, a config file (minipack.config.js) will be auto generated under the project root, you should specify the entry point of the project, which will be used as the start point by minipack.
ENTRY_POINT = "./src/index.js" (default path)
OUTPUT_DIR = "./dist" (default path)
node minipack.script.js