I have this error when I try to compile the project with the command “npm run build-cordova”
Error: Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.
I’ve been researching this problem and haven’t found anything, has anyone experienced this?
Basically what I did recently in my project was to add this function to return the path of my statics files.
methods: {
getFile(name){
const path = `/static/icons/${name}`;
const modules = import.meta.globEager("/static/icons/*.svg')");
return modules[path].default;
}
}