You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
381 B
15 lines
381 B
/* eslint-disable no-new-func, camelcase */
|
|
/* 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 }
|