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

make the path returned by tmpdir() posix style slashes #36

Merged
merged 1 commit into from
Jan 2, 2018

Conversation

bryanwood
Copy link
Contributor

The Pull Request #34 introduced posix.join to fix Windows paths but this doesn't convert the path separators returned from tmpdir to be / slashes. I think this results in webpack having paths with escaped characters.

This path is the result of posix.join(tmpdir(), 'svelte-12415.css')
C:\Users\Bryan\AppData\Local\Temp/svelte-12415.css

webpack reports an error finding a module with this path
C:UsersBryanAppDataLocalTemp/svelte-12415.css.

This PR replaces the \ with / to make it posix style.

Node Version: v8.9.2
Windows 10 Version: 1709, Build: 116299.125
svelte-loader Version: 2.3.2

Thank you :)

@Rich-Harris Rich-Harris merged commit 9d43ec6 into sveltejs:master Jan 2, 2018
@Rich-Harris
Copy link
Member

Thank you! Released as 2.3.3

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.

2 participants