Closed kumavis closed 5 years ago
Does not work with browserify. Underlying issue is here https://github.com/sindresorhus/resolve-from/issues/10
Some context on how that gets called:
resolveFrom is called with these values
resolveFrom
resolveFrom(path.dirname(callerPath()), moduleId) resolveFrom(path.dirname(undefined), moduleId) resolveFrom(".", "./foo")
resolveFileName is called with these values
resolveFileName
const resolveFileName = () => Module._resolveFilename(moduleId, { id: fromFile, filename: fromFile, paths: Module._nodeModulePaths(fromDir) }); const resolveFileName = () => Module._resolveFilename("./foo", { id: "/http:/localhost:9966/noop.js", filename: "/http:/localhost:9966/noop.js", paths: Module._nodeModulePaths("/http:/localhost:9966") });
Same answer as https://github.com/sindresorhus/resolve-from/issues/10#issuecomment-447524553.
Does not work with browserify. Underlying issue is here https://github.com/sindresorhus/resolve-from/issues/10
Some context on how that gets called:
resolveFrom
is called with these valuesresolveFileName
is called with these values