Skip to content
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

Feature/#11 windows path issue #48

Merged
merged 2 commits into from
Dec 6, 2017
Merged

Feature/#11 windows path issue #48

merged 2 commits into from
Dec 6, 2017

Conversation

StarpTech
Copy link
Contributor

No description provided.

@jamiebuilds
Copy link
Member

We'll need to do this in many more places. The tests are all using posix paths

@@ -3,7 +3,7 @@ const path = require('path');

const existsCache = new Map;

async function resolve(filepath, filenames, root = '/') {
async function resolve(filepath, filenames, root = path.parse(filepath).root) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or use root = path.delimiter?

Copy link
Contributor Author

@StarpTech StarpTech Dec 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On windows you don't get this \ or \\ or / it depends on your volume C:\\

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Will you also fix the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are hard to fix because I want to know whether it works on linux. I will wait for #35

@devongovett devongovett merged commit 67cd3b0 into parcel-bundler:master Dec 6, 2017
@devongovett
Copy link
Member

Thanks, I'll get this released shortly. Want to check other places that might need to change too, @StarpTech?

@hearsay316 hearsay316 mentioned this pull request Dec 7, 2017
@StarpTech StarpTech deleted the feature/#11_windows_path_issue branch December 17, 2017 18:34
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* parse root path, add cross-env for windows and unix support

* nromalize paths
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* parse root path, add cross-env for windows and unix support

* nromalize paths
padmaia pushed a commit that referenced this pull request Jun 5, 2020
Use exact version of @parcel/source-map of 2.0.0-alpha.4.9

Approved-by: Maia Teegarden
gorakong pushed a commit that referenced this pull request May 5, 2022
Merge v2 2021-06-28

Approved-by: Joey Slater
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.

4 participants