Skip to content

fix: bundle paths on windows (reverts https://github.com/egoist/rollup-plugin-postcss/pull/190) #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rpocklin
Copy link

I am attempting to run the project Owncloud which runs fine in MacOS / Linux environments but fails in Windows.

This project uses postcss v8.2.15.

Below is the error:

postcss-broken

It appears related to this dependency, specifically (and ironically) it seems the normalizePath method is not working as expected and prevents the resolution of the bundles dictionary from working properly.

I have reverted the original code change which discusses fixing this issue initially (see #190) - it is possible other dependent libraries have been patched or updated since this PR was accepted rendering it obsolete and actually causing the very problem it aims to solve.

I locally built and replaced the node_modules/rollup-plugin-postcss/dist/index.js on the original project with the build based on this PR source code branch, and it fixed the issue (see screenshot below):

postcss-working

I have tested this with multiple versions of Node.js (v12/v14 LTS) and also on Windows/WSL2 (Ubuntu) and Windows vanilla (Command Prompt) and MacOS.

Happy to answer any questions or test out further scenarios if you have a hesitation to accept this change.

@rpocklin rpocklin force-pushed the fix-bundle-paths-on-windows branch from 82f15ac to 8fe3791 Compare July 27, 2021 11:04
@rpocklin
Copy link
Author

@wardpeet @egoist @SASUKE40 I realise there's other PRs needing attention and appreciate your time is valuable, just looking for someone to approve the workflow to run at least?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant