Open moshfeu opened 3 years ago
If you use it in electron,I ssuggest you add ”downloads-folder “ the wepback config externals, At the same time, find a way to add it to the · dependencies · field of "dist_electron \ bundled \ package. JSON"
dist_electron\bundled\package.json
"dependencies": {
"downloads-folder": "^3.0.1"
}
webpack cofnig
// this is vue.config.js
chainWebpack(config) {
config.externals({ "downloads-folder": 'require("downloads-folder")' });
config.target("electron-renderer");
}
If you use Vue cli plugin electron builder , it has done the above for you, Hope to help you.
There is an open issue on registry-js: https://github.com/desktop/registry-js/issues/190
I just wanted to bring it to your attention