webpack 4 源码主流程分析(四):reslove 前的准备

compiler.run 是整个编译过程启动的入口,执行: this.hooks.beforeRun.callAsync(this, err => { //... this.hooks.run.callAsync(this, err => { //... // recordsInputPath是webpack配置中指定的读取上一组records的文件路径 this.readRecords(err => { //... this.compile(o...