mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(schema): prefer src to rootDir aliases (#19937)
This commit is contained in:
parent
ebf3ec398f
commit
45cedd85bd
@ -303,10 +303,10 @@ export default defineUntypedSchema({
|
||||
*/
|
||||
alias: {
|
||||
$resolve: async (val, get) => ({
|
||||
'~~': await get('rootDir'),
|
||||
'@@': await get('rootDir'),
|
||||
'~': await get('srcDir'),
|
||||
'@': await get('srcDir'),
|
||||
'~~': await get('rootDir'),
|
||||
'@@': await get('rootDir'),
|
||||
[await get('dir.assets')]: join(await get('srcDir'), await get('dir.assets')),
|
||||
[await get('dir.public')]: join(await get('srcDir'), await get('dir.public')),
|
||||
...val
|
||||
|
Loading…
Reference in New Issue
Block a user