You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
363 B

const { Bootstrap } = require('@midwayjs/bootstrap');
// 显式以组件方式引入用户代码
Bootstrap.configure({
// 这里引用的是编译后的入口,本地开发不走这个文件
// eslint-disable-next-line node/no-unpublished-require
imports: require('./dist/index'),
// 禁用依赖注入的目录扫描
moduleDetector: false,
}).run();