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

This commit is contained in:
山吹色御守 2024-07-03 03:47:18 +08:00 committed by Daniel Roe
parent 4391381c61
commit db9a2d6044
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

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