fix: component and utils alias does not update imports in file
This commit is contained in:
parent
57138b9641
commit
2ec0518da2
|
|
@ -13,7 +13,7 @@ export interface TransformOpts {
|
|||
export function transformImport(content: string, config: Config) {
|
||||
const s = new MagicString(content)
|
||||
s.replaceAll(/@\/registry\/[^/]+/g, config.aliases.components)
|
||||
s.replaceAll(/\$lib\/utils/g, config.aliases.utils)
|
||||
s.replaceAll(/@\/lib\/utils/g, config.aliases.utils)
|
||||
return s.toString()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user