benawad / destiny

Prettier for File Structures
MIT License
3.53k stars 80 forks source link

~Changes imports to use incompatible \\ (double backslashes) on Windows~ Duplicate #141

Closed andria-dev closed 4 years ago

andria-dev commented 4 years ago

When running destiny on Windows from powershell, it changes all of the imports to use double backslashes so:

import './App'

became

import '.\\App'

And this completely doesn't work when running my code with vite serve src as I believe it's using ES Module import syntax in the browser to resolve files

andria-dev commented 4 years ago

Is there a way to disable these backslashes? If so, is there a way we could add it to the README and the --help info?

AnatoleLucet commented 4 years ago

Yes, we're aware of that from #135. A fix is going to be reviewed #140.