function

packageSourceAliasPlugin

Resolve the application @/ alias and the admin's @admin/ source alias to their src directories.

Returns

The declared result.

Plugin<any>

How it works

Exported from @riducms/build/vite. Generated applications own @/, while @admin/ resolves from the admin package that imports it. Ridu's Svelte packages ship svelte-package output with relative imports, so they need no alias. The same aliases are emitted in the generated TypeScript configuration.

Full signature