"use strict";
/*
 * @poppinss/utils
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.esmRequire = void 0;
const esmResolver_1 = require("./esmResolver");
/**
 * Handles ESM `default` exports and common js vanilla exports. The `default`
 * exports are only entertained, when `esmEnabled` is set to true.
 */
function esmRequire(filePath) {
    return (0, esmResolver_1.esmResolver)(require(filePath));
}
exports.esmRequire = esmRequire;
