I hereby claim:
- I am jaroslav-kubicek on github.
- I am kubajz_pb (https://keybase.io/kubajz_pb) on keybase.
- I have a public key ASA5pEMcdSLPJ_sxYOlHoEmeVqcEZQ2bTdsfvnK3gggcIwo
To claim this, I am signing this object:
/* @flow */ | |
import * as React from "react" | |
type Sex = "MALE" | "FEMALE" | "UNDEFINED" | |
type Props = $ReadOnly<{| | |
name: string, | |
sex: Sex, | |
address: ?React.Node, |
const path = require("path"); | |
function replacePathAlias(currentFilePath, importPath, pathMap) { | |
// if windows env, convert backslashes to "/" first | |
console.log(currentFilePath) | |
currentFilePath = path.posix.join(...currentFilePath.split(path.sep)); | |
const regex = createRegex(pathMap); | |
return importPath.replace(regex, replacer); |
I hereby claim:
To claim this, I am signing this object: