File tree 9 files changed +17
-4
lines changed
config/cypress-ct/cypress/support
9 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"paths" : {
4
+ // TODO: no longer needed after TS 5.4
5
+ "#src/*" : [" ./src/*" ],
6
+ // Deprecated, use `#src` instead (configured in `package.json` `imports` field)
4
7
"@/*" : [" ./src/*" ]
5
8
}
6
9
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"type" : " module" ,
4
+ "imports" : {
5
+ "#src/" : " ./src/"
6
+ },
4
7
"scripts" : {
5
8
"dev" : " vite" ,
6
9
"build" : " vite build" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export default defineConfig({
14
14
],
15
15
resolve: {
16
16
alias: {
17
+ // Deprecated, use `#src` instead (configured in `package.json` `imports` field)
17
18
'@': fileURLToPath(new URL('./src', import.meta.url))
18
19
}
19
20
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import HelloWorld from './components/HelloWorld.vue'
5
5
6
6
<template >
7
7
<header >
8
- <img alt =" Vue logo" class =" logo" src =" @ /assets/logo.svg" width =" 125" height =" 125" />
8
+ <img alt =" Vue logo" class =" logo" src =" #src /assets/logo.svg" width =" 125" height =" 125" />
9
9
10
10
<div class =" wrapper" >
11
11
<HelloWorld msg =" You did it!" />
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import HelloWorld from './components/HelloWorld.vue'
5
5
6
6
<template >
7
7
<header >
8
- <img alt =" Vue logo" class =" logo" src =" @ /assets/logo.svg" width =" 125" height =" 125" />
8
+ <img alt =" Vue logo" class =" logo" src =" #src /assets/logo.svg" width =" 125" height =" 125" />
9
9
10
10
<div class =" wrapper" >
11
11
<HelloWorld msg =" You did it!" />
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import './commands'
20
20
// require('./commands')
21
21
22
22
// Import global styles
23
- import '@ /assets/main.css'
23
+ import '#src /assets/main.css'
24
24
25
25
import { mount } from 'cypress/vue'
26
26
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import './commands'
20
20
// require('./commands')
21
21
22
22
// Import global styles
23
- import '@ /assets/main.css'
23
+ import '#src /assets/main.css'
24
24
25
25
import { mount } from 'cypress/vue'
26
26
Original file line number Diff line number Diff line change 8
8
9
9
"baseUrl" : " ." ,
10
10
"paths" : {
11
+ // TODO: no longer needed after TS 5.4
12
+ "#src/*" : [" ./src/*" ],
13
+ // Deprecated, use `#src` instead (configured in `package.json` `imports` field)
11
14
"@/*" : [" ./src/*" ]
12
15
}
13
16
}
Original file line number Diff line number Diff line change 8
8
9
9
"baseUrl" : " ." ,
10
10
"paths" : {
11
+ // TODO: no longer needed after TS 5.4
12
+ "#src/*" : [" ./src/*" ],
13
+ // Deprecated, use `#src` instead (configured in `package.json` `imports` field)
11
14
"@/*" : [" ./src/*" ]
12
15
}
13
16
}
You can’t perform that action at this time.
0 commit comments