• File: index.js
  • Full Path: /var/www/nodejs/simo_meps_file_script/node_modules/real-require/src/index.js
  • Date Modified: 02/28/2025 8:55 PM
  • File size: 381 bytes
  • MIME-type: text/plain
  • Charset: utf-8
/* 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 }