14 lines
		
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
Object.defineProperty(exports, "__esModule", { value: true });
 | 
						|
function dynamicImportLoader() {
 | 
						|
    let importESM;
 | 
						|
    try {
 | 
						|
        importESM = new Function("id", "return import(id);");
 | 
						|
    }
 | 
						|
    catch (e) {
 | 
						|
        importESM = null;
 | 
						|
    }
 | 
						|
    return importESM;
 | 
						|
}
 | 
						|
module.exports = dynamicImportLoader;
 |