by koolba · 10y ago · 0 comments
If you want to use all the ES6 features, no single modern browser implements them all (Webkit is still lacking on modules) and so you will need to use a collection of polyfills.
try {
eval('"use strict"; import "jquery";');
} catch (e) {
// No imports.
}
but I wouldn't really recommend it.