MCPcopy Index your code
hub / github.com/react/react / resolvePath

Function resolvePath

scripts/rollup/utils.js:77–83  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

75}
76
77function resolvePath(filepath) {
78 if (filepath[0] === '~') {
79 return path.join(process.env.HOME, filepath.slice(1));
80 } else {
81 return path.resolve(filepath);
82 }
83}
84
85module.exports = {
86 asyncCopyTo,

Callers 2

syncReactDomFunction · 0.85
syncReactNativeHelperFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected