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

Use vite's normalizePath for plugin compatibility on Windows #1

Closed
olemarius opened this issue Mar 30, 2021 · 1 comment
Closed

Use vite's normalizePath for plugin compatibility on Windows #1

olemarius opened this issue Mar 30, 2021 · 1 comment

Comments

@olemarius
Copy link
Contributor

Paths gets incorrect on Windows, as mentioned here wheatjs/vaguer-generate-exports#1

I fixed this using a simple replace, but as mentioned by @patak you can use normalizePath https://discord.com/channels/804011606160703521/804439226439565333/826152444392112178

import { normalizePath } from 'vite'
normalizePath('my/path')

More about normalizePath here https://vitejs.dev/guide/api-plugin.html#rollup-plugin-compatibility

@wheatjs
Copy link
Owner

wheatjs commented Apr 1, 2021

Fixed via #2

@wheatjs wheatjs closed this as completed Apr 1, 2021
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

No branches or pull requests

2 participants