Skip to content

jsx transformation tool incorrectly process path parameters on windows machines #977

Closed
@Cwallice

Description

@Cwallice

At the moment following function

function absolutePath(workingDir, pathToJoin) {
    if (pathToJoin) {
        workingDir = path.normalize(workingDir);
        pathToJoin = path.normalize(pathToJoin);

        if (pathToJoin.charAt(0) !== "/")
            pathToJoin = path.join(workingDir, pathToJoin);
    }
    return pathToJoin;
}

in commoner.js doesn't procees any absolute path arguments since it expects them to be in unix style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions