This plugin can get the root directory of the project directly
const root = require("root-path/index") console.log(root)