VulpesOS/gaia/tests/jsmarionette/runner/marionette-js-runner/lib/require_resolve.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

11 lines
251 B
JavaScript
Executable file

'use strict';
var fsPath = require('path');
module.exports = function requireResolve(path) {
try {
return require(path);
} catch (e) {
// require + resolve to current cwd if relative path.
return require(fsPath.resolve(path));
}
};