Skip to content

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