UNPKG

has-dynamic-import

Version:

Does the current environment have `import()` support?

13 lines (9 loc) 177 B
'use strict'; module.exports = function hasSyntax() { try { require('./import'); // eslint-disable-line global-require return true; } catch (e) { return false; } };