I’m reusing an external library within my custom component. I can download the js-lib and upload it into my component file storage. Then, I’m doing
import something from './lib/extlib.all.min.js';
All this works fine.
I found that it is not possible to do something like this:
import something from 'https://cdn.jsdelivr.net/npm/extlib@11';
Upon saving there is the error
The target environment doesn’t support dynamic import() syntax so it’s not possible to use external type ‘module’ within a script
Is it somehow possible to use a CDN server for importing libraries into custom components?