Skip to content

Commit

Permalink
fix: don't include a leading slash ('/') in path.resolve parameters (…
Browse files Browse the repository at this point in the history
…#161)

This breaks running the example on Windows.

Co-authored-by: Alex Potsides <alex@achingbrain.net>
  • Loading branch information
w-66 and achingbrain authored Jan 22, 2024
1 parent 084cebc commit 73453d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react()],
resolve: {
alias: [{ find: '@', replacement: path.resolve(__dirname, '/src') }]
alias: [{ find: '@', replacement: path.resolve(__dirname, 'src') }]
}
})

0 comments on commit 73453d6

Please sign in to comment.