fix(schema): resolve public alias correctly (#27975)

This commit is contained in:
山吹色御守 2024-07-03 03:47:18 +08:00 committed by GitHub
parent 1a911a24e2
commit e80dc5ac09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,7 +421,7 @@ export default defineUntypedSchema({
'~~': rootDir,
'@@': rootDir,
[basename(assetsDir)]: join(srcDir, assetsDir),
[basename(publicDir)]: join(srcDir, publicDir),
[basename(publicDir)]: resolve(srcDir, publicDir),
...val,
}
},