Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Case sensitive path problems with Windows drive letters #15

Description

@rhengles

Hello!

My project build was failing on Windows because of a difference on the case (uppercase/lowercase) of the path's drive letter on a plugin I was using, rollup-plugin-string.

I investigated the issue, and I arrived at the createFilter function. I noticed that the include and exclude vars were different only on the case of the drive letter, from the file path that was coming from rollup.

Since the file path was coming always with a uppercase drive letter, I changed the createFilter function to detect a drive letter on the include and exclude vars with the regex /^[a-z]:/i and change it to uppercase if found.

I don't know if this is the ideal solution, what do you think?

Thanks!

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