模组镜头 安装 yarn add module-lens 用法 import { resolve } from 'module-lens' ; let path = resolve ( 'foo/bar' , { sourceFileName : __filename , baseUrlDirName : __dirname , } ) ; console . log ( path ) ; let specifier = build ( path , { sourceFileName : __filename , baseUrlDirName : __dirname , } )