File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { fileURLToPath } from 'url'
2
+
1
3
import { defineConfig } from 'vite'
2
4
import vue from '@vitejs/plugin-vue'
3
5
@@ -6,7 +8,7 @@ export default defineConfig({
6
8
plugins : [ vue ( ) ] ,
7
9
resolve : {
8
10
alias : {
9
- '@/' : new URL ( './src/' , import . meta. url ) . pathname
11
+ '@/' : fileURLToPath ( new URL ( './src/' , import . meta. url ) )
10
12
}
11
13
}
12
14
} )
Original file line number Diff line number Diff line change
1
+ import { fileURLToPath } from 'url'
2
+
1
3
import { defineConfig } from 'vite'
2
4
import vue from '@vitejs/plugin-vue'
3
5
import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -7,7 +9,7 @@ export default defineConfig({
7
9
plugins : [ vue ( ) , vueJsx ( ) ] ,
8
10
resolve : {
9
11
alias : {
10
- '@/' : new URL ( './src/' , import . meta. url ) . pathname
12
+ '@/' : fileURLToPath ( new URL ( './src/' , import . meta. url ) )
11
13
}
12
14
}
13
15
} )
You can’t perform that action at this time.
0 commit comments