Answer the question
In order to leave comments, you need to log in
How to make such dynamic import work?
There is an idea, to load data through await import
, let's say there is a code:
async downloadData(path) {
try {
console.log(path)
this._settings = await import(/* webpackMode: "eager" */path)
} catch(err) {
alert('Ошибка подключения файла! - ' + path)
console.log(err)
}
return this
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question