new URL().href需要加载器,vue.config.js如何配置?

项目使用的是vue-element-admin框架,使用vue.config.js配置文件
const fileUrl = new URL(../../../assets/doc/report.doc, import.meta.url).href

提示出现错误为如下: 需要配置合适的加载器:
You may need an appropriate loader to handle this file type.
| // url-loader

  var fileUrl = new URL("../../../assets/doc/report.doc", import.meta.url).href;

该问题如何解决?


npm install 不行吗