You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
createFilterfunction. 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
createFilterfunction to detect a drive letter on the include and exclude vars with the regex/^[a-z]:/iand change it to uppercase if found.I don't know if this is the ideal solution, what do you think?
Thanks!