Not sure if we can work around that to avoid flagging it as unsafe-import
/* globals __non_webpack__require__ */
const realImport = new Function('modulePath', 'return import(modulePath)')
function realRequire(modulePath) {
if (typeof __non_webpack__require__ === 'function') {
return __non_webpack__require__(modulePath)
}
return require(modulePath)
}
module.exports = { realImport, realRequire }
Not sure if we can work around that to avoid flagging it as unsafe-import