Skip to content

Instantly share code, notes, and snippets.

@LucasBadico
Created November 11, 2017 11:07
Show Gist options
  • Save LucasBadico/1ef95a7b8f4d2b54c56c0159b0711b4e to your computer and use it in GitHub Desktop.
Save LucasBadico/1ef95a7b8f4d2b54c56c0159b0711b4e to your computer and use it in GitHub Desktop.
if (pluginHelper.startsWith(givenPath, '$/')) {
path.node.source.value = pluginHelper.transformReflectiveToRootPath(
givenPath,
state.file.opts.filename,
rootPathSuffix,
testFolder,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment