// NOTICE: This file is generated by Rollup. To modify it,
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
'use strict';

const node_path = require('node:path');
const node_url = require('node:url');

/**
 * Dynamic import wrapper for compatibility with absolute paths on Windows
 *
 * @see https://github.com/stylelint/stylelint/issues/7382
 *
 * @param {string} path
 */
function dynamicImport(path) {
	return import(node_path.isAbsolute(path) ? node_url.pathToFileURL(path).toString() : path);
}

module.exports = dynamicImport;
