first commit
This commit is contained in:
23
node_modules/cosmiconfig/dist/canUseDynamicImport.js
generated
vendored
Normal file
23
node_modules/cosmiconfig/dist/canUseDynamicImport.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.canUseDynamicImport = canUseDynamicImport;
|
||||
|
||||
/* istanbul ignore file -- @preserve */
|
||||
let result;
|
||||
|
||||
function canUseDynamicImport() {
|
||||
if (result === undefined) {
|
||||
try {
|
||||
new Function('id', 'return import(id);');
|
||||
result = true;
|
||||
} catch (e) {
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
//# sourceMappingURL=canUseDynamicImport.js.map
|
||||
Reference in New Issue
Block a user